Package org.xwiki.context
Interface ExecutionContextManager
-
@Role public interface ExecutionContextManager
Provides various services for manipulating anExecutionContext
.- Version:
- $Id: 56e83e5a3cf7f40d2224d366f3f87b25aa748a70 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ExecutionContext
clone(ExecutionContext context)
Perform deep cloning of Execution Context properties.void
initialize(ExecutionContext context)
Set the passed Execution Context inExecution
and initialize it by executing allExecutionContextInitializer
registered components.default void
popContext()
Remove a context level in the current thread.default void
pushContext(ExecutionContext context, boolean inherit)
-
-
-
Method Detail
-
initialize
void initialize(ExecutionContext context) throws ExecutionContextException
Set the passed Execution Context inExecution
and initialize it by executing allExecutionContextInitializer
registered components.- Parameters:
context
- the execution context to initialize- Throws:
ExecutionContextException
- in case oneExecutionContextInitializer
fails to execute
-
clone
ExecutionContext clone(ExecutionContext context) throws ExecutionContextException
Perform deep cloning of Execution Context properties.- Parameters:
context
- the execution context to clone- Returns:
- the cloned Execution Context
- Throws:
ExecutionContextException
- if the Execution Context failed to be cloned for any reason
-
pushContext
default void pushContext(ExecutionContext context, boolean inherit) throws ExecutionContextException
- Parameters:
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 initialized- Throws:
ExecutionContextException
- in case oneExecutionContextInitializer
fails to execute- Since:
- 11.9RC1
-
popContext
default void popContext()
Remove a context level in the current thread.- Throws:
EmptyStackException
- if this stack is empty.- Since:
- 11.9RC1
-
-