Class VetoingAnnotationTransformer
java.lang.Object
io.quarkus.resteasy.reactive.common.deployment.VetoingAnnotationTransformer
- All Implemented Interfaces:
io.quarkus.arc.processor.AnnotationsTransformer,io.quarkus.arc.processor.BuildExtension,org.jboss.jandex.AnnotationTransformation
public class VetoingAnnotationTransformer
extends Object
implements io.quarkus.arc.processor.AnnotationsTransformer
If a JAX-RS resource uses something like @QueryParam, @HeaderParam or the like in a constructor parameter,
then we need to make sure that Arc doesn't create a bean for it automatically (as it will fail validation because
there is no way to pass the parameter).
For these resources we add
Vetoed, and we generate custom CDI producers under the hood
in io.quarkus.resteasy.reactive.server.deployment.CustomResourceProducersGenerator#generate.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.quarkus.arc.processor.AnnotationsTransformer
io.quarkus.arc.processor.AnnotationsTransformer.AbstractBuilder<THIS extends io.quarkus.arc.processor.AnnotationsTransformer.AbstractBuilder<THIS>>, io.quarkus.arc.processor.AnnotationsTransformer.Builder, io.quarkus.arc.processor.AnnotationsTransformer.ClassTransformerBuilder, io.quarkus.arc.processor.AnnotationsTransformer.FieldTransformerBuilder, io.quarkus.arc.processor.AnnotationsTransformer.MethodTransformerBuilder, io.quarkus.arc.processor.AnnotationsTransformer.TransformationContextNested 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 inherited from interface org.jboss.jandex.AnnotationTransformation
DEFAULT_PRIORITY_VALUEFields inherited from interface io.quarkus.arc.processor.BuildExtension
DEFAULT_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionVetoingAnnotationTransformer(Set<org.jboss.jandex.DotName> resourcesThatNeedCustomProducer) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.arc.processor.AnnotationsTransformer
apply, priority, requiresCompatibleMode, supportsMethods inherited from interface io.quarkus.arc.processor.BuildExtension
getPriority, initialize
-
Constructor Details
-
VetoingAnnotationTransformer
-
-
Method Details
-
appliesTo
public boolean appliesTo(org.jboss.jandex.AnnotationTarget.Kind kind) - Specified by:
appliesToin interfaceio.quarkus.arc.processor.AnnotationsTransformer
-
transform
public void transform(io.quarkus.arc.processor.AnnotationsTransformer.TransformationContext context) - Specified by:
transformin interfaceio.quarkus.arc.processor.AnnotationsTransformer
-