public interface ConstraintValidatorRegistry
| Modifier and Type | Method and Description | 
|---|---|
| <A extends Annotation,T> | findConstraintValidator(Class<A> constraintType,
                       Class<T> targetType)Finds a constraint validator for the given type and target type. | 
| default <A extends Annotation,T> | getConstraintValidator(Class<A> constraintType,
                      Class<T> targetType)Finds a constraint validator for the given type and target type. | 
@NonNull <A extends Annotation,T> Optional<ConstraintValidator<A,T>> findConstraintValidator(@NonNull Class<A> constraintType, @NonNull Class<T> targetType)
A - The annotation typeT - The target typeconstraintType - The annotation type of the constraint.targetType - The type being validated.@NonNull default <A extends Annotation,T> ConstraintValidator<A,T> getConstraintValidator(@NonNull Class<A> constraintType, @NonNull Class<T> targetType)
A - The annotation typeT - The target typeconstraintType - The annotation type of the constraint.targetType - The type being validated.ValidationException - if no validator is present