public interface GenericBootstrap
Configuration
.Modifier and Type | Method and Description |
---|---|
Configuration<?> |
configure()
Returns a generic
Configuration implementation. |
GenericBootstrap |
providerResolver(ValidationProviderResolver resolver)
Defines the provider resolution strategy.
|
GenericBootstrap providerResolver(ValidationProviderResolver resolver)
Configuration
.
If no resolver is defined, the default ValidationProviderResolver
implementation is used.
resolver
- the ValidationProviderResolver
to use for bootstrappingthis
following the chaining method patternConfiguration<?> configure()
Configuration
implementation.
At this stage the provider used to build the ValidatorFactory
is not defined.
The Configuration
implementation is provided by the first provider
returned by the ValidationProviderResolver
strategy.
Configuration
implementation compliant with the bootstrap stateNoProviderFoundException
- if no Jakarta Bean Validation provider was foundValidationException
- if a Jakarta Bean Validation provider was found but the
Configuration
object cannot be built; this is generally due to an
issue with the ValidationProviderResolver
Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.