public abstract class AbstractXWikiRunnable extends Object implements Runnable
Modifier | Constructor and Description |
---|---|
protected |
AbstractXWikiRunnable() |
protected |
AbstractXWikiRunnable(Map<String,Object> properties) |
protected |
AbstractXWikiRunnable(String propertyName,
Object propertyValue) |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanupExecutionContext() |
protected void |
declareProperties(org.xwiki.context.ExecutionContext executionContext)
Lets subclasses declare execution context properties.
|
protected org.xwiki.context.ExecutionContext |
initExecutionContext()
Initialize execution context for the current thread.
|
void |
run() |
protected abstract void |
runInternal() |
protected AbstractXWikiRunnable()
protected AbstractXWikiRunnable(String propertyName, Object propertyValue)
propertyName
- the name of the property to put in the initialized contextpropertyValue
- the value of the property to put in the initialized contextprotected void declareProperties(org.xwiki.context.ExecutionContext executionContext)
executionContext
- the execution context.protected org.xwiki.context.ExecutionContext initExecutionContext() throws org.xwiki.context.ExecutionContextException
org.xwiki.context.ExecutionContextException
- error when try to initialize execution contextprotected void cleanupExecutionContext()
protected abstract void runInternal() throws InterruptedException
InterruptedException
Copyright © 2004–2022 XWiki. All rights reserved.