Interface InjectionPointsTransformer.TransformationContext

All Superinterfaces:
BuildExtension.BuildContext
Enclosing interface:
InjectionPointsTransformer

public static interface InjectionPointsTransformer.TransformationContext extends BuildExtension.BuildContext
  • Method Details

    • getTarget

      @Deprecated(forRemoval=true, since="3.12") org.jboss.jandex.AnnotationTarget 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. Use getAnnotationTarget() instead.

      Returns AnnotationTarget representing this injection point. For injected parameters, this method returns the AnnotationTarget of the whole method.

      Returns:
      the annotation target of this injection point
    • getAnnotationTarget

      org.jboss.jandex.AnnotationTarget getAnnotationTarget()
      Returns AnnotationTarget representing this injection point. Unlike getTarget(), 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. Use getAllTargetAnnotations() instead.

      Retrieves all annotations attached to the AnnotationTarget that this transformer operates on. This AnnotationTarget is equal to what the getTarget() ()} method returns. The result includes annotations that were altered by AnnotationsTransformer. This method is preferred to manual inspection of AnnotationTarget which 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 the AnnotationTarget that this transformer operates on. This AnnotationTarget is equal to what the getAnnotationTarget() method returns. The result includes annotations that were altered by AnnotationsTransformer. This method is preferred to manual inspection of AnnotationTarget which 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

      The transformation is not applied until the AnnotationsTransformation.done() method is invoked.
      Returns:
      a new transformation