Interface AnnotationsTransformer

All Superinterfaces:
org.jboss.jandex.AnnotationTransformation, BuildExtension

public interface AnnotationsTransformer extends org.jboss.jandex.AnnotationTransformation, BuildExtension
Allows a build-time extension to override the annotations that exist on bean classes.

The container should use AnnotationStore to obtain annotations of any ClassInfo, FieldInfo and MethodInfo.

See Also:
  • Method Details

    • appliesTo

      default boolean appliesTo(org.jboss.jandex.AnnotationTarget.Kind kind)
      By default, the transformation is applied to all kinds of targets.
      Parameters:
      kind -
      Returns:
      true if the transformation applies to the specified kind, false otherwise
    • transform

      void transform(AnnotationsTransformer.TransformationContext transformationContext)
      The transformation context is used to perform the transformation. In particular, AnnotationsTransformer.TransformationContext.transform() returns a new transformation object that can be used to alter annotation metadata. Note that the transformation is not applied until the Transformation.done() method is invoked.
      Parameters:
      transformationContext -
    • priority

      default int priority()
      Specified by:
      priority in interface org.jboss.jandex.AnnotationTransformation
    • supports

      default boolean supports(org.jboss.jandex.AnnotationTarget.Kind kind)
      Specified by:
      supports in interface org.jboss.jandex.AnnotationTransformation
    • apply

      default void apply(org.jboss.jandex.AnnotationTransformation.TransformationContext context)
      Specified by:
      apply in interface org.jboss.jandex.AnnotationTransformation
    • requiresCompatibleMode

      default boolean requiresCompatibleMode()
      Specified by:
      requiresCompatibleMode in interface org.jboss.jandex.AnnotationTransformation
    • builder

      Returns:
      a new builder instance
      See Also:
    • appliedToMethod

      Returns:
      a new builder to transform methods
    • appliedToField

      Returns:
      a new builder to transform fields
    • appliedToClass

      Returns:
      a new builder to transform class