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
Comments to: bean-validation-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation.
Use is subject to EFSL; this spec is based on material that is licensed under the Apache License, version 2.0.