org.jboss.webbeans.integration.transaction
Class JBossTransactionServices
java.lang.Object
org.jboss.webbeans.integration.transaction.JBossTransactionServices
- All Implemented Interfaces:
- org.jboss.webbeans.bootstrap.api.Service, org.jboss.webbeans.transaction.spi.TransactionServices
public class JBossTransactionServices
- extends Object
- implements org.jboss.webbeans.transaction.spi.TransactionServices
JBoss AS implementation of TransactionServices. The transaction manager for
the application server is injected directly into this bean and used to
provide the services.
- Author:
- David Allen, ales.justin@jboss.org
Nested classes/interfaces inherited from interface org.jboss.webbeans.transaction.spi.TransactionServices |
org.jboss.webbeans.transaction.spi.TransactionServices.Status |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
transactionManager
protected TransactionManager transactionManager
- The TM
JBossTransactionServices
public JBossTransactionServices()
isTransactionActive
public boolean isTransactionActive()
- Specified by:
isTransactionActive
in interface org.jboss.webbeans.transaction.spi.TransactionServices
getTransactionManager
protected TransactionManager getTransactionManager()
- Get transaction manager.
It might throw IllegalArgumentException if it's not yet configured as we
inject it via callback - only available in deploy/ when TM gets deployed.
- Returns:
- the transaction manager
setTransactionManager
public void setTransactionManager(TransactionManager transactionManager)
- Set transaction manager.
- Parameters:
transactionManager
- the transaction manager
registerSynchronization
public void registerSynchronization(Synchronization synchronizedObserver)
- Specified by:
registerSynchronization
in interface org.jboss.webbeans.transaction.spi.TransactionServices
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.