public class WeldTransactionServices extends Object implements org.jboss.weld.transaction.spi.TransactionServices, org.jboss.msc.Service
TransactionServices
This class is thread safe, and does not require a happens-before action between construction and usage
| Modifier and Type | Field and Description |
|---|---|
static org.jboss.msc.service.ServiceName |
SERVICE_NAME |
| Constructor and Description |
|---|
WeldTransactionServices(boolean jtsEnabled,
Consumer<WeldTransactionServices> weldTransactionServicesConsumer) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
UserTransaction |
getUserTransaction() |
boolean |
isTransactionActive() |
void |
registerSynchronization(Synchronization synchronizedObserver) |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public WeldTransactionServices(boolean jtsEnabled,
Consumer<WeldTransactionServices> weldTransactionServicesConsumer)
public UserTransaction getUserTransaction()
getUserTransaction in interface org.jboss.weld.transaction.spi.TransactionServicespublic boolean isTransactionActive()
isTransactionActive in interface org.jboss.weld.transaction.spi.TransactionServicespublic void cleanup()
public void registerSynchronization(Synchronization synchronizedObserver)
registerSynchronization in interface org.jboss.weld.transaction.spi.TransactionServicespublic void start(org.jboss.msc.service.StartContext context)
start in interface org.jboss.msc.Servicepublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.ServiceCopyright © 2022 JBoss by Red Hat. All rights reserved.