Class TransactionContextHandleFactory
- java.lang.Object
-
- org.jboss.as.ee.concurrent.handle.TransactionContextHandleFactory
-
- All Implemented Interfaces:
ContextHandleFactory,EE10ContextHandleFactory
public class TransactionContextHandleFactory extends Object implements EE10ContextHandleFactory
FIXME *FOLLOW UP* delete unused TransactionLeakContextHandleFactory and TransactionSetupProviderImpl, and deactivate unused logger msgs A context handle factory which is responsible for handling the context type ContextServiceDefinition.TRANSACTION.- Author:
- Eduardo Martins
-
-
Constructor Summary
Constructors Constructor Description TransactionContextHandleFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetupContextHandleclearedContext(jakarta.enterprise.concurrent.ContextService contextService, Map<String,String> contextObjectProperties)intgetChainPriority()The factory priority is used to define the order of handles when chained.StringgetContextType()StringgetName()Retrieves the factory's name.SetupContextHandlepropagatedContext(jakarta.enterprise.concurrent.ContextService contextService, Map<String,String> contextObjectProperties)SetupContextHandlereadSetupContextHandle(ObjectInputStream in)Reads a handle from the specified input stream.SetupContextHandleunchangedContext(jakarta.enterprise.concurrent.ContextService contextService, Map<String,String> contextObjectProperties)voidwriteSetupContextHandle(SetupContextHandle contextHandle, ObjectOutputStream out)Writes the handle to the specified output stream.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.as.ee.concurrent.handle.EE10ContextHandleFactory
saveContext
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getContextType
public String getContextType()
- Specified by:
getContextTypein interfaceEE10ContextHandleFactory- Returns:
- the context type the factory provides handles for
-
clearedContext
public SetupContextHandle clearedContext(jakarta.enterprise.concurrent.ContextService contextService, Map<String,String> contextObjectProperties)
- Specified by:
clearedContextin interfaceEE10ContextHandleFactory- Returns:
- a SetupContextHandle which partially or fully clears the factory's context type
-
propagatedContext
public SetupContextHandle propagatedContext(jakarta.enterprise.concurrent.ContextService contextService, Map<String,String> contextObjectProperties)
- Specified by:
propagatedContextin interfaceEE10ContextHandleFactory- Returns:
- a SetupContextHandle which partially or fully propagates the factory's context type
-
unchangedContext
public SetupContextHandle unchangedContext(jakarta.enterprise.concurrent.ContextService contextService, Map<String,String> contextObjectProperties)
- Specified by:
unchangedContextin interfaceEE10ContextHandleFactory- Returns:
- a SetupContextHandle which partially or fully unchanges the factory's context type
-
getName
public String getName()
Description copied from interface:ContextHandleFactoryRetrieves the factory's name.- Specified by:
getNamein interfaceContextHandleFactory- Returns:
-
getChainPriority
public int getChainPriority()
Description copied from interface:ContextHandleFactoryThe factory priority is used to define the order of handles when chained. The handle with the lowest priority is the first in the chain.- Specified by:
getChainPriorityin interfaceContextHandleFactory- Returns:
-
writeSetupContextHandle
public void writeSetupContextHandle(SetupContextHandle contextHandle, ObjectOutputStream out) throws IOException
Description copied from interface:ContextHandleFactoryWrites the handle to the specified output stream.- Specified by:
writeSetupContextHandlein interfaceContextHandleFactory- Throws:
IOException
-
readSetupContextHandle
public SetupContextHandle readSetupContextHandle(ObjectInputStream in) throws IOException, ClassNotFoundException
Description copied from interface:ContextHandleFactoryReads a handle from the specified input stream.- Specified by:
readSetupContextHandlein interfaceContextHandleFactory- Returns:
- Throws:
IOExceptionClassNotFoundException
-
-