public final class AnnotationProcessor extends Object
Constraint
annotations, including composed constraints and the resolution of
ConstraintValidator
implementations.Constructor and Description |
---|
AnnotationProcessor(ApacheFactoryContext factoryContext)
Create a new
AnnotationProcessor instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
addAccessStrategy(MetaProperty prop,
AccessStrategy access)
|
<A extends Annotation> |
processAnnotation(A annotation,
Class<?> owner,
AppendValidation appender)
Convenience method to process a single class-level annotation.
|
<A extends Annotation> |
processAnnotation(A annotation,
MetaProperty prop,
Class<?> owner,
AccessStrategy access,
AppendValidation appender)
Process a single annotation.
|
boolean |
processAnnotations(MetaProperty prop,
Class<?> owner,
AnnotatedElement element,
AccessStrategy access,
AppendValidation appender)
Process JSR303 annotations.
|
public AnnotationProcessor(ApacheFactoryContext factoryContext)
AnnotationProcessor
instance.factoryContext
- public boolean processAnnotations(MetaProperty 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 final <A extends Annotation> boolean processAnnotation(A annotation, Class<?> owner, AppendValidation appender) throws IllegalAccessException, InvocationTargetException
A
- annotation typeannotation
- to processowner
- bean typeappender
- handling accumulationIllegalAccessException
InvocationTargetException
public <A extends Annotation> boolean processAnnotation(A annotation, MetaProperty prop, Class<?> owner, AccessStrategy access, AppendValidation appender) throws IllegalAccessException, InvocationTargetException
A
- annotation typeannotation
- to processprop
- potentially nullowner
- bean typeaccess
- strategy for prop
appender
- handling accumulationIllegalAccessException
InvocationTargetException
public boolean addAccessStrategy(MetaProperty prop, AccessStrategy access)
prop
- access
- Copyright © 2010-2015 The Apache Software Foundation. All Rights Reserved.