public final class ConstraintValidators
extends java.lang.Object
ConstraintValidator
implementation for an annotation.Modifier | Constructor and Description |
---|---|
private |
ConstraintValidators() |
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<ConstraintValidator<?>> |
findValidators(java.lang.annotation.Annotation... annotations)
Finds all relevant
ConstraintValidator objects from an array of annotations. |
private static java.lang.reflect.Type |
getConstraintValidatorAnnotationType(java.lang.Class<? extends ConstraintValidator<?>> type) |
private static <A extends java.lang.annotation.Annotation> |
getValidator(A annotation,
java.lang.Class<? extends A> type) |
public static java.util.Collection<ConstraintValidator<?>> findValidators(java.lang.annotation.Annotation... annotations)
ConstraintValidator
objects from an array of annotations. All validators will be
initialized
before being returned.annotations
- the annotations to find constraint validators forprivate static <A extends java.lang.annotation.Annotation> ConstraintValidator<A> getValidator(A annotation, java.lang.Class<? extends A> type)
private static java.lang.reflect.Type getConstraintValidatorAnnotationType(java.lang.Class<? extends ConstraintValidator<?>> type)