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 TypeMethodDescriptionorg.jboss.jandex.AnnotationTargetUnlikegetTarget(), for injected params, this method returns the method parameter itself.intorg.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.AnnotationTargetDeprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.This method is deprecated and will be removed at some point after Quarkus 3.15. UsegetAnnotationTarget()instead. Both methods behave equally except for method parameter injection points wheregetAnnotationTarget()returns method parameter asAnnotationTargetinstead of the whole method.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
-
getAnnotationTarget
public org.jboss.jandex.AnnotationTarget getAnnotationTarget()UnlikegetTarget(), for injected params, this method returns the method parameter 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 or synthetic injection point
-
getTargetInfo
-
isSynthetic
public boolean isSynthetic()- Returns:
trueif it represents a synthetic injection point,falseotherwise
-
toString
-