@Override public ValidationConfig getContext(final Class<?> type) { return new ValidationConfig() .constraintValidatorFactory( resourceContext.getResource(InjectingConstraintValidatorFactory.class)) .parameterNameProvider(new RebaseParameterNameProvider()); }
@Override public ValidationConfig getContext(final Class<?> type) { final ValidationConfig config = new ValidationConfig(); config.constraintValidatorFactory( resourceContext.getResource(InjectingConstraintValidatorFactory.class)); config.parameterNameProvider(new CustomParameterNameProvider()); return config; }
/** Get a context. */ @Override public ValidationConfig getContext(Class<?> type) { final ValidationConfig config = new ValidationConfig(); config.constraintValidatorFactory(resourceContext.getResource(InjectingConstraintValidatorFactory.class)); CachingParanamer paranamer = new CachingParanamer(new CustomAnnotationParanamer()); config.parameterNameProvider(new ParanamerParameterNameProvider(paranamer)); return config; }
@Override public ValidationConfig getContext(final Class<?> type) { final ValidationConfig config = new ValidationConfig(); config.constraintValidatorFactory(resourceContext.getResource(InjectingConstraintValidatorFactory.class)); config.parameterNameProvider(new CustomParameterNameProvider()); return config; }
@Override public ValidationConfig getContext(Class<?> type) { return new ValidationConfig() // // .messageInterpolator(new ResourceBundleMessageInterpolator(// // new PlatformResourceBundleLocator("ValidationMessages"))) .constraintValidatorFactory(resourceContext.getResource(InjectingConstraintValidatorFactory.class)); }
@Override public ValidationConfig getContext(final Class<?> type) { return new ValidationConfig() .constraintValidatorFactory(resourceContext.getResource(InjectingConstraintValidatorFactory.class)) .parameterNameProvider(new ParanamerParameterNameProvider()) .messageInterpolator( new ResourceBundleMessageInterpolator( buildBundleLocator(VALIDATION_MESSAGE_BUNDLE_NAME), buildBundleLocator(Messages.BUNDLE_NAME), mode.isProd() ) ); }
/** * {@inheritDoc} */ @Override public ValidationConfig getContext(final Class<?> type) { final ValidationConfig config = new ValidationConfig(); config.constraintValidatorFactory(resourceContext.getResource(InjectingConstraintValidatorFactory.class)); config.parameterNameProvider(new CustomParameterNameProvider()); config.messageInterpolator(new DefaultMessageInterpolator(Validation.buildDefaultValidatorFactory().getMessageInterpolator())); return config; }