Package org.glassfish.weld.services
Class TransactionServicesImpl
- java.lang.Object
-
- org.glassfish.weld.services.TransactionServicesImpl
-
- All Implemented Interfaces:
org.jboss.weld.bootstrap.api.Service
,org.jboss.weld.transaction.spi.TransactionServices
public class TransactionServicesImpl extends Object implements org.jboss.weld.transaction.spi.TransactionServices
Implements the services related to transactional behaviour used in JSR-299, if that behaviour is going to be used.
-
-
Constructor Summary
Constructors Constructor Description TransactionServicesImpl(org.glassfish.hk2.api.ServiceLocator services)
-
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 observer)
-
-
-
Method Detail
-
isTransactionActive
public boolean isTransactionActive()
- Specified by:
isTransactionActive
in interfaceorg.jboss.weld.transaction.spi.TransactionServices
-
registerSynchronization
public void registerSynchronization(jakarta.transaction.Synchronization observer)
- Specified by:
registerSynchronization
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
-
-