javax.enterprise.event
Annotation Type Observes


@Target(value=PARAMETER)
@Retention(value=RUNTIME)
@Documented
public @interface Observes

Specifies that a parameter of a method of a bean implementation class is the event parameter of an observer method.

Author:
Gavin King, Pete Muir, David Allen

Optional Element Summary
 TransactionPhase during
          Specifies whether or not the notification should occur as part of an ongoing transaction, and if so, in which phase of the transaction the notification should occur.
 Notify notifyObserver
          Specifies when an observer method should be notified of an event.
 

notifyObserver

public abstract Notify notifyObserver
Specifies when an observer method should be notified of an event. Defaults to ALWAYS meaning that if a bean instance with the observer method does not already exist, one will be created to receive the event.

Default:
javax.enterprise.event.Notify.ALWAYS

during

public abstract TransactionPhase during
Specifies whether or not the notification should occur as part of an ongoing transaction, and if so, in which phase of the transaction the notification should occur. The default is IN_PROGRESS meaning the notification is not transactional.

Default:
javax.enterprise.event.TransactionPhase.IN_PROGRESS


Copyright © 2008-2009. All Rights Reserved.