public final class AnnotationProcessor extends Object
Constraint
annotations, including composed constraints and the resolution of
ConstraintValidator
implementations.Constructor and Description |
---|
AnnotationProcessor(ApacheValidatorFactory factory)
Create a new
AnnotationProcessor instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
addAccessStrategy(Meta prop,
AccessStrategy access)
|
<A extends Annotation> |
processAnnotation(A annotation,
Meta prop,
Class<?> owner,
AccessStrategy access,
AppendValidation appender,
boolean reflection)
Process a single annotation.
|
boolean |
processAnnotations(Meta prop,
Class<?> owner,
AnnotatedElement element,
AccessStrategy access,
AppendValidation appender)
Process JSR303 annotations.
|
public AnnotationProcessor(ApacheValidatorFactory factory)
AnnotationProcessor
instance.factory
- the validator factory.public boolean processAnnotations(Meta prop, Class<?> owner, AnnotatedElement element, AccessStrategy access, AppendValidation appender) throws IllegalAccessException, InvocationTargetException
prop
- potentially nullowner
- bean typeelement
- whose annotations to readaccess
- strategy for prop
appender
- handling accumulationIllegalAccessException
InvocationTargetException
public <A extends Annotation> boolean processAnnotation(A annotation, Meta prop, Class<?> owner, AccessStrategy access, AppendValidation appender, boolean reflection) throws IllegalAccessException, InvocationTargetException
A
- annotation typeannotation
- to processprop
- potentially nullowner
- bean typeaccess
- strategy for prop
appender
- handling accumulationIllegalAccessException
InvocationTargetException
public boolean addAccessStrategy(Meta prop, AccessStrategy access)
prop
- access
- Copyright © 2010–2018 The Apache Software Foundation. All rights reserved.