org.jboss.cdi.tck.tests.event.observer.transactional
Class AccountTransactionObserver

java.lang.Object
  extended by org.jboss.cdi.tck.tests.event.observer.transactional.AccountTransactionObserver

public class AccountTransactionObserver
extends Object

Author:
Martin Kouba

Constructor Summary
AccountTransactionObserver()
           
 
Method Summary
 void failBeforeCompletion(Failure failure)
           
 void withdrawAfterCompletion(Withdrawal withdrawal)
           
 void withdrawAfterFailure(Withdrawal withdrawal)
           
 void withdrawAfterSuccess(Withdrawal withdrawal)
           
 void withdrawBeforeCompletion(Withdrawal withdrawal)
           
 void withdrawNoTx(Withdrawal withdrawal)
          Always fire immediately.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountTransactionObserver

public AccountTransactionObserver()
Method Detail

withdrawAfterSuccess

public void withdrawAfterSuccess(@Observes(during=AFTER_SUCCESS)
                                 Withdrawal withdrawal)
                          throws Exception
Parameters:
withdrawal -
Throws:
Exception

withdrawAfterCompletion

public void withdrawAfterCompletion(@Observes(during=AFTER_COMPLETION)
                                    Withdrawal withdrawal)
                             throws Exception
Parameters:
withdrawal -
Throws:
Exception

withdrawBeforeCompletion

public void withdrawBeforeCompletion(@Observes(during=BEFORE_COMPLETION)
                                     Withdrawal withdrawal)
                              throws Exception
Parameters:
withdrawal -
Throws:
Exception

withdrawNoTx

public void withdrawNoTx(@Observes(during=IN_PROGRESS)
                         Withdrawal withdrawal)
                  throws Exception
Always fire immediately.

Parameters:
withdrawal -
Throws:
Exception

withdrawAfterFailure

public void withdrawAfterFailure(@Observes(during=AFTER_FAILURE)
                                 Withdrawal withdrawal)
                          throws Exception
Parameters:
withdrawal -
Throws:
Exception

failBeforeCompletion

public void failBeforeCompletion(@Observes(during=IN_PROGRESS)
                                 Failure failure)
                          throws Exception
Parameters:
failure -
Throws:
Exception


Copyright © 2008-2013 Seam Framework. All Rights Reserved.