本文整理汇总了Java中javax.validation.TraversableResolver类的典型用法代码示例。如果您正苦于以下问题:Java TraversableResolver类的具体用法?Java TraversableResolver怎么用?Java TraversableResolver使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TraversableResolver类属于javax.validation包,在下文中一共展示了TraversableResolver类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: GwtValidationContext
import javax.validation.TraversableResolver; //导入依赖的package包/类
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);
}
示例2: createValidator
import javax.validation.TraversableResolver; //导入依赖的package包/类
/**
* 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);
}
示例3: setTraversableResolver
import javax.validation.TraversableResolver; //导入依赖的package包/类
/**
* Specify a custom TraversableResolver to use for this Validator.
*/
public void setTraversableResolver(TraversableResolver traversableResolver) {
this.traversableResolver = traversableResolver;
}
示例4: getTraversableResolver
import javax.validation.TraversableResolver; //导入依赖的package包/类
@Override
public TraversableResolver getTraversableResolver() {
Assert.notNull(this.validatorFactory, "No target ValidatorFactory set");
return this.validatorFactory.getTraversableResolver();
}
示例5: getTraversableResolver
import javax.validation.TraversableResolver; //导入依赖的package包/类
@Override
public TraversableResolver getTraversableResolver() {
throw new UnsupportedOperationException();
}
示例6: traversableResolver
import javax.validation.TraversableResolver; //导入依赖的package包/类
@Override
public MinijaxValidationProvider traversableResolver(final TraversableResolver resolver) {
throw new UnsupportedOperationException();
}
示例7: getDefaultTraversableResolver
import javax.validation.TraversableResolver; //导入依赖的package包/类
@Override
public TraversableResolver getDefaultTraversableResolver() {
throw new UnsupportedOperationException();
}
示例8: getTraversableResolver
import javax.validation.TraversableResolver; //导入依赖的package包/类
public TraversableResolver getTraversableResolver() {
return traversableResolver;
}
示例9: setTraversableResolver
import javax.validation.TraversableResolver; //导入依赖的package包/类
/**
* To use a custom {@link TraversableResolver}
*/
public void setTraversableResolver(TraversableResolver traversableResolver) {
this.traversableResolver = traversableResolver;
}
示例10: buildValidatorFactory
import javax.validation.TraversableResolver; //导入依赖的package包/类
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();
}
示例11: AbstractBaseConfigurationState
import javax.validation.TraversableResolver; //导入依赖的package包/类
/**
* 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;
}
示例12: getTraversableResolver
import javax.validation.TraversableResolver; //导入依赖的package包/类
@Override
public TraversableResolver getTraversableResolver() {
return this.traversableResolver;
}
示例13: GwtConfigurationState
import javax.validation.TraversableResolver; //导入依赖的package包/类
public GwtConfigurationState(final ConstraintValidatorFactory constraintValidatorFactory,
final MessageInterpolator messageInterpolator, final Map<String, String> properties,
final TraversableResolver traversableResolver) {
super(constraintValidatorFactory, messageInterpolator, properties, traversableResolver);
}
示例14: init
import javax.validation.TraversableResolver; //导入依赖的package包/类
/**
* 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;
}
示例15: getTraversableResolver
import javax.validation.TraversableResolver; //导入依赖的package包/类
protected TraversableResolver getTraversableResolver() {
return this.traversableResolver;
}