|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.bval.jsr303.AnnotationProcessor
public final class AnnotationProcessor
Description: implements uniform handling of JSR303 Constraint
annotations, including composed constraints and the resolution of
ConstraintValidator implementations.
| Constructor Summary | |
|---|---|
AnnotationProcessor(ApacheFactoryContext factoryContext)
Create a new AnnotationProcessor instance. |
|
| Method Summary | ||
|---|---|---|
boolean |
addAccessStrategy(MetaProperty prop,
AccessStrategy access)
Add the specified AccessStrategy to prop; noop if
prop == null. |
|
|
processAnnotation(A annotation,
Class<?> owner,
AppendValidation appender)
Convenience method to process a single class-level 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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationProcessor(ApacheFactoryContext factoryContext)
AnnotationProcessor instance.
factoryContext - | Method Detail |
|---|
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 propappender - handling accumulation
IllegalAccessException
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 accumulation
IllegalAccessException
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 propappender - handling accumulation
IllegalAccessException
InvocationTargetException
public boolean addAccessStrategy(MetaProperty prop,
AccessStrategy access)
AccessStrategy to prop; noop if
prop == null.
prop - access -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||