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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PropagationContextManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment)ObjectgetTransactionPropagationContext()Return a transaction propagation context for the transaction currently associated with the invoking thread, ornullif the invoking thread is not associated with a transaction.ObjectgetTransactionPropagationContext(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.TransactionimportTransactionPropagationContext(Object tpc)Import the transaction propagation context into the transaction manager, and return the resulting transaction.
-
-
-
Method Detail
-
getTransactionPropagationContext
public Object 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
public Object 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.- Specified by:
getTransactionPropagationContextin interfaceorg.jboss.tm.TransactionPropagationContextFactory
-
importTransactionPropagationContext
public jakarta.transaction.Transaction importTransactionPropagationContext(Object tpc)
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
-
-