Validator
instances.
A client may use methods of the ValidatorContext returned by
ValidatorFactory#usingContext() to customize
the context used to create Validator instances
(for instance establish different message interpolators or
traversable resolvers).
| Modifier and Type | Method and Description |
|---|---|
| public ValidatorContext | Returns: self following the chaining method patternvalue extractor implementation extractor)Adds a value extractor to be used by the |
| public ValidatorContext | Returns: self following the chaining method patternClockProvider implementationDefines the |
| public ValidatorContext | Returns: self following the chaining method patternthe factory)ConstraintValidatorFactory used by the ValidatorDefines the constraint validator factory implementation used by the
|
| public Validator | Returns: contextualizedValidatorReturns an initialized |
| public ValidatorContext | Returns: self following the chaining method patternthe messageInterpolator)MessageInterpolator used by the
ValidatorDefines the message interpolator implementation used by the
|
| public ValidatorContext | Returns: self following the chaining method patternparameter name provider implementation. parameterNameProvider)Defines the parameter name provider implementation used by the
|
| public ValidatorContext | Returns: self following the chaining method patternthe traversableResolver)TraversableResolver used by the
ValidatorDefines the traversable resolver implementation used by the
|
| addValueExtractor | back to summary |
|---|---|
| public ValidatorContext addValueExtractor(ValueExtractor<?> extractor) Adds a value extractor to be used by the
| |
| clockProvider | back to summary |
|---|---|
| public ValidatorContext clockProvider(ClockProvider clockProvider) Defines the
| |
| constraintValidatorFactory | back to summary |
|---|---|
| public ValidatorContext constraintValidatorFactory(ConstraintValidatorFactory factory) Defines the constraint validator factory implementation used by the
| |
| getValidator | back to summary |
|---|---|
| public Validator getValidator() Returns an initialized
| |
| messageInterpolator | back to summary |
|---|---|
| public ValidatorContext messageInterpolator(MessageInterpolator messageInterpolator) Defines the message interpolator implementation used by the
If not set or if
| |
| parameterNameProvider | back to summary |
|---|---|
| public ValidatorContext parameterNameProvider(ParameterNameProvider parameterNameProvider) Defines the parameter name provider implementation used by the
| |
| traversableResolver | back to summary |
|---|---|
| public ValidatorContext traversableResolver(TraversableResolver traversableResolver) Defines the traversable resolver implementation used by the
If not set or if
| |