Interface ObserverInfo
- 
 public interface ObserverInfoObservers are:- observer methods
- synthetic observers
 - Since:
- 4.0
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description BeanInfobean()Returns thebeanthat declares this observer method.ClassInfodeclaringClass()Returns the class that declares this observer.ParameterInfoeventParameter()Returns the event parameter of this observer method.TypeeventType()Returns the observed event type of this observer.booleanisAsync()Returns whether this observer is asynchronous.booleanisSynthetic()Returns whether this observer is synthetic.MethodInfoobserverMethod()Returns the declaration of this observer method.intpriority()Returns the priority of this observer.Collection<AnnotationInfo>qualifiers()Returns a collection of observed event qualifiers, represented asAnnotationInfo.Receptionreception()Returns the reception type of this observer.TransactionPhasetransactionPhase()Returns thetransaction phaseof this transactional observer.
 
- 
- 
- 
Method Detail- 
eventTypeType eventType() Returns the observed event type of this observer.- Returns:
- the observed event type of this observer, never null
 
 - 
qualifiersCollection<AnnotationInfo> qualifiers() Returns a collection of observed event qualifiers, represented asAnnotationInfo.- Returns:
- immutable collection of observed event qualifiers, never null
 
 - 
declaringClassClassInfo declaringClass() Returns the class that declares this observer. In case of synthetic observers, returns the class that was designated as a declaring class during synthetic observer registration.- Returns:
- the class that declares this observer, never null
 
 - 
observerMethodMethodInfo observerMethod() Returns the declaration of this observer method. Returnsnullif this is a synthetic observer.- Returns:
- this observer method, or nullif this is a synthetic observer
 
 - 
eventParameterParameterInfo eventParameter() Returns the event parameter of this observer method. Returnsnullif this is a synthetic observer.- Returns:
- the event parameter of this observer method, or nullif this is a synthetic observer
 
 - 
beanBeanInfo bean() Returns thebeanthat declares this observer method. Returnsnullif this is a synthetic observer.- Returns:
- the bean declaring this observer method, or nullif this is a synthetic observer
 
 - 
isSyntheticboolean isSynthetic() Returns whether this observer is synthetic.- Returns:
- whether this observer is synthetic
 
 - 
priorityint priority() Returns the priority of this observer. This is typically defined by adding the@Priorityannotation 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,- Returns:
- the priority of this observer
 
 - 
isAsyncboolean isAsync() Returns whether this observer is asynchronous. For observer methods, this means whether this observer method uses@ObservesAsync.- Returns:
- whether this observer is asynchronous
 
 - 
receptionReception reception() Returns the reception type of this observer. Allows distinguishing conditional observer methods from always notified observer methods. ReturnsReception.ALWAYSif this is a synthetic observer.- Returns:
- the reception type of this observer, never null
 
 - 
transactionPhaseTransactionPhase transactionPhase() Returns thetransaction phaseof this transactional observer. ReturnsTransactionPhase.IN_PROGRESSif this is a regular synchronous observer. Returnsnullif this is an asynchronous observer.- Returns:
- the transaction phase of this observer, or nullif this is an asynchronous observer
 
 
- 
 
-