A - the type of annotations processedT - the type of values processed@FunctionalInterface
public interface ConstraintAnnotationProcessor<A extends java.lang.annotation.Annotation,T>
Annotations made for this type of processor should
specifically target ElementType.TYPE_USE.
| Modifier and Type | Method and Description |
|---|---|
void |
apply(A annotation,
java.lang.reflect.AnnotatedElement annotated,
java.lang.Object pojo,
AbstractConstraintsBuilder<?,?,T> constraints)
Called for every type use site (field or generics) that has an annotation of type
A. |
void apply(A annotation, java.lang.reflect.AnnotatedElement annotated, java.lang.Object pojo, AbstractConstraintsBuilder<?,?,T> constraints)
A.annotation - the annotation present on the annotated elementannotated - an annotated type use site declared in pojo's classpojo - the plain old java object being processedconstraints - the constraints builder being configuredAnnotatedSettings.applyToNode(ConfigTree, Object)