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.
Modifier and Type | Method and Description |
---|---|
Class<?> |
getBeanClass()
Obtains the bean class of the bean 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.
|
Class<?> getBeanClass()
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)
event
- the event objectCopyright © 2018 JBoss by Red Hat. All rights reserved.