Package com.arjuna.ats.jta.cdi
Class TransactionContext
java.lang.Object
com.arjuna.ats.jta.cdi.TransactionContext
- All Implemented Interfaces:
jakarta.enterprise.context.spi.Context
- Author:
- paul.robinson@redhat.com 01/05/2013, Laird Nelson
-
Constructor Summary
ConstructorDescriptionDeprecated.TransactionContext
(Supplier<jakarta.transaction.TransactionManager> transactionManagerSupplier, Supplier<jakarta.transaction.TransactionSynchronizationRegistry> transactionSynchronizationRegistrySupplier) Creates a newTransactionContext
. -
Method Summary
-
Constructor Details
-
TransactionContext
Deprecated.Please use theTransactionContext(Supplier, Supplier)
constructor instead.Creates a newTransactionContext
. -
TransactionContext
public TransactionContext(Supplier<jakarta.transaction.TransactionManager> transactionManagerSupplier, Supplier<jakarta.transaction.TransactionSynchronizationRegistry> transactionSynchronizationRegistrySupplier) Creates a newTransactionContext
.- Parameters:
transactionManagerSupplier
- aSupplier
of aTransactionManager
; must not benull
transactionSynchronizationRegistrySupplier
- aSupplier
of aTransactionSynchronizationRegistry
; must not benull
- Throws:
NullPointerException
- if either parameter isnull
-
-
Method Details
-
getScope
- Specified by:
getScope
in interfacejakarta.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 interfacejakarta.enterprise.context.spi.Context
-
get
public <T> T get(jakarta.enterprise.context.spi.Contextual<T> contextual) - Specified by:
get
in interfacejakarta.enterprise.context.spi.Context
-
isActive
public boolean isActive()- Specified by:
isActive
in interfacejakarta.enterprise.context.spi.Context
-
TransactionContext(Supplier, Supplier)
constructor instead.