|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=PARAMETER) @Retention(value=RUNTIME) @Documented public @interface Observes
Specifies that a method is an observer method and which event should be observed.
Sample:public class UserHandler { public void afterUserLogin(@Observes UserLoginEvent userHasLoggedIn) { ... } }
ObserverMethod
Optional Element Summary | |
---|---|
TransactionPhase |
during
Transaction phase |
Reception |
notifyObserver
Specifies whether or not call observer according to owner bean instace |
public abstract Reception notifyObserver
public abstract TransactionPhase during
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |