@Documented @Target(value=ANNOTATION_TYPE) @Retention(value=RUNTIME) public @interface Constraint
@Constraint
annotation which refers to its list of constraint validation implementations.Modifier and Type | Required Element and Description |
---|---|
Class<? extends ConstraintValidator<?,?>>[] |
validatedBy
ConstraintValidator classes must reference distinct target types. |
public abstract Class<? extends ConstraintValidator<?,?>>[] validatedBy
ConstraintValidator
classes must reference distinct target types.
If two ConstraintValidator
refer to the same type,
an exception will occur.Copyright © 2018 JBoss by Red Hat. All rights reserved.