Interface EE10ContextHandleFactory
- All Superinterfaces:
ContextHandleFactory
- All Known Implementing Classes:
ClassLoaderContextHandleFactory,NamingContextHandleFactory,OtherEESetupActionsContextHandleFactory,ThreadContextProviderContextHandleFactory,TransactionContextHandleFactory
The EE10 ContextHandleFactory, which should replace the legacy one once all impls are migrated.
- Author:
- emmartins
-
Method Summary
Modifier and TypeMethodDescriptionclearedContext(jakarta.enterprise.concurrent.ContextService contextService, Map<String, String> contextObjectProperties) propagatedContext(jakarta.enterprise.concurrent.ContextService contextService, Map<String, String> contextObjectProperties) default SetupContextHandlesaveContext(jakarta.enterprise.concurrent.ContextService contextService, Map<String, String> contextObjectProperties) Called by ManagedExecutorService in the same thread that submits a task to save the execution context of the submitting thread.default SetupContextHandleunchangedContext(jakarta.enterprise.concurrent.ContextService contextService, Map<String, String> contextObjectProperties) Methods inherited from interface org.jboss.as.ee.concurrent.handle.ContextHandleFactory
getChainPriority, getName, readSetupContextHandle, writeSetupContextHandle
-
Method Details
-
getContextType
String getContextType()- Returns:
- the context type the factory provides handles for
-
clearedContext
SetupContextHandle clearedContext(jakarta.enterprise.concurrent.ContextService contextService, Map<String, String> contextObjectProperties) - Parameters:
contextService-contextObjectProperties-- Returns:
- a SetupContextHandle which partially or fully clears the factory's context type
-
propagatedContext
SetupContextHandle propagatedContext(jakarta.enterprise.concurrent.ContextService contextService, Map<String, String> contextObjectProperties) - Parameters:
contextService-contextObjectProperties-- Returns:
- a SetupContextHandle which partially or fully propagates the factory's context type
-
unchangedContext
default SetupContextHandle unchangedContext(jakarta.enterprise.concurrent.ContextService contextService, Map<String, String> contextObjectProperties) - Parameters:
contextService-contextObjectProperties-- Returns:
- a SetupContextHandle which partially or fully unchanges the factory's context type
-
saveContext
default SetupContextHandle saveContext(jakarta.enterprise.concurrent.ContextService contextService, Map<String, String> contextObjectProperties) Description copied from interface:ContextHandleFactoryCalled by ManagedExecutorService in the same thread that submits a task to save the execution context of the submitting thread.- Specified by:
saveContextin interfaceContextHandleFactory- Parameters:
contextService- ContextService containing information on what context should be savedcontextObjectProperties- Additional properties specified for for a context object when the ContextService object was created.- Returns:
- A ContextHandle that will be passed to the setup method in the thread executing the task
-