org.jboss.webbeans.event
Class TransactionSynchronizedRunnable

java.lang.Object
  extended by org.jboss.webbeans.event.TransactionSynchronizedRunnable
All Implemented Interfaces:
javax.transaction.Synchronization

public class TransactionSynchronizedRunnable
extends java.lang.Object
implements javax.transaction.Synchronization

A JTA transaction sychronization which wraps a Runnable.

Author:
David Allen

Constructor Summary
TransactionSynchronizedRunnable(java.lang.Runnable task, boolean before)
           
TransactionSynchronizedRunnable(java.lang.Runnable task, TransactionServices.Status desiredStatus)
           
 
Method Summary
 void afterCompletion(int status)
           
 void beforeCompletion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionSynchronizedRunnable

public TransactionSynchronizedRunnable(java.lang.Runnable task,
                                       boolean before)

TransactionSynchronizedRunnable

public TransactionSynchronizedRunnable(java.lang.Runnable task,
                                       TransactionServices.Status desiredStatus)
Method Detail

afterCompletion

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

beforeCompletion

public void beforeCompletion()
Specified by:
beforeCompletion in interface javax.transaction.Synchronization


Copyright © 2011. All Rights Reserved.