Package io.quarkus.arc.processor
Class ObserverInfo
java.lang.Object
io.quarkus.arc.processor.ObserverInfo
- All Implemented Interfaces:
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
Modifier and TypeMethodDescriptionorg.jboss.jandex.DotNameorg.jboss.jandex.MethodParameterInfogetId()A unique identifier should be used for multiple synthetic observer methods with the same attributes (including the bean class).org.jboss.jandex.Typeorg.jboss.jandex.MethodInfointSet<org.jboss.jandex.AnnotationInstance>jakarta.enterprise.event.Receptionjakarta.enterprise.event.TransactionPhasebooleanisAsync()booleankind()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.quarkus.arc.processor.InjectionTargetInfo
asBean, asDisposer
-
Method Details
-
kind
- Specified by:
kindin interfaceInjectionTargetInfo
-
asObserver
- Specified by:
asObserverin interfaceInjectionTargetInfo
-
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
- 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
-
getPriority
public int getPriority() -
toString
-