Package io.quarkus.arc.processor
Class ObserverInfo
- java.lang.Object
-
- io.quarkus.arc.processor.ObserverInfo
-
- All Implemented Interfaces:
InjectionTargetInfo
public class ObserverInfo extends Object implements InjectionTargetInfo
Represents an observer method.- Author:
- Martin Kouba
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.quarkus.arc.processor.InjectionTargetInfo
InjectionTargetInfo.TargetKind
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObserverInfoasObserver()org.jboss.jandex.DotNamegetBeanClass()BeanInfogetDeclaringBean()org.jboss.jandex.MethodParameterInfogetEventParameter()StringgetId()A unique identifier should be used for multiple synthetic observer methods with the same attributes (including the bean class).org.jboss.jandex.TypegetObservedType()org.jboss.jandex.MethodInfogetObserverMethod()intgetPriority()Set<org.jboss.jandex.AnnotationInstance>getQualifiers()jakarta.enterprise.event.ReceptiongetReception()jakarta.enterprise.event.TransactionPhasegetTransactionPhase()booleanisAsync()booleanisSynthetic()InjectionTargetInfo.TargetKindkind()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.quarkus.arc.processor.InjectionTargetInfo
asBean, asDisposer
-
-
-
-
Method Detail
-
kind
public InjectionTargetInfo.TargetKind kind()
- Specified by:
kindin interfaceInjectionTargetInfo
-
asObserver
public ObserverInfo asObserver()
- Specified by:
asObserverin interfaceInjectionTargetInfo
-
getId
public String getId()
A unique identifier should be used for multiple synthetic observer methods with the same attributes (including the bean class).- Returns:
- the optional identifier
-
getBeanClass
public org.jboss.jandex.DotName getBeanClass()
- Returns:
- the class of the declaring bean or the class provided by the configurator for synthetic observers
-
getDeclaringBean
public BeanInfo getDeclaringBean()
- Returns:
- the declaring bean or null in case of synthetic observer
-
isSynthetic
public boolean isSynthetic()
-
getObserverMethod
public org.jboss.jandex.MethodInfo getObserverMethod()
- Returns:
- the observer method or null in case of synthetic observer
-
getEventParameter
public org.jboss.jandex.MethodParameterInfo getEventParameter()
- Returns:
- the event parameter or null in case of synthetic observer
-
getReception
public jakarta.enterprise.event.Reception getReception()
-
getTransactionPhase
public jakarta.enterprise.event.TransactionPhase getTransactionPhase()
-
isAsync
public boolean isAsync()
-
getObservedType
public org.jboss.jandex.Type getObservedType()
-
getQualifiers
public Set<org.jboss.jandex.AnnotationInstance> getQualifiers()
-
getPriority
public int getPriority()
-
-