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
Constructors -
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, ornullif 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, ornullif the argument isnullor of a type unknown to this factory.jakarta.transaction.TransactionImport 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, ornullif the invoking thread is not associated with a transaction.- Specified by:
getTransactionPropagationContextin interfaceorg.jboss.tm.TransactionPropagationContextFactory
-
getTransactionPropagationContext
Return a transaction propagation context for the transaction given as an argument, ornullif the argument isnullor of a type unknown to this factory.- Specified by:
getTransactionPropagationContextin interfaceorg.jboss.tm.TransactionPropagationContextFactory
-
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 theTransactionrepresenting the transaction propagation context in the local VM. Returnsnullif the transaction propagation context isnull, or if it represents anulltransaction.- Specified by:
importTransactionPropagationContextin interfaceorg.jboss.tm.TransactionPropagationContextImporter
-
getObjectInstance
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment) throws Exception - Specified by:
getObjectInstancein interfaceObjectFactory- Throws:
Exception
-