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 Details

    • PropagationContextManager

      public PropagationContextManager()
  • Method Details

    • getTransactionPropagationContext

      public 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.
      Specified by:
      getTransactionPropagationContext in interface org.jboss.tm.TransactionPropagationContextFactory
      Returns:
      the context
    • getTransactionPropagationContext

      public Object getTransactionPropagationContext(jakarta.transaction.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.
      Specified by:
      getTransactionPropagationContext in interface org.jboss.tm.TransactionPropagationContextFactory
      Parameters:
      tx - the transaction
      Returns:
      the context
    • 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 the 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.
      Specified by:
      importTransactionPropagationContext in interface org.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 interface ObjectFactory
      Throws:
      Exception