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.TransactionServices
public boolean isTransactionActive()
isTransactionActive
in interface org.jboss.weld.transaction.spi.TransactionServices
public void cleanup()
public void registerSynchronization(Synchronization synchronizedObserver)
registerSynchronization
in interface org.jboss.weld.transaction.spi.TransactionServices
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<WeldTransactionServices>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<WeldTransactionServices>
public WeldTransactionServices getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<WeldTransactionServices>
IllegalStateException
IllegalArgumentException
public org.jboss.msc.value.InjectedValue<UserTransaction> getInjectedTransaction()
public org.jboss.msc.value.InjectedValue<TransactionManager> getInjectedTransactionManager()
Copyright © 2017 JBoss by Red Hat. All rights reserved.