-
@Documented @Retention(RUNTIME) @Target(ANNOTATION_TYPE) public @interface ConstraintRule
Use this annotation to define custom validator- Author:
- nedis
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<?>[]supportedTypesClass<? extends ConstraintValidator>[]validatorClass
-
-
-
Element Detail
-
supportedTypes
Class<?>[] supportedTypes
- Returns:
- all supported types, which can be validated by constraint annotation
-
-
-
validatorClass
Class<? extends ConstraintValidator>[] validatorClass
- Returns:
ConstraintValidatorclass per each supported type, i.e. supportedTypes.length must be equal to validatorClass.length, otherwise compile error will be throw
-
-