@Role public interface ExecutionContextManager
ExecutionContext
.Modifier and Type | Method and Description |
---|---|
ExecutionContext |
clone(ExecutionContext context)
Perform deep cloning of Execution Context properties.
|
void |
initialize(ExecutionContext context)
Set the passed Execution Context in
Execution and initialize it by executing all
ExecutionContextInitializer registered components. |
default void |
popContext()
Remove a context level in the current thread.
|
default void |
pushContext(ExecutionContext context,
boolean inherit) |
void initialize(ExecutionContext context) throws ExecutionContextException
Execution
and initialize it by executing all
ExecutionContextInitializer
registered components.context
- the execution context to initializeExecutionContextException
- in case one ExecutionContextInitializer
fails to executeExecutionContext clone(ExecutionContext context) throws ExecutionContextException
context
- the execution context to cloneExecutionContextException
- if the Execution Context failed to be cloned for any reason@Unstable default void pushContext(ExecutionContext context, boolean inherit) throws ExecutionContextException
context
- create a new context level for the current thread and set the provided contextinherit
- true if the new context should inherit the current context, if false the new context will be
initializedExecutionContextException
- in case one ExecutionContextInitializer
fails to execute@Unstable default void popContext()
EmptyStackException
- if this stack is empty.Copyright © 2004–2019 XWiki. All rights reserved.