Class WeldTransactionServices
- java.lang.Object
-
- org.jboss.as.weld.services.bootstrap.WeldTransactionServices
-
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.weld.bootstrap.api.Service,org.jboss.weld.transaction.spi.TransactionServices
public class WeldTransactionServices extends Object implements org.jboss.weld.transaction.spi.TransactionServices, org.jboss.msc.Service
Service that implements weldsTransactionServicesThis class is thread safe, and does not require a happens-before action between construction and usage
- Author:
- Stuart Douglas, Tomasz Adamski, Richard Opalka
-
-
Field Summary
Fields Modifier and Type Field Description static org.jboss.msc.service.ServiceNameSERVICE_NAME
-
Constructor Summary
Constructors Constructor Description WeldTransactionServices(boolean jtsEnabled, Consumer<WeldTransactionServices> weldTransactionServicesConsumer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()jakarta.transaction.UserTransactiongetUserTransaction()booleanisTransactionActive()voidregisterSynchronization(jakarta.transaction.Synchronization synchronizedObserver)voidstart(org.jboss.msc.service.StartContext context)voidstop(org.jboss.msc.service.StopContext context)
-
-
-
Constructor Detail
-
WeldTransactionServices
public WeldTransactionServices(boolean jtsEnabled, Consumer<WeldTransactionServices> weldTransactionServicesConsumer)
-
-
Method Detail
-
getUserTransaction
public jakarta.transaction.UserTransaction getUserTransaction()
- Specified by:
getUserTransactionin interfaceorg.jboss.weld.transaction.spi.TransactionServices
-
isTransactionActive
public boolean isTransactionActive()
- Specified by:
isTransactionActivein interfaceorg.jboss.weld.transaction.spi.TransactionServices
-
cleanup
public void cleanup()
- Specified by:
cleanupin interfaceorg.jboss.weld.bootstrap.api.Service
-
registerSynchronization
public void registerSynchronization(jakarta.transaction.Synchronization synchronizedObserver)
- Specified by:
registerSynchronizationin interfaceorg.jboss.weld.transaction.spi.TransactionServices
-
start
public void start(org.jboss.msc.service.StartContext context)
- Specified by:
startin interfaceorg.jboss.msc.Service
-
stop
public void stop(org.jboss.msc.service.StopContext context)
- Specified by:
stopin interfaceorg.jboss.msc.Service
-
-