Java 类javax.validation.ValidatorContext 实例源码
项目:lams
文件:CustomValidatorBean.java
@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());
}
项目:spring4-understanding
文件:CustomValidatorBean.java
@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());
}
项目:my-spring-cache-redis
文件:CustomValidatorBean.java
@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());
}
项目:spring
文件:CustomValidatorBean.java
@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());
}
项目:class-guard
文件:CustomValidatorBean.java
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());
}
项目:gwt-bean-validators
文件:GwtValidatorContext.java
@Override
public ValidatorContext constraintValidatorFactory(
final ConstraintValidatorFactory constraintValidatorfactory) {
if (constraintValidatorfactory == null) {
this.constraintValidatorfactoryEntry = this.factoryConstraintValidatorfactory;
} else {
this.constraintValidatorfactoryEntry = constraintValidatorfactory;
}
return this;
}
项目:gwt-bean-validators
文件:GwtValidatorContext.java
@Override
public ValidatorContext parameterNameProvider(
final ParameterNameProvider pparameterNameProvider) {
if (pparameterNameProvider == null) {
this.parameterNameProviderEntry = this.factoryParameterNameProvider;
} else {
this.parameterNameProviderEntry = pparameterNameProvider;
}
return this;
}
项目:lams
文件:LocalValidatorFactoryBean.java
@Override
public ValidatorContext usingContext() {
Assert.notNull(this.validatorFactory, "No target ValidatorFactory set");
return this.validatorFactory.usingContext();
}
项目:minijax
文件:MinijaxValidatorFactory.java
@Override
public ValidatorContext usingContext() {
return validatorContext;
}
项目:spring4-understanding
文件:LocalValidatorFactoryBean.java
@Override
public ValidatorContext usingContext() {
Assert.notNull(this.validatorFactory, "No target ValidatorFactory set");
return this.validatorFactory.usingContext();
}
项目:my-spring-cache-redis
文件:LocalValidatorFactoryBean.java
@Override
public ValidatorContext usingContext() {
Assert.notNull(this.validatorFactory, "No target ValidatorFactory set");
return this.validatorFactory.usingContext();
}
项目:spring
文件:LocalValidatorFactoryBean.java
@Override
public ValidatorContext usingContext() {
Assert.notNull(this.validatorFactory, "No target ValidatorFactory set");
return this.validatorFactory.usingContext();
}
项目:gwt-bean-validators
文件:GwtValidatorContext.java
@Override
public ValidatorContext addValueExtractor(final ValueExtractor<?> extractor) {
throw new UnsupportedOperationException("GWT Validation does not support addValueExtractor().");
}
项目:gwt-bean-validators
文件:AbstractGwtValidatorFactory.java
@Override
public final ValidatorContext usingContext() {
return new GwtValidatorContext(this);
}
项目:class-guard
文件:LocalValidatorFactoryBean.java
public ValidatorContext usingContext() {
return this.validatorFactory.usingContext();
}
项目:ironjacamar
文件:SerializableValidatorFactory.java
/**
* {@inheritDoc}
*/
public ValidatorContext usingContext()
{
return validatorFactory.usingContext();
}
项目:ironjacamar
文件:IronJacamarValidatorFactory.java
/**
* {@inheritDoc}
*/
public ValidatorContext usingContext()
{
return validatorFactory.usingContext();
}
项目:tomee
文件:ValidatorFactoryWrapper.java
@Override
public ValidatorContext usingContext() {
return factory().usingContext();
}
项目:tomee
文件:SingleValidatorFactoryWrapper.java
@Override
public ValidatorContext usingContext() {
return factory().usingContext();
}
项目:tomee
文件:ValidatorBuilder.java
@Override
public ValidatorContext usingContext() {
return delegate().usingContext();
}
项目:tomee
文件:CustomValidatorProvider.java
@Override
public ValidatorContext usingContext() {
return new CustomValidatorContext();
}
项目:tomee
文件:CustomValidatorProvider.java
@Override
public ValidatorContext constraintValidatorFactory(final ConstraintValidatorFactory factory) {
return null;
}