Class InjectionPointInfo

java.lang.Object
io.quarkus.arc.processor.InjectionPointInfo

public class InjectionPointInfo extends Object
Represents an injection point.
Author:
Martin Kouba
  • Method Details

    • getResolvedBean

      public BeanInfo getResolvedBean()
    • getTargetBean

      public Optional<BeanInfo> getTargetBean()
    • setTargetBean

      public void setTargetBean(BeanInfo bean)
    • getRequiredType

      public org.jboss.jandex.Type getRequiredType()
      Note that for programmatic lookup, the required type is the type parameter specified at the injection point. For example, the required type for an injection point of type Instance<org.acme.Foo> is org.acme.Foo.
      Returns:
      the required type of this injection point
    • getType

      public org.jboss.jandex.Type getType()
      This method always returns the original type declared on the injection point, unlike getRequiredType().
      Returns:
      the type specified at the injection point
    • isProgrammaticLookup

      public boolean isProgrammaticLookup()
      Returns:
      true if this injection represents a dynamically obtained instance, false otherwise
    • getRequiredQualifiers

      public Set<org.jboss.jandex.AnnotationInstance> getRequiredQualifiers()
    • getRequiredQualifier

      public org.jboss.jandex.AnnotationInstance getRequiredQualifier(org.jboss.jandex.DotName name)
    • hasDefaultedQualifier

      public boolean hasDefaultedQualifier()
    • getTarget

      public org.jboss.jandex.AnnotationTarget getTarget()
      For injected params, this method returns the corresponding method and not the param itself.
      Returns:
      the annotation target or null in case of synthetic injection point
    • isField

      public boolean isField()
    • isParam

      public boolean isParam()
    • isTransient

      public boolean isTransient()
    • isTransientReference

      public boolean isTransientReference()
    • isDelegate

      public boolean isDelegate()
    • hasResolvedBean

      public boolean hasResolvedBean()
    • getPosition

      public int getPosition()
      Returns:
      the parameter position or -1 for a field injection point
    • getTargetInfo

      public String getTargetInfo()
    • isSynthetic

      public boolean isSynthetic()
      Returns:
      true if it represents a synthetic injection point, false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object