org.apache.myfaces.extensions.validator.core.validation
Annotation Type ConstraintSource
@Target(value={TYPE,FIELD,METHOD})
@Retention(value=RUNTIME)
@Documented
public @interface ConstraintSource
Allows to annotate e.g. DTOs and point to a class which provides the meta-data which should be used for validation.
It allows to follow the DRY principle in case of multiple classes which represent the same parts of a data-structure.
If needed, this annotation can be replaced by a customer defined one if one likes to have independence of ExtVal in
model classes - see
ExtValCoreConfiguration.constraintSourceAnnotation().
- Since:
- r4
|
Required Element Summary |
Class |
value
Class that needs to be used as source for constraints. |
value
public abstract Class value
- Class that needs to be used as source for constraints.
- Returns:
- Class that needs to be used as source for constraints.
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.