|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the event typepublic interface ObserverMethod<T>
Represents an observer method of an enabled bean. Defines everything the container needs to know about an observer method.
Method Summary | |
---|---|
Class<?> |
getBeanClass()
Obtains the class of the type that declares the observer method. |
Set<Annotation> |
getObservedQualifiers()
Obtains the set of observed event qualifiers. |
Type |
getObservedType()
Obtains the observed event type. |
Reception |
getReception()
Obtains the specified Reception for the observer method. |
TransactionPhase |
getTransactionPhase()
Obtains the specified TransactionPhase for the observer method. |
void |
notify(T event)
Calls the observer method, passing the given event object. |
void |
notify(T event,
Set<Annotation> qualifiers)
Calls the observer method, passing the given event object. |
Method Detail |
---|
Class<?> getBeanClass()
Obtains the class of the type that declares the observer method.
Type getObservedType()
Set<Annotation> getObservedQualifiers()
Reception getReception()
Reception
for the observer method. This indicates if the observer is conditional or not.
Reception
TransactionPhase getTransactionPhase()
TransactionPhase
for the observer method.
TransactionPhase
void notify(T event)
Calls the observer method, passing the given event object.
The implementation of notify(Object)
for a custom observer method is responsible for
deciding whether to call the method if the getReception()
returns Reception.IF_EXISTS
.
event
- the event objectvoid notify(T event, Set<Annotation> qualifiers)
Calls the observer method, passing the given event object.
The implementation of notify(Object, Set)
for a custom observer method is responsible for
deciding whether to call the method if the getReception()
returns Reception.IF_EXISTS
.
event
- the event objectqualifiers
- the qualifiers with which the event was called
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |