javax.enterprise.event
Annotation Type Observes


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

The @Observes parameter annotation marks a method as capable of receiving events. The method must be thread safe, because the BeanManager may fire multiple events at once. The parameter type determines the events the method will observe.

 public void myObserver(@Observes MyEvent event);
 


Optional Element Summary
 TransactionPhase during
           
 Reception notifyObserver
           
 

during

public abstract TransactionPhase during
Default:
javax.enterprise.event.TransactionPhase.IN_PROGRESS

notifyObserver

public abstract Reception notifyObserver
Default:
javax.enterprise.event.Reception.ALWAYS