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 welds
TransactionServices
This 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
FieldsFields inherited from interface org.jboss.msc.Service
NULL -
Constructor Summary
ConstructorsConstructorDescriptionWeldTransactionServices(boolean jtsEnabled, Consumer<WeldTransactionServices> weldTransactionServicesConsumer) -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()jakarta.transaction.UserTransactionbooleanvoidregisterSynchronization(jakarta.transaction.Synchronization synchronizedObserver) voidstart(org.jboss.msc.service.StartContext context) voidstop(org.jboss.msc.service.StopContext context)
-
Field Details
-
SERVICE_NAME
public static final org.jboss.msc.service.ServiceName SERVICE_NAME
-
-
Constructor Details
-
WeldTransactionServices
public WeldTransactionServices(boolean jtsEnabled, Consumer<WeldTransactionServices> weldTransactionServicesConsumer)
-
-
Method Details
-
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
-