org.jboss.webbeans.integration.transaction
Class JBossTransactionServices

java.lang.Object
  extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.webbeans.transaction.spi.TransactionServices
org.jboss.webbeans.transaction.spi.TransactionServices.Status
 
Field Summary
protected  TransactionManager transactionManager
          The TM
 
Constructor Summary
JBossTransactionServices()
           
 
Method Summary
protected  TransactionManager getTransactionManager()
          Get transaction manager.
 boolean isTransactionActive()
           
 void registerSynchronization(Synchronization synchronizedObserver)
           
 void setTransactionManager(TransactionManager transactionManager)
          Set transaction manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transactionManager

protected TransactionManager transactionManager
The TM

Constructor Detail

JBossTransactionServices

public JBossTransactionServices()
Method Detail

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.