Package org.hibernate.validator.internal.util.privilegedactions

Examples of org.hibernate.validator.internal.util.privilegedactions.GetConstraintValidatorList


  @Override
  public void collectConstraintDefinitions(ConstraintDefinitionBuilder constraintDefinitionContributionBuilder) {
    Map<Class<?>, List<Class<?>>> customValidators = newHashMap();

    // find additional constraint validators via the Java ServiceLoader mechanism
    GetConstraintValidatorList constraintValidatorListAction = new GetConstraintValidatorList();
    List<ConstraintValidator<?, ?>> discoveredConstraintValidators = run( constraintValidatorListAction );

    for ( ConstraintValidator<?, ?> constraintValidator : discoveredConstraintValidators ) {
      Class<?> constraintValidatorClass = constraintValidator.getClass();
      Class<?> annotationType = determineAnnotationType( constraintValidatorClass );
View Full Code Here

TOP

Related Classes of org.hibernate.validator.internal.util.privilegedactions.GetConstraintValidatorList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.