public static ValidatorFactory createValidatorFactory(ValidatorProvider provider) { Configuration<?> config = Validation.byDefaultProvider().configure(); config.constraintValidatorFactory( new CustomConstraintValidatorFactory( config.getDefaultConstraintValidatorFactory(), provider)); return config.buildValidatorFactory(); }
@Override public ConstraintValidatorFactory getDefaultConstraintValidatorFactory() { return delegate.getDefaultConstraintValidatorFactory(); }
@Override public ConstraintValidatorFactory getDefaultConstraintValidatorFactory() { return configuration.getDefaultConstraintValidatorFactory(); }