Interface SetupContextHandle

All Superinterfaces:
ContextHandle, Serializable
All Known Implementing Classes:
NullContextHandle

public interface SetupContextHandle extends ContextHandle
The Wildfly's EE context handle that sets a saved invocation context.
Author:
Eduardo Martins
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the name of the factory which built the handle.
    Called by ManagedExecutorService before executing a task to set up thread context.
  • Method Details

    • setup

      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.
      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

      String getFactoryName()
      Retrieves the name of the factory which built the handle.
      Returns: