本文整理汇总了Java中javax.validation.ParameterNameProvider类的典型用法代码示例。如果您正苦于以下问题:Java ParameterNameProvider类的具体用法?Java ParameterNameProvider怎么用?Java ParameterNameProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ParameterNameProvider类属于javax.validation包,在下文中一共展示了ParameterNameProvider类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: BeanMetaDataManager513
import javax.validation.ParameterNameProvider; //导入依赖的package包/类
/**
* Creates a new {@code BeanMetaDataManager}.
*
* @param constraintHelper
* the constraint helper
* @param executableHelper
* the executable helper
* @param parameterNameProvider
* the parameter name provider
* @param optionalMetaDataProviders
* optional meta data provider used on top of the annotation
* based provider
*/
public BeanMetaDataManager513(ConstraintHelper constraintHelper, ExecutableHelper executableHelper,
ParameterNameProvider parameterNameProvider, List<MetaDataProvider> optionalMetaDataProviders) {
super(constraintHelper, executableHelper, parameterNameProvider, optionalMetaDataProviders);
this.constraintHelper = constraintHelper;
this.metaDataProviders = newArrayList();
this.metaDataProviders.addAll(optionalMetaDataProviders);
this.executableHelper = executableHelper;
this.beanMetaDataCache = new ConcurrentReferenceHashMap<Class<?>, BeanMetaData<?>>(DEFAULT_INITIAL_CAPACITY,
DEFAULT_LOAD_FACTOR, DEFAULT_CONCURRENCY_LEVEL, SOFT, SOFT, EnumSet.of(IDENTITY_COMPARISONS));
AnnotationProcessingOptions annotationProcessingOptions = getAnnotationProcessingOptionsFromNonDefaultProviders();
AnnotationMetaDataProvider defaultProvider = new AnnotationMetaDataProvider(constraintHelper,
parameterNameProvider, annotationProcessingOptions);
this.metaDataProviders.add(defaultProvider);
}
示例2: parameterNameProvider
import javax.validation.ParameterNameProvider; //导入依赖的package包/类
@Override
public ValidatorContext parameterNameProvider(
final ParameterNameProvider pparameterNameProvider) {
if (pparameterNameProvider == null) {
this.parameterNameProviderEntry = this.factoryParameterNameProvider;
} else {
this.parameterNameProviderEntry = pparameterNameProvider;
}
return this;
}
示例3: createValidator
import javax.validation.ParameterNameProvider; //导入依赖的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);
}
示例4: buildDataProviders
import javax.validation.ParameterNameProvider; //导入依赖的package包/类
private List<MetaDataProvider> buildDataProviders(ParameterNameProvider parameterNameProvider) {
List<MetaDataProvider> metaDataProviders = newArrayList();
if (xmlMetaDataProvider != null) {
metaDataProviders.add(xmlMetaDataProvider);
}
if (!constraintMappings.isEmpty()) {
metaDataProviders.add(new ProgrammaticMetaDataProvider513(constraintHelper, parameterNameProvider,
constraintMappings));
}
return metaDataProviders;
}
示例5: getParameterNameProvider
import javax.validation.ParameterNameProvider; //导入依赖的package包/类
@Override
public ParameterNameProvider getParameterNameProvider() {
throw new UnsupportedOperationException();
}
示例6: getDefaultParameterNameProvider
import javax.validation.ParameterNameProvider; //导入依赖的package包/类
@Override
public ParameterNameProvider getDefaultParameterNameProvider() {
throw new UnsupportedOperationException();
}
示例7: getParameterNameProvider
import javax.validation.ParameterNameProvider; //导入依赖的package包/类
@Override
public ParameterNameProvider getParameterNameProvider() {
// TODO Auto-generated method stub
return null;
}
示例8: getParameterNameProvider
import javax.validation.ParameterNameProvider; //导入依赖的package包/类
@Override
public ParameterNameProvider getParameterNameProvider() {
return this.paramNameProv;
}
示例9: setParameterNameProvider
import javax.validation.ParameterNameProvider; //导入依赖的package包/类
public void setParameterNameProvider(ParameterNameProvider paramNameProv) {
this.paramNameProv = paramNameProv;
}
示例10: getParameterNameProvider
import javax.validation.ParameterNameProvider; //导入依赖的package包/类
@Override
public ParameterNameProvider getParameterNameProvider() {
return null;
}
示例11: init
import javax.validation.ParameterNameProvider; //导入依赖的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;
}
示例12: getParameterNameProvider
import javax.validation.ParameterNameProvider; //导入依赖的package包/类
protected ParameterNameProvider getParameterNameProvider() {
return this.parameterNameProvider;
}
示例13: parameterNameProvider
import javax.validation.ParameterNameProvider; //导入依赖的package包/类
@Override
public AbstractBaseGwtConfiguration parameterNameProvider(
final ParameterNameProvider pparameterNameProvider) {
throw new UnsupportedOperationException("GWT does not support xml configuration");
}
示例14: getDefaultParameterNameProvider
import javax.validation.ParameterNameProvider; //导入依赖的package包/类
@Override
public ParameterNameProvider getDefaultParameterNameProvider() {
throw new UnsupportedOperationException("GWT does not support xml configuration");
}
示例15: getParameterNameProvider
import javax.validation.ParameterNameProvider; //导入依赖的package包/类
@Override
public ParameterNameProvider getParameterNameProvider() {
return this.parameterNameProvider;
}