public class PropagationContextManager extends Object implements org.jboss.tm.TransactionPropagationContextFactory, org.jboss.tm.TransactionPropagationContextImporter, ObjectFactory, Serializable
| Constructor and Description |
|---|
PropagationContextManager() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable environment) |
Object |
getTransactionPropagationContext()
Return a transaction propagation context for the transaction
currently associated with the invoking thread, or
null
if the invoking thread is not associated with a transaction. |
Object |
getTransactionPropagationContext(Transaction tx)
Return a transaction propagation context for the transaction
given as an argument, or
null
if the argument is null or of a type unknown to
this factory. |
Transaction |
importTransactionPropagationContext(Object tpc)
Import the transaction propagation context into the transaction
manager, and return the resulting transaction.
|
public Object getTransactionPropagationContext()
null
if the invoking thread is not associated with a transaction.getTransactionPropagationContext in interface org.jboss.tm.TransactionPropagationContextFactorypublic Object getTransactionPropagationContext(Transaction tx)
null
if the argument is null or of a type unknown to
this factory.getTransactionPropagationContext in interface org.jboss.tm.TransactionPropagationContextFactorypublic Transaction importTransactionPropagationContext(Object tpc)
Transaction representing the transaction propagation
context in the local VM.
Returns null if the transaction propagation context is
null, or if it represents a null transaction.importTransactionPropagationContext in interface org.jboss.tm.TransactionPropagationContextImporterpublic Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment) throws Exception
getObjectInstance in interface ObjectFactoryExceptionCopyright © 2022 JBoss by Red Hat. All rights reserved.