javax.validation
Annotation Type Constraint
@Documented
@Target(value=ANNOTATION_TYPE)
@Retention(value=RUNTIME)
public @interface Constraint
Link between a constraint annotation and its constraint validation implementations.
A given constraint annotation should be annotated by a @Constraint
annotation which refers to its list of constraint validation implementations.
- Author:
- Emmanuel Bernard, Gavin King, Hardy Ferentschik
validatedBy
public abstract Class<? extends ConstraintValidator<?,?>>[] validatedBy
ConstraintValidator
classes must reference distinct target types.
If two ConstraintValidator
s refer to the same type,
an exception will occur.
- Returns:
- array of (@code ConstraintValidator} classes implementing the constraint
Copyright © 2007-2013. All Rights Reserved.