Interface InjectionPointsTransformer.TransformationContext
- All Superinterfaces:
BuildExtension.BuildContext
- Enclosing interface:
- InjectionPointsTransformer
-
Method Summary
Modifier and TypeMethodDescriptionCollection<org.jboss.jandex.AnnotationInstance>Deprecated, for removal: This API element is subject to removal in a future version.Collection<org.jboss.jandex.AnnotationInstance>Retrieves all annotations attached to theAnnotationTargetthat this transformer operates on.org.jboss.jandex.AnnotationTargetReturnsAnnotationTargetrepresenting this injection point.Set<org.jboss.jandex.AnnotationInstance>Returns current set of annotations instances - qualifiers.org.jboss.jandex.AnnotationTargetDeprecated, for removal: This API element is subject to removal in a future version.The transformation is not applied until theAnnotationsTransformation.done()method is invoked.Methods inherited from interface io.quarkus.arc.processor.BuildExtension.BuildContext
get, put
-
Method Details
-
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.Returns
AnnotationTargetrepresenting this injection point. For injected parameters, this method returns theAnnotationTargetof the whole method.- Returns:
- the annotation target of this injection point
-
getAnnotationTarget
org.jboss.jandex.AnnotationTarget getAnnotationTarget()ReturnsAnnotationTargetrepresenting this injection point. UnlikegetTarget(), for injected parameters, this method returns the method parameter.- Returns:
- the annotation target of this injection point
-
getQualifiers
Set<org.jboss.jandex.AnnotationInstance> getQualifiers()Returns current set of annotations instances - qualifiers.- Returns:
- the annotation instances
-
getAllAnnotations
@Deprecated(forRemoval=true, since="3.12") Collection<org.jboss.jandex.AnnotationInstance> getAllAnnotations()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. UsegetAllTargetAnnotations()instead.Retrieves all annotations attached to the
AnnotationTargetthat this transformer operates on. ThisAnnotationTargetis equal to what thegetTarget()()} method returns. The result includes annotations that were altered byAnnotationsTransformer. This method is preferred to manual inspection ofAnnotationTargetwhich may, in some corner cases, hold outdated information. The resulting set of annotations contains all annotations, not just CDI qualifiers. If the annotation target is a method, then this set contains annotations that belong to the method itself as well as to its parameters.- Returns:
- collection of all annotations related to given
AnnotationTarget
-
getAllTargetAnnotations
Collection<org.jboss.jandex.AnnotationInstance> getAllTargetAnnotations()Retrieves all annotations attached to theAnnotationTargetthat this transformer operates on. ThisAnnotationTargetis equal to what thegetAnnotationTarget()method returns. The result includes annotations that were altered byAnnotationsTransformer. This method is preferred to manual inspection ofAnnotationTargetwhich may, in some corner cases, hold outdated information. The resulting set of annotations contains all annotations, not just CDI qualifiers.- Returns:
- collection of all annotations related to given
AnnotationTarget
-
transform
InjectionPointsTransformer.Transformation transform()The transformation is not applied until theAnnotationsTransformation.done()method is invoked.- Returns:
- a new transformation
-