Class 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 Detail

      • PropagationContextManager

        public PropagationContextManager()
    • Method Detail

      • 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
      • 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
      • 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