public class WeldTransactionServices extends Object implements org.jboss.weld.transaction.spi.TransactionServices, org.jboss.msc.service.Service<WeldTransactionServices>
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) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
org.jboss.msc.value.InjectedValue<UserTransaction> |
getInjectedTransaction() |
org.jboss.msc.value.InjectedValue<TransactionManager> |
getInjectedTransactionManager() |
UserTransaction |
getUserTransaction() |
WeldTransactionServices |
getValue() |
boolean |
isTransactionActive() |
void |
registerSynchronization(Synchronization synchronizedObserver) |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
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)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.Serviceorg.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.Servicepublic WeldTransactionServices getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<WeldTransactionServices>IllegalStateExceptionIllegalArgumentExceptionpublic org.jboss.msc.value.InjectedValue<UserTransaction> getInjectedTransaction()
public org.jboss.msc.value.InjectedValue<TransactionManager> getInjectedTransactionManager()
Copyright © 2018 JBoss by Red Hat. All rights reserved.