Package org.xwiki.context
Interface Execution
-
@Role public interface Execution
Allows setting/retrieving theExecutionContext
.- Since:
- 1.5M2
- Version:
- $Id: 52fc88a5fd3ab7fff5d4801c076c62f6f45ee85f $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ExecutionContext
getContext()
void
popContext()
Remove a context level in the current thread.void
pushContext(ExecutionContext context)
Push a the passed context and make it inherit the existing one.default void
pushContext(ExecutionContext context, boolean inherit)
Push a the passed context.void
removeContext()
Remove all context levels for the current thread.void
setContext(ExecutionContext context)
-
-
-
Method Detail
-
getContext
ExecutionContext getContext()
- Returns:
- the current context of the current thread
-
setContext
void setContext(ExecutionContext context)
- Parameters:
context
- the current context of the current thread
-
pushContext
void pushContext(ExecutionContext context)
Push a the passed context and make it inherit the existing one.- Parameters:
context
- create a new context level for the current thread and set the provided context- See Also:
popContext()
-
pushContext
default void pushContext(ExecutionContext context, boolean inherit)
Push a the passed context.- Parameters:
context
- create a new context level for the current thread and set the provided contextinherit
- true if the passed context should inherit the existing one- Since:
- 11.9RC1
-
popContext
void popContext()
Remove a context level in the current thread.- Throws:
EmptyStackException
- if this stack is empty.
-
removeContext
void removeContext()
Remove all context levels for the current thread.
-
-