registerConstraintValidators( contributor );
}
}
private <A extends Annotation> void registerConstraintValidators(ConstraintDefinitionContributor contributor) {
ConstraintDefinitionBuilderImpl builder = new ConstraintDefinitionBuilderImpl();
contributor.collectConstraintDefinitions( builder );
List<ConstraintDefinitionContribution<?>> constraintDefinitionContributions = builder.getConstraintValidatorContributions();
for ( ConstraintDefinitionContribution<?> constraintDefinitionContribution : constraintDefinitionContributions ) {
@SuppressWarnings("unchecked")
Class<A> constraintType = (Class<A>) constraintDefinitionContribution.getConstraintType();
@SuppressWarnings("unchecked")
List<Class<? extends ConstraintValidator<A, ?>>> constraintValidatorTypes = (List) constraintDefinitionContribution