org.jboss.seam.transaction
Class TransactionManagerSynchronizations

java.lang.Object
  extended by org.jboss.seam.transaction.TransactionManagerSynchronizations
All Implemented Interfaces:
Synchronization, Synchronizations

@ApplicationScoped
@DefaultBean(value=Synchronizations.class)
public class TransactionManagerSynchronizations
extends Object
implements Synchronization, Synchronizations

Synchronizations implementation that registers synchronizations with a JTA TransactionManager


Field Summary
protected  org.jboss.seam.transaction.ThreadLocalStack<org.jboss.seam.transaction.SynchronizationRegistry> synchronizations
           
protected  org.jboss.seam.transaction.ThreadLocalStack<Transaction> transactions
           
 
Constructor Summary
TransactionManagerSynchronizations()
           
 
Method Summary
 void afterCompletion(int status)
           
 void afterTransactionBegin()
           
 void afterTransactionCompletion(boolean success)
           
 void beforeCompletion()
           
 void beforeTransactionCommit()
           
 TransactionManager getTransactionManager()
           
 boolean isAwareOfContainerTransactions()
           
 void registerSynchronization(Synchronization sync)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

synchronizations

protected org.jboss.seam.transaction.ThreadLocalStack<org.jboss.seam.transaction.SynchronizationRegistry> synchronizations

transactions

protected org.jboss.seam.transaction.ThreadLocalStack<Transaction> transactions
Constructor Detail

TransactionManagerSynchronizations

public TransactionManagerSynchronizations()
Method Detail

beforeCompletion

public void beforeCompletion()
Specified by:
beforeCompletion in interface Synchronization

afterCompletion

public void afterCompletion(int status)
Specified by:
afterCompletion in interface Synchronization

isAwareOfContainerTransactions

public boolean isAwareOfContainerTransactions()
Specified by:
isAwareOfContainerTransactions in interface Synchronizations

registerSynchronization

public void registerSynchronization(Synchronization sync)
Specified by:
registerSynchronization in interface Synchronizations

getTransactionManager

public TransactionManager getTransactionManager()

afterTransactionBegin

public void afterTransactionBegin()
Specified by:
afterTransactionBegin in interface Synchronizations

afterTransactionCompletion

public void afterTransactionCompletion(boolean success)
Specified by:
afterTransactionCompletion in interface Synchronizations

beforeTransactionCommit

public void beforeTransactionCommit()
Specified by:
beforeTransactionCommit in interface Synchronizations


Copyright © 2011 Seam Framework. All Rights Reserved.