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