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
  • Method Details

    • kind

      Specified by:
      kind in interface InjectionTargetInfo
    • asObserver

      public ObserverInfo asObserver()
      Specified by:
      asObserver in interface InjectionTargetInfo
    • 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()
    • toString

      public String toString()
      Overrides:
      toString in class Object