Class NullContextHandle
java.lang.Object
org.jboss.as.ee.concurrent.handle.NullContextHandle
- All Implemented Interfaces:
Serializable,ContextHandle,SetupContextHandle
A context handle without invocation context to set. For now it provides only the setup and reset of TCCL captured at handle creation.
- Author:
- Eduardo Martins
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the name of the factory which built the handle.setup()Called by ManagedExecutorService before executing a task to set up thread context.
-
Constructor Details
-
NullContextHandle
public NullContextHandle()
-
-
Method Details
-
setup
Description copied from interface:SetupContextHandleCalled by ManagedExecutorService before executing a task to set up thread context. It will be called in the thread that will be used for executing the task.- Specified by:
setupin interfaceSetupContextHandle- Returns:
- A ContextHandle that will be passed to the reset method in the thread executing the task
- Throws:
IllegalStateException- if the ContextHandle is no longer valid. For example, the application component that the ContextHandle was created for is no longer running or is undeployed.
-
getFactoryName
Description copied from interface:SetupContextHandleRetrieves the name of the factory which built the handle.- Specified by:
getFactoryNamein interfaceSetupContextHandle- Returns:
-