|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jsefa.common.annotation.ValidatorFactory
public final class ValidatorFactory
Factory for creating Validator
s from annotated classes.
Constructor Summary | |
---|---|
ValidatorFactory(ValidatorProvider validatorProvider,
ObjectAccessorProvider objectAccessorProvider)
Constructs a new ValidatorFactory . |
Method Summary | |
---|---|
Validator |
createContextualValidator(Class<?> objectType,
Field field,
Annotation contextAnnotation,
Class<? extends Annotation> dataTypeAnnotationType)
Creates a contextual validator for the given object type. |
Validator |
createValidator(Class<?> objectType,
Class<? extends Annotation>... fieldAnnotationTypes)
Creates a context free validator for the given object type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidatorFactory(ValidatorProvider validatorProvider, ObjectAccessorProvider objectAccessorProvider)
ValidatorFactory
.
validatorProvider
- the validator providerobjectAccessorProvider
- the object accessor providerMethod Detail |
---|
public Validator createContextualValidator(Class<?> objectType, Field field, Annotation contextAnnotation, Class<? extends Annotation> dataTypeAnnotationType)
objectType
- the object type to create a validator forfield
- the field to create a contextual validator for (may be null)contextAnnotation
- the annotation providing parameters for constructing the validatordataTypeAnnotationType
- the type of the data type annotation providing default parameters for
constructing the validator
public Validator createValidator(Class<?> objectType, Class<? extends Annotation>... fieldAnnotationTypes)
objectType
- the object type to create a validator forfieldAnnotationTypes
- the possible annotation types for the fields of the given object type providing
parameters for constructing the validator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |