Interface AnnotationsTransformer

All Superinterfaces:
org.jboss.jandex.AnnotationTransformation

public interface AnnotationsTransformer extends org.jboss.jandex.AnnotationTransformation
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:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A convenient builder.
    static interface 
    A transformation context.

    Nested classes/interfaces inherited from interface org.jboss.jandex.AnnotationTransformation

    org.jboss.jandex.AnnotationTransformation.ClassBuilder, org.jboss.jandex.AnnotationTransformation.DeclarationBuilder, org.jboss.jandex.AnnotationTransformation.FieldBuilder, org.jboss.jandex.AnnotationTransformation.MethodBuilder, org.jboss.jandex.AnnotationTransformation.MethodParameterBuilder, org.jboss.jandex.AnnotationTransformation.RecordComponentBuilder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     

    Fields inherited from interface org.jboss.jandex.AnnotationTransformation

    DEFAULT_PRIORITY_VALUE
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    appliesTo(org.jboss.jandex.AnnotationTarget.Kind kind)
    By default, the transformation is applied to all kinds of targets.
    default void
    apply(org.jboss.jandex.AnnotationTransformation.TransformationContext context)
     
     
    static int
     
    default int
    Processors with higher priority are called first.
    default int
     
    default boolean
     
    default boolean
    supports(org.jboss.jandex.AnnotationTarget.Kind kind)
     
    void
     
  • Field Details

  • Method Details

    • compare

      static int compare(AnnotationsTransformer e1, AnnotationsTransformer e2)
    • getPriority

      default int getPriority()
      Processors with higher priority are called first.
      Returns:
      the priority
    • 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)
      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