Class PropagationContextManager
java.lang.Object
com.arjuna.ats.internal.jbossatx.jta.PropagationContextManager
- All Implemented Interfaces:
Serializable
,ObjectFactory
,org.jboss.tm.TransactionPropagationContextFactory
,org.jboss.tm.TransactionPropagationContextImporter
public class PropagationContextManager
extends Object
implements org.jboss.tm.TransactionPropagationContextFactory, org.jboss.tm.TransactionPropagationContextImporter, ObjectFactory, Serializable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetObjectInstance
(Object obj, Name name, Context nameCtx, Hashtable environment) Return a transaction propagation context for the transaction currently associated with the invoking thread, ornull
if the invoking thread is not associated with a transaction.getTransactionPropagationContext
(jakarta.transaction.Transaction tx) Return a transaction propagation context for the transaction given as an argument, ornull
if the argument isnull
or of a type unknown to this factory.jakarta.transaction.Transaction
Import the transaction propagation context into the transaction manager, and return the resulting transaction.
-
Constructor Details
-
PropagationContextManager
public PropagationContextManager()
-
-
Method Details
-
getTransactionPropagationContext
Return a transaction propagation context for the transaction currently associated with the invoking thread, ornull
if the invoking thread is not associated with a transaction.- Specified by:
getTransactionPropagationContext
in interfaceorg.jboss.tm.TransactionPropagationContextFactory
- Returns:
- the context
-
getTransactionPropagationContext
Return a transaction propagation context for the transaction given as an argument, ornull
if the argument isnull
or of a type unknown to this factory.- Specified by:
getTransactionPropagationContext
in interfaceorg.jboss.tm.TransactionPropagationContextFactory
- Parameters:
tx
- the transaction- Returns:
- the context
-
importTransactionPropagationContext
Import the transaction propagation context into the transaction manager, and return the resulting transaction. If this transaction propagation context has already been imported into the transaction manager, this method simply returns theTransaction
representing the transaction propagation context in the local VM. Returnsnull
if the transaction propagation context isnull
, or if it represents anull
transaction.- Specified by:
importTransactionPropagationContext
in interfaceorg.jboss.tm.TransactionPropagationContextImporter
- Parameters:
tpc
- the transaction propagation context- Returns:
- the transaction
-
getObjectInstance
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment) throws Exception - Specified by:
getObjectInstance
in interfaceObjectFactory
- Throws:
Exception
-