Class TransactionContext

java.lang.Object
com.arjuna.ats.jta.cdi.TransactionContext
All Implemented Interfaces:
jakarta.enterprise.context.spi.Context

public class TransactionContext extends Object implements jakarta.enterprise.context.spi.Context
Author:
paul.robinson@redhat.com 01/05/2013, Laird Nelson
  • Constructor Details

    • TransactionContext

      @Deprecated public TransactionContext()
      Deprecated.
      Please use the TransactionContext(Supplier, Supplier) constructor instead.
      Creates a new TransactionContext.
    • TransactionContext

      public TransactionContext(Supplier<jakarta.transaction.TransactionManager> transactionManagerSupplier, Supplier<jakarta.transaction.TransactionSynchronizationRegistry> transactionSynchronizationRegistrySupplier)
      Creates a new TransactionContext.
      Parameters:
      transactionManagerSupplier - a Supplier of a TransactionManager; must not be null
      transactionSynchronizationRegistrySupplier - a Supplier of a TransactionSynchronizationRegistry; must not be null
      Throws:
      NullPointerException - if either parameter is null
  • Method Details

    • getScope

      public Class<? extends Annotation> getScope()
      Specified by:
      getScope in interface jakarta.enterprise.context.spi.Context
    • get

      public <T> T get(jakarta.enterprise.context.spi.Contextual<T> contextual, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
      Specified by:
      get in interface jakarta.enterprise.context.spi.Context
    • get

      public <T> T get(jakarta.enterprise.context.spi.Contextual<T> contextual)
      Specified by:
      get in interface jakarta.enterprise.context.spi.Context
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface jakarta.enterprise.context.spi.Context