Package io.quarkus.arc.processor
Class InjectionPointInfo
- java.lang.Object
-
- io.quarkus.arc.processor.InjectionPointInfo
-
public class InjectionPointInfo extends Object
Represents an injection point.- Author:
- Martin Kouba
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInjectionPointInfo.TypeAndQualifiers
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPosition()org.jboss.jandex.AnnotationInstancegetRequiredQualifier(org.jboss.jandex.DotName name)Set<org.jboss.jandex.AnnotationInstance>getRequiredQualifiers()org.jboss.jandex.TypegetRequiredType()Note that for programmatic lookup, the required type is the type parameter specified at the injection point.BeanInfogetResolvedBean()org.jboss.jandex.AnnotationTargetgetTarget()For injected params, this method returns the corresponding method and not the param itself.Optional<BeanInfo>getTargetBean()StringgetTargetInfo()org.jboss.jandex.TypegetType()This method always returns the original type declared on the injection point, unlikegetRequiredType().booleanhasDefaultedQualifier()booleanhasResolvedBean()booleanisDelegate()booleanisField()booleanisParam()booleanisProgrammaticLookup()booleanisSynthetic()booleanisTransient()booleanisTransientReference()voidsetTargetBean(BeanInfo bean)StringtoString()
-
-
-
Method Detail
-
getResolvedBean
public BeanInfo getResolvedBean()
-
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 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
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
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
public String getTargetInfo()
-
isSynthetic
public boolean isSynthetic()
- Returns:
trueif it represents a synthetic injection point,falseotherwise
-
-