javax.validation.ValidatorContext Java Examples
The following examples show how to use
javax.validation.ValidatorContext.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CustomValidatorBean.java From java-technology-stack with MIT License | 6 votes |
@Override public void afterPropertiesSet() { if (this.validatorFactory == null) { this.validatorFactory = Validation.buildDefaultValidatorFactory(); } ValidatorContext validatorContext = this.validatorFactory.usingContext(); MessageInterpolator targetInterpolator = this.messageInterpolator; if (targetInterpolator == null) { targetInterpolator = this.validatorFactory.getMessageInterpolator(); } validatorContext.messageInterpolator(new LocaleContextMessageInterpolator(targetInterpolator)); if (this.traversableResolver != null) { validatorContext.traversableResolver(this.traversableResolver); } setTargetValidator(validatorContext.getValidator()); }
Example #2
Source File: CustomValidatorBean.java From lams with GNU General Public License v2.0 | 6 votes |
@Override public void afterPropertiesSet() { if (this.validatorFactory == null) { this.validatorFactory = Validation.buildDefaultValidatorFactory(); } ValidatorContext validatorContext = this.validatorFactory.usingContext(); MessageInterpolator targetInterpolator = this.messageInterpolator; if (targetInterpolator == null) { targetInterpolator = this.validatorFactory.getMessageInterpolator(); } validatorContext.messageInterpolator(new LocaleContextMessageInterpolator(targetInterpolator)); if (this.traversableResolver != null) { validatorContext.traversableResolver(this.traversableResolver); } setTargetValidator(validatorContext.getValidator()); }
Example #3
Source File: CustomValidatorBean.java From spring4-understanding with Apache License 2.0 | 6 votes |
@Override public void afterPropertiesSet() { if (this.validatorFactory == null) { this.validatorFactory = Validation.buildDefaultValidatorFactory(); } ValidatorContext validatorContext = this.validatorFactory.usingContext(); MessageInterpolator targetInterpolator = this.messageInterpolator; if (targetInterpolator == null) { targetInterpolator = this.validatorFactory.getMessageInterpolator(); } validatorContext.messageInterpolator(new LocaleContextMessageInterpolator(targetInterpolator)); if (this.traversableResolver != null) { validatorContext.traversableResolver(this.traversableResolver); } setTargetValidator(validatorContext.getValidator()); }
Example #4
Source File: CustomValidatorBean.java From spring-analysis-note with MIT License | 6 votes |
@Override public void afterPropertiesSet() { if (this.validatorFactory == null) { this.validatorFactory = Validation.buildDefaultValidatorFactory(); } ValidatorContext validatorContext = this.validatorFactory.usingContext(); MessageInterpolator targetInterpolator = this.messageInterpolator; if (targetInterpolator == null) { targetInterpolator = this.validatorFactory.getMessageInterpolator(); } validatorContext.messageInterpolator(new LocaleContextMessageInterpolator(targetInterpolator)); if (this.traversableResolver != null) { validatorContext.traversableResolver(this.traversableResolver); } setTargetValidator(validatorContext.getValidator()); }
Example #5
Source File: LocalValidatorFactoryBean.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Override public ValidatorContext usingContext() { Assert.notNull(this.validatorFactory, "No target ValidatorFactory set"); return this.validatorFactory.usingContext(); }
Example #6
Source File: CustomValidatorProvider.java From tomee with Apache License 2.0 | 4 votes |
@Override public ValidatorContext addValueExtractor(ValueExtractor<?> valueExtractor) { return null; }
Example #7
Source File: CustomValidatorProvider.java From tomee with Apache License 2.0 | 4 votes |
@Override public ValidatorContext constraintValidatorFactory(final ConstraintValidatorFactory factory) { return null; }
Example #8
Source File: CustomValidatorProvider.java From tomee with Apache License 2.0 | 4 votes |
@Override public ValidatorContext usingContext() { return new CustomValidatorContext(); }
Example #9
Source File: ValidatorBuilder.java From tomee with Apache License 2.0 | 4 votes |
@Override public ValidatorContext usingContext() { return delegate().usingContext(); }
Example #10
Source File: SingleValidatorFactoryWrapper.java From tomee with Apache License 2.0 | 4 votes |
@Override public ValidatorContext usingContext() { return factory().usingContext(); }
Example #11
Source File: ValidatorFactoryWrapper.java From tomee with Apache License 2.0 | 4 votes |
@Override public ValidatorContext usingContext() { return factory().usingContext(); }
Example #12
Source File: IronJacamarValidatorFactory.java From ironjacamar with Eclipse Public License 1.0 | 4 votes |
/** * {@inheritDoc} */ public ValidatorContext usingContext() { return validatorFactory.usingContext(); }
Example #13
Source File: SerializableValidatorFactory.java From ironjacamar with Eclipse Public License 1.0 | 4 votes |
/** * {@inheritDoc} */ public ValidatorContext usingContext() { return validatorFactory.usingContext(); }
Example #14
Source File: SerializableValidatorFactory.java From lams with GNU General Public License v2.0 | 4 votes |
/** * {@inheritDoc} */ public ValidatorContext usingContext() { return validatorFactory.usingContext(); }
Example #15
Source File: LocalValidatorFactoryBean.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public ValidatorContext usingContext() { Assert.notNull(this.validatorFactory, "No target ValidatorFactory set"); return this.validatorFactory.usingContext(); }
Example #16
Source File: LocalValidatorFactoryBean.java From java-technology-stack with MIT License | 4 votes |
@Override public ValidatorContext usingContext() { Assert.notNull(this.validatorFactory, "No target ValidatorFactory set"); return this.validatorFactory.usingContext(); }
Example #17
Source File: LocalValidatorFactoryBean.java From spring-analysis-note with MIT License | 4 votes |
@Override public ValidatorContext usingContext() { Assert.notNull(this.validatorFactory, "No target ValidatorFactory set"); return this.validatorFactory.usingContext(); }