Class SimpleExecutionContext
java.lang.Object
ch.tocco.nice2.boot.api.executioncontext.SimpleExecutionContext
- All Implemented Interfaces:
ExecutionContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.boot.api.executioncontext.ExecutionContext
ExecutionContext.Current -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetContext(Class<T> ctxClass) Returns the execution context for the given class, ornull.<T> TgetContext(Class<T> ctxClass, ContextFactory<T> factory) Returns the execution context for the given class, creates a new one using the factory if it's not in the execution context yet and puts it in.booleanisEmpty()<T> TremoveContext(Class<T> ctxClass) <T> TrequireContext(Class<T> ctxClass) <T> TsetContext(ContextWrapper<T> wrapper) <T> TsetContext(Class<T> ctxClass, T ctx)
-
Constructor Details
-
SimpleExecutionContext
public SimpleExecutionContext() -
SimpleExecutionContext
-
-
Method Details
-
getContext
Description copied from interface:ExecutionContextReturns the execution context for the given class, ornull.- Specified by:
getContextin interfaceExecutionContext
-
getContext
Description copied from interface:ExecutionContextReturns the execution context for the given class, creates a new one using the factory if it's not in the execution context yet and puts it in.- Specified by:
getContextin interfaceExecutionContext
-
requireContext
- Specified by:
requireContextin interfaceExecutionContext
-
setContext
- Specified by:
setContextin interfaceExecutionContext
-
setContext
- Specified by:
setContextin interfaceExecutionContext
-
removeContext
- Specified by:
removeContextin interfaceExecutionContext
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceExecutionContext
-