public interface HibernateValidatorContext extends ValidatorContext
Validator
instances. Adds additional configuration options to those
provided by ValidatorContext
.Modifier and Type | Method and Description |
---|---|
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 |
traversableResolver(TraversableResolver traversableResolver)
Defines the traversable resolver implementation used by the
Validator . |
getValidator
HibernateValidatorContext messageInterpolator(MessageInterpolator messageInterpolator)
ValidatorContext
Validator
.
If not set or if null is passed as a parameter,
the message interpolator of the ValidatorFactory
is used.messageInterpolator
in interface ValidatorContext
HibernateValidatorContext traversableResolver(TraversableResolver traversableResolver)
ValidatorContext
Validator
.
If not set or if null is passed as a parameter,
the traversable resolver of the ValidatorFactory
is used.traversableResolver
in interface ValidatorContext
HibernateValidatorContext constraintValidatorFactory(ConstraintValidatorFactory factory)
ValidatorContext
Validator
.
If not set or if null is passed as a parameter,
the constraint validator factory of the ValidatorFactory
is used.constraintValidatorFactory
in interface ValidatorContext
HibernateValidatorContext failFast(boolean failFast)
failFast
- true
to enable fail fast, false
otherwise.this
following the chaining method patternCopyright © 2018 JBoss by Red Hat. All rights reserved.