Package io.quarkus.arc.processor
Class InjectionPointInfo
java.lang.Object
io.quarkus.arc.processor.InjectionPointInfo
Represents an injection point.
- Author:
- Martin Kouba
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionintorg.jboss.jandex.AnnotationInstancegetRequiredQualifier(org.jboss.jandex.DotName name) Set<org.jboss.jandex.AnnotationInstance>org.jboss.jandex.TypeNote that for programmatic lookup, the required type is the type parameter specified at the injection point.org.jboss.jandex.AnnotationTargetFor injected params, this method returns the corresponding method and not the param itself.org.jboss.jandex.TypegetType()This method always returns the original type declared on the injection point, unlikegetRequiredType().booleanbooleanbooleanbooleanisField()booleanisParam()booleanbooleanbooleanbooleanvoidsetTargetBean(BeanInfo bean) toString()
-
Method Details
-
getResolvedBean
-
getTargetBean
-
setTargetBean
-
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 typeInstance<org.acme.Foo>isorg.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, unlikegetRequiredType().- Returns:
- the type specified at the injection point
-
isProgrammaticLookup
public boolean isProgrammaticLookup()- Returns:
trueif this injection represents a dynamically obtained instance,falseotherwise
-
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
nullin 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
-1for a field injection point
-
getTargetInfo
-
isSynthetic
public boolean isSynthetic()- Returns:
trueif it represents a synthetic injection point,falseotherwise
-
toString
-