public interface ObserverInfo
| Modifier and Type | Method and Description |
|---|---|
BeanInfo |
bean()
Returns the
bean that declares this observer method. |
ClassInfo |
declaringClass()
Returns the class that declares this observer.
|
ParameterInfo |
eventParameter()
Returns the event parameter of this observer method.
|
Type |
eventType()
Returns the observed event type of this observer.
|
boolean |
isAsync()
Returns whether this observer is asynchronous.
|
boolean |
isSynthetic()
Returns whether this observer is synthetic.
|
MethodInfo |
observerMethod()
Returns the declaration of this observer method.
|
int |
priority()
Returns the priority of this observer.
|
java.util.Collection<AnnotationInfo> |
qualifiers()
Returns a collection of observed event qualifiers, represented as
AnnotationInfo. |
Reception |
reception()
Returns the reception type of this observer.
|
TransactionPhase |
transactionPhase()
Returns the
transaction phase of this transactional observer. |
Type eventType()
nulljava.util.Collection<AnnotationInfo> qualifiers()
AnnotationInfo.nullClassInfo declaringClass()
nullMethodInfo observerMethod()
null if this is a synthetic observer.null if this is a synthetic observerParameterInfo eventParameter()
null if this is a synthetic observer.null if this is a synthetic observerBeanInfo bean()
bean that declares this observer method.
Returns null if this is a synthetic observer.null if this is a synthetic observerboolean isSynthetic()
int priority()
@Priority annotation to the event parameter of the observer method.
If the annotation is not used, the default priority, as defined by the CDI specification, is returned,boolean isAsync()
@ObservesAsync.Reception reception()
Reception.ALWAYS if this is a synthetic observer.nullTransactionPhase transactionPhase()
transaction phase of this transactional observer.
Returns TransactionPhase.IN_PROGRESS if this is a regular synchronous observer.
Returns null if this is an asynchronous observer.null if this is an asynchronous observer