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 void
cleanup()
jakarta.transaction.UserTransaction
getUserTransaction()
boolean
isTransactionActive()
void
registerSynchronization(jakarta.transaction.Synchronization synchronizedObserver)
-
-
-
Method Detail
-
registerSynchronization
public void registerSynchronization(jakarta.transaction.Synchronization synchronizedObserver)
- Specified by:
registerSynchronization
in interfaceorg.jboss.weld.transaction.spi.TransactionServices
-
isTransactionActive
public boolean isTransactionActive()
- Specified by:
isTransactionActive
in interfaceorg.jboss.weld.transaction.spi.TransactionServices
-
getUserTransaction
public jakarta.transaction.UserTransaction getUserTransaction()
- Specified by:
getUserTransaction
in interfaceorg.jboss.weld.transaction.spi.TransactionServices
-
cleanup
public void cleanup()
- Specified by:
cleanup
in interfaceorg.jboss.weld.bootstrap.api.Service
-
-