|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.webbeans.event.DeferredEventNotification<T>
public class DeferredEventNotification<T>
A synchronization object which will deliver the event to the observer after the JTA transaction currently in effect is committed.
Synchronization| Constructor Summary | |
|---|---|
DeferredEventNotification(T event,
Observer<T> observer)
Creates a new deferred event notifier. |
|
| Method Summary | |
|---|---|
void |
afterCompletion(int status)
Called after completion of a transaction Checks if the observer is interested in this particular transaction phase and if so, notifies the observer. |
void |
beforeCompletion()
Called before completion of a transaction Checks if the observer is interested in this particular transaction phase and if so, notifies the observer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeferredEventNotification(T event,
Observer<T> observer)
observer - The observer to be notifiedevent - The event being fired| Method Detail |
|---|
public void afterCompletion(int status)
afterCompletion in interface javax.transaction.Synchronizationstatus - The status of the transactionStatuspublic void beforeCompletion()
beforeCompletion in interface javax.transaction.Synchronization
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||