Annotation Type Constraint
-
@Documented @Target(ANNOTATION_TYPE) @Retention(RUNTIME) public @interface Constraint
Meta annotation to mark an annotation as a validation constraint. This annotation must specify aConstraintValidatorimplementation class that has a default constructor.- Since:
- 2.1
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<? extends ConstraintValidator<? extends Annotation>>valueConstraintValidatorclass that implements the validation logic for the annotated constraint annotation.
-
-
-
Element Detail
-
value
Class<? extends ConstraintValidator<? extends Annotation>> value
ConstraintValidatorclass that implements the validation logic for the annotated constraint annotation.
-
-