public interface HibernateValidatorContext extends ValidatorContext
Validator instances. Adds additional configuration options to those
provided by ValidatorContext.| Modifier and Type | Method and Description |
|---|---|
HibernateValidatorContext |
addValidationValueHandler(ValidatedValueUnwrapper<?> handler)
Registers the given validated value unwrapper with the bootstrapped validator.
|
HibernateValidatorContext |
constraintValidatorFactory(ConstraintValidatorFactory factory)
Defines the constraint validator factory implementation used by the
Validator. |
HibernateValidatorContext |
failFast(boolean failFast)
En- or disables the fail fast mode.
|
HibernateValidatorContext |
messageInterpolator(MessageInterpolator messageInterpolator)
Defines the message interpolator implementation used by the
Validator. |
HibernateValidatorContext |
parameterNameProvider(ParameterNameProvider parameterNameProvider)
Defines the parameter name provider implementation used by the
Validator. |
HibernateValidatorContext |
timeProvider(TimeProvider timeProvider)
Registers the given time provider with the bootstrapped validator.
|
HibernateValidatorContext |
traversableResolver(TraversableResolver traversableResolver)
Defines the traversable resolver implementation used by the
Validator. |
getValidatorHibernateValidatorContext messageInterpolator(MessageInterpolator messageInterpolator)
ValidatorContextValidator.
If not set or if null is passed as a parameter,
the message interpolator of the ValidatorFactory
is used.messageInterpolator in interface ValidatorContextmessageInterpolator - the MessageInterpolator used by the ValidatorHibernateValidatorContext traversableResolver(TraversableResolver traversableResolver)
ValidatorContextValidator.
If not set or if null is passed as a parameter,
the traversable resolver of the ValidatorFactory is used.traversableResolver in interface ValidatorContexttraversableResolver - the TraversableResolver used by the ValidatorHibernateValidatorContext constraintValidatorFactory(ConstraintValidatorFactory factory)
ValidatorContextValidator.
If not set or if null is passed as a parameter,
the constraint validator factory of the ValidatorFactory is used.constraintValidatorFactory in interface ValidatorContextfactory - the ConstraintValidatorFactory used by the ValidatorHibernateValidatorContext parameterNameProvider(ParameterNameProvider parameterNameProvider)
ValidatorContextValidator. If not set or if null is passed as a parameter,
the parameter name provider of the ValidatorFactory is used.parameterNameProvider in interface ValidatorContextparameterNameProvider - parameter name provider implementation.HibernateValidatorContext failFast(boolean failFast)
failFast - true to enable fail fast, false otherwise.this following the chaining method patternHibernateValidatorContext addValidationValueHandler(ValidatedValueUnwrapper<?> handler)
UnwrapValidatedValue, the unwrapper will be applied to retrieve the
value to validate.handler - the unwrapper to registerthis following the chaining method patternHibernateValidatorContext timeProvider(TimeProvider timeProvider)
@Future and @Past constraints. If not set or if null is
passed as a parameter, the time provider of the ValidatorFactory is used.timeProvider - the time provider to register.this following the chaining method patternCopyright © 2016 JBoss by Red Hat. All rights reserved.