Java 类javax.validation.TraversableResolver 实例源码

项目:nest-old    文件:ValidatorFactoryImpl513.java   
/**
 * create validator
 * 
 * @param constraintValidatorFactory
 * @param messageInterpolator
 * @param traversableResolver
 * @param parameterNameProvider
 * @param failFast
 * @param validatedValueHandlers
 * @return
 */
protected Validator createValidator(ConstraintValidatorFactory constraintValidatorFactory,
        MessageInterpolator messageInterpolator, TraversableResolver traversableResolver,
        ParameterNameProvider parameterNameProvider, boolean failFast,
        List<ValidatedValueUnwrapper<?>> validatedValueHandlers) {
    BeanMetaDataManager513 beanMetaDataManager;
    if (!beanMetaDataManagerMap.containsKey(parameterNameProvider)) {
        beanMetaDataManager = new BeanMetaDataManager513(constraintHelper, executableHelper, parameterNameProvider,
                buildDataProviders(parameterNameProvider));
        beanMetaDataManagerMap.put(parameterNameProvider, beanMetaDataManager);
    } else {
        beanMetaDataManager = beanMetaDataManagerMap.get(parameterNameProvider);
    }

    return new ValidatorImpl(constraintValidatorFactory, messageInterpolator, traversableResolver,
            beanMetaDataManager, parameterNameProvider, typeResolutionHelper, validatedValueHandlers,
            constraintValidatorManager, failFast);
}
项目:Camel    文件:ValidatorFactories.java   
public static ValidatorFactory buildValidatorFactory(boolean osgi,
                                                     ValidationProviderResolver validationProviderResolver,
                                                     MessageInterpolator messageInterpolator,
                                                     TraversableResolver traversableResolver,
                                                     ConstraintValidatorFactory constraintValidatorFactory) {

    ValidationProviderResolver resolvedValidationProviderResolver =
            resolveValidationProviderResolver(osgi, validationProviderResolver);

    GenericBootstrap bootstrap = Validation.byDefaultProvider();
    if (resolvedValidationProviderResolver != null) {
        bootstrap.providerResolver(resolvedValidationProviderResolver);
    }
    Configuration<?> configuration = bootstrap.configure();

    if (messageInterpolator != null) {
        configuration.messageInterpolator(messageInterpolator);
    }

    if (traversableResolver != null) {
        configuration.traversableResolver(traversableResolver);
    }

    if (constraintValidatorFactory != null) {
        configuration.constraintValidatorFactory(constraintValidatorFactory);
    }

    return configuration.buildValidatorFactory();
}
项目:gwt-bean-validators    文件:GwtValidationContext.java   
private GwtValidationContext(final Class<T> rootBeanClass, final T rootBean,
    final BeanDescriptor beanDescriptor, final MessageInterpolator messageInterpolator,
    final TraversableResolver traversableResolver, final AbstractGwtValidator validator,
    final Set<Object> validatedObjects) {
  this.rootBeanClass = rootBeanClass;
  this.rootBean = rootBean;
  this.beanDescriptor = beanDescriptor;
  this.messageInterpolator = messageInterpolator;
  this.traversableResolver = traversableResolver;
  this.validator = validator;
  this.validatedObjects = new HashSet<>(validatedObjects);
}
项目:lams    文件:CustomValidatorBean.java   
/**
 * Specify a custom TraversableResolver to use for this Validator.
 */
public void setTraversableResolver(TraversableResolver traversableResolver) {
    this.traversableResolver = traversableResolver;
}
项目:lams    文件:LocalValidatorFactoryBean.java   
@Override
public TraversableResolver getTraversableResolver() {
    Assert.notNull(this.validatorFactory, "No target ValidatorFactory set");
    return this.validatorFactory.getTraversableResolver();
}
项目:minijax    文件:MinijaxValidatorFactory.java   
@Override
public TraversableResolver getTraversableResolver() {
    throw new UnsupportedOperationException();
}
项目:minijax    文件:MinijaxValidationProvider.java   
@Override
public MinijaxValidationProvider traversableResolver(final TraversableResolver resolver) {
    throw new UnsupportedOperationException();
}
项目:minijax    文件:MinijaxValidationProvider.java   
@Override
public TraversableResolver getDefaultTraversableResolver() {
    throw new UnsupportedOperationException();
}
项目:spring4-understanding    文件:CustomValidatorBean.java   
/**
 * Specify a custom TraversableResolver to use for this Validator.
 */
public void setTraversableResolver(TraversableResolver traversableResolver) {
    this.traversableResolver = traversableResolver;
}
项目:spring4-understanding    文件:LocalValidatorFactoryBean.java   
@Override
public TraversableResolver getTraversableResolver() {
    Assert.notNull(this.validatorFactory, "No target ValidatorFactory set");
    return this.validatorFactory.getTraversableResolver();
}
项目:my-spring-cache-redis    文件:CustomValidatorBean.java   
/**
 * Specify a custom TraversableResolver to use for this Validator.
 */
public void setTraversableResolver(TraversableResolver traversableResolver) {
    this.traversableResolver = traversableResolver;
}
项目:my-spring-cache-redis    文件:LocalValidatorFactoryBean.java   
@Override
public TraversableResolver getTraversableResolver() {
    Assert.notNull(this.validatorFactory, "No target ValidatorFactory set");
    return this.validatorFactory.getTraversableResolver();
}
项目:spring    文件:CustomValidatorBean.java   
/**
 * Specify a custom TraversableResolver to use for this Validator.
 */
public void setTraversableResolver(TraversableResolver traversableResolver) {
    this.traversableResolver = traversableResolver;
}
项目:spring    文件:LocalValidatorFactoryBean.java   
@Override
public TraversableResolver getTraversableResolver() {
    Assert.notNull(this.validatorFactory, "No target ValidatorFactory set");
    return this.validatorFactory.getTraversableResolver();
}
项目:Camel    文件:BeanValidatorEndpoint.java   
public TraversableResolver getTraversableResolver() {
    return traversableResolver;
}
项目:Camel    文件:BeanValidatorEndpoint.java   
/**
 * To use a custom {@link TraversableResolver}
 */
public void setTraversableResolver(TraversableResolver traversableResolver) {
    this.traversableResolver = traversableResolver;
}
项目:gwt-bean-validators    文件:AbstractBaseConfigurationState.java   
/**
 * constructor.
 */
public AbstractBaseConfigurationState(final ConstraintValidatorFactory constraintValidatorFactory,
    final MessageInterpolator messageInterpolator, final Map<String, String> properties,
    final TraversableResolver traversableResolver) {
  this.constraintValidatorFactory = constraintValidatorFactory;
  this.messageInterpolator = messageInterpolator;
  this.properties = Collections.unmodifiableMap(properties);
  this.traversableResolver = traversableResolver;
}
项目:gwt-bean-validators    文件:AbstractBaseConfigurationState.java   
@Override
public TraversableResolver getTraversableResolver() {
  return this.traversableResolver;
}
项目:gwt-bean-validators    文件:GwtConfigurationState.java   
public GwtConfigurationState(final ConstraintValidatorFactory constraintValidatorFactory,
    final MessageInterpolator messageInterpolator, final Map<String, String> properties,
    final TraversableResolver traversableResolver) {
  super(constraintValidatorFactory, messageInterpolator, properties, traversableResolver);
}
项目:gwt-bean-validators    文件:AbstractGwtValidator.java   
/**
 * initialize values.
 *
 * @param factory constraint validator factory to set
 * @param messageInterpolator message interpolator to set
 * @param traversableResolver traversable resolver to set
 * @param pparameterNameProvider parameter resolver to set
 */
public void init(final ConstraintValidatorFactory factory,
    final MessageInterpolator messageInterpolator, final TraversableResolver traversableResolver,
    final ParameterNameProvider pparameterNameProvider) {
  this.contraintValidatorFactory = factory;
  this.messageInterpolator = messageInterpolator;
  this.traversableResolver = traversableResolver;
  this.parameterNameProvider = pparameterNameProvider;
}
项目:gwt-bean-validators    文件:AbstractGwtValidator.java   
protected TraversableResolver getTraversableResolver() {
  return this.traversableResolver;
}
项目:gwt-bean-validators    文件:AbstractBaseGwtConfiguration.java   
@Override
public final TraversableResolver getDefaultTraversableResolver() {
  return new DefaultTraversableResolver();
}
项目:gwt-bean-validators    文件:AbstractBaseGwtConfiguration.java   
@Override
public final AbstractBaseGwtConfiguration traversableResolver(
    final TraversableResolver resolver) {
  this.traversableResolverProperty = resolver;
  return this;
}
项目:gwt-bean-validators    文件:GwtValidationContext.java   
public GwtValidationContext(final Class<T> rootBeanClass, final T rootBean,
    final BeanDescriptor beanDescriptor, final MessageInterpolator messageInterpolator,
    final TraversableResolver traversableResolver, final AbstractGwtValidator validator) {
  this(rootBeanClass, rootBean, beanDescriptor, messageInterpolator, traversableResolver,
      validator, new HashSet<>());
}
项目:gwt-bean-validators    文件:GwtValidationContext.java   
public TraversableResolver getTraversableResolver() {
  return this.traversableResolver;
}
项目:gwt-bean-validators    文件:AbstractGwtValidatorFactory.java   
@Override
public final TraversableResolver getTraversableResolver() {
  return this.traversableResolver;
}
项目:gwt-bean-validators    文件:AbstractGwtValidatorFactory.java   
/**
 * initialize factory.
 *
 * @param configState ConfigurationState
 */
public final void init(final ConfigurationState configState) {
  final ConstraintValidatorFactory configConstraintValidatorFactory =
      configState.getConstraintValidatorFactory();
  this.constraintValidatorFactory = configConstraintValidatorFactory == null
      ? GWT.<ConstraintValidatorFactory>create(ConstraintValidatorFactory.class)
      : configConstraintValidatorFactory;
  final TraversableResolver configTraversableResolver = configState.getTraversableResolver();
  this.traversableResolver = configTraversableResolver == null ? new DefaultTraversableResolver()
      : configTraversableResolver;
  final MessageInterpolator configMessageInterpolator = configState.getMessageInterpolator();
  this.messageInterpolator = configMessageInterpolator == null ? new GwtMessageInterpolator()
      : configMessageInterpolator;
  this.parameterNameProvider = configState.getParameterNameProvider();
}
项目:gwt-bean-validators    文件:GwtConfigurationState.java   
public GwtConfigurationState(final ConstraintValidatorFactory pconstraintValidatorFactory,
    final MessageInterpolator pmessageInterpolator, final Map<String, String> pproperties,
    final TraversableResolver ptraversableResolver) {
  super(pconstraintValidatorFactory, pmessageInterpolator, pproperties, ptraversableResolver);
}
项目:gwt-bean-validators    文件:GwtConfigurationState.java   
public GwtConfigurationState(final ConstraintValidatorFactory pconstraintValidatorFactory,
    final MessageInterpolator pmessageInterpolator, final Map<String, String> pproperties,
    final TraversableResolver ptraversableResolver) {
  super(pconstraintValidatorFactory, pmessageInterpolator, pproperties, ptraversableResolver);
}
项目:gwt-bean-validators    文件:GwtValidationContext.java   
public GwtValidationContext(final Class<T> prootBeanClass, final T prootBean,
    final BeanDescriptor pbeanDescriptor, final MessageInterpolator pmessageInterpolator,
    final TraversableResolver ptraversableResolver, final AbstractGwtValidator pvalidator) {
  super(prootBeanClass, prootBean, pbeanDescriptor, pmessageInterpolator, ptraversableResolver,
      pvalidator);
}
项目:nest-old    文件:ValidatorFactoryImpl513.java   
@Override
public TraversableResolver getTraversableResolver() {
    return traversableResolver;
}
项目:class-guard    文件:CustomValidatorBean.java   
/**
 * Specify a custom TraversableResolver to use for this Validator.
 */
public void setTraversableResolver(TraversableResolver traversableResolver) {
    this.traversableResolver = traversableResolver;
}
项目:class-guard    文件:LocalValidatorFactoryBean.java   
public TraversableResolver getTraversableResolver() {
    return this.validatorFactory.getTraversableResolver();
}
项目:ironjacamar    文件:SerializableValidatorFactory.java   
/**
 * {@inheritDoc}
 */
public TraversableResolver getTraversableResolver()
{
   return validatorFactory.getTraversableResolver();
}
项目:ironjacamar    文件:IronJacamarValidatorFactory.java   
/**
 * {@inheritDoc}
 */
public TraversableResolver getTraversableResolver()
{
   return validatorFactory.getTraversableResolver();
}
项目:tomee    文件:ValidatorFactoryWrapper.java   
@Override
public TraversableResolver getTraversableResolver() {
    return factory().getTraversableResolver();
}
项目:tomee    文件:SingleValidatorFactoryWrapper.java   
@Override
public TraversableResolver getTraversableResolver() {
    return factory().getTraversableResolver();
}
项目:tomee    文件:ValidatorBuilder.java   
@Override
public T traversableResolver(final TraversableResolver resolver) {
    return delegate.traversableResolver(resolver);
}
项目:tomee    文件:ValidatorBuilder.java   
@Override
public TraversableResolver getDefaultTraversableResolver() {
    return delegate.getDefaultTraversableResolver();
}
项目:tomee    文件:ValidatorBuilder.java   
@Override
public TraversableResolver getTraversableResolver() {
    return delegate().getTraversableResolver();
}