Package io.quarkus.arc.processor
Interface AnnotationsTransformer
-
- All Superinterfaces:
BuildExtension
public interface AnnotationsTransformer extends BuildExtension
Allows a build-time extension to override the annotations that exist on bean classes.The container should use
AnnotationStoreto obtain annotations of anyClassInfo,FieldInfoandMethodInfo.- See Also:
AnnotationsTransformer.Builder
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAnnotationsTransformer.AbstractBuilder<THIS extends AnnotationsTransformer.AbstractBuilder<THIS>>static classAnnotationsTransformer.BuilderA commonAnnotationsTransformerbuilder.static classAnnotationsTransformer.ClassTransformerBuilderstatic classAnnotationsTransformer.FieldTransformerBuilderstatic classAnnotationsTransformer.MethodTransformerBuilderstatic interfaceAnnotationsTransformer.TransformationContextA transformation context.-
Nested classes/interfaces inherited from interface io.quarkus.arc.processor.BuildExtension
BuildExtension.BuildContext, BuildExtension.Key<T>, BuildExtension.SimpleKey<V>
-
-
Field Summary
-
Fields inherited from interface io.quarkus.arc.processor.BuildExtension
DEFAULT_PRIORITY
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static AnnotationsTransformer.ClassTransformerBuilderappliedToClass()static AnnotationsTransformer.FieldTransformerBuilderappliedToField()static AnnotationsTransformer.MethodTransformerBuilderappliedToMethod()default booleanappliesTo(org.jboss.jandex.AnnotationTarget.Kind kind)By default, the transformation is applied to all kinds of targets.static AnnotationsTransformer.Builderbuilder()voidtransform(AnnotationsTransformer.TransformationContext transformationContext)The transformation context is used to perform the transformation.-
Methods inherited from interface io.quarkus.arc.processor.BuildExtension
getPriority, initialize
-
-
-
-
Method Detail
-
appliesTo
default boolean appliesTo(org.jboss.jandex.AnnotationTarget.Kind kind)
By default, the transformation is applied to all kinds of targets.- Parameters:
kind-- Returns:
trueif the transformation applies to the specified kind,falseotherwise
-
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 theAnnotationsTransformation.done()method is invoked.- Parameters:
transformationContext-
-
builder
static AnnotationsTransformer.Builder builder()
- Returns:
- a new builder instance
- See Also:
appliedToMethod(),appliedToField(),appliedToClass()
-
appliedToMethod
static AnnotationsTransformer.MethodTransformerBuilder appliedToMethod()
- Returns:
- a new builder to transform methods
-
appliedToField
static AnnotationsTransformer.FieldTransformerBuilder appliedToField()
- Returns:
- a new builder to transform fields
-
appliedToClass
static AnnotationsTransformer.ClassTransformerBuilder appliedToClass()
- Returns:
- a new builder to transform class
-
-