Class NullContextHandle

java.lang.Object
org.jboss.as.ee.concurrent.handle.NullContextHandle
All Implemented Interfaces:
Serializable, ContextHandle, SetupContextHandle

public class NullContextHandle extends Object implements 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 Details

    • NullContextHandle

      public NullContextHandle()
  • Method Details

    • setup

      Description copied from interface: SetupContextHandle
      Called 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:
      setup in interface SetupContextHandle
      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

      public String getFactoryName()
      Description copied from interface: SetupContextHandle
      Retrieves the name of the factory which built the handle.
      Specified by:
      getFactoryName in interface SetupContextHandle
      Returns: