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
    • getIdentifier

      public String getIdentifier()
      A mandatory unique identifier automatically generated for each Observer.
      Returns:
      the unique identifier
    • getId

      @Deprecated(since="3.26", forRemoval=true) public String getId()
      Deprecated, for removal: This API element is subject to removal in a future version.
      use getUserId() instead
      A unique user id should be used for multiple synthetic observer methods with the same attributes (including the bean class).
      Returns:
      the optional user id
    • getUserId

      public String getUserId()
      A unique user id should be used for multiple synthetic observer methods with the same attributes (including the bean class).
      Returns:
      the optional user id
    • 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