Class TestTransactionServices
- java.lang.Object
-
- com.github.jonasrutishauser.cdi.test.jta.TestTransactionServices
-
- All Implemented Interfaces:
org.jboss.weld.bootstrap.api.Service,org.jboss.weld.transaction.spi.TransactionServices
public class TestTransactionServices extends Object implements org.jboss.weld.transaction.spi.TransactionServices
SPI extension point of the Weld for integrate with transaction manager. If the interface is implemented by the deployment the Weld stops to show info message:WELD-000101: Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
-
-
Constructor Summary
Constructors Constructor Description TestTransactionServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()jakarta.transaction.UserTransactiongetUserTransaction()booleanisTransactionActive()voidregisterSynchronization(jakarta.transaction.Synchronization synchronizedObserver)
-
-
-
Method Detail
-
registerSynchronization
public void registerSynchronization(jakarta.transaction.Synchronization synchronizedObserver)
- Specified by:
registerSynchronizationin interfaceorg.jboss.weld.transaction.spi.TransactionServices
-
isTransactionActive
public boolean isTransactionActive()
- Specified by:
isTransactionActivein interfaceorg.jboss.weld.transaction.spi.TransactionServices
-
getUserTransaction
public jakarta.transaction.UserTransaction getUserTransaction()
- Specified by:
getUserTransactionin interfaceorg.jboss.weld.transaction.spi.TransactionServices
-
cleanup
public void cleanup()
- Specified by:
cleanupin interfaceorg.jboss.weld.bootstrap.api.Service
-
-