org.jboss.weld.event
Class TransactionSynchronizedRunnable

java.lang.Object
  extended by org.jboss.weld.event.TransactionSynchronizedRunnable
All Implemented Interfaces:
Synchronization

public class TransactionSynchronizedRunnable
extends Object
implements Synchronization

A JTA transaction sychronization which wraps a Runnable.

Author:
David Allen

Constructor Summary
TransactionSynchronizedRunnable(Runnable task, boolean before)
           
TransactionSynchronizedRunnable(Runnable task, 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(Runnable task,
                                       boolean before)

TransactionSynchronizedRunnable

public TransactionSynchronizedRunnable(Runnable task,
                                       Status desiredStatus)
Method Detail

afterCompletion

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

beforeCompletion

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


Copyright © 2013 Seam Framework. All Rights Reserved.