Class Validation.GenericBootstrapImpl
java.lang.Object
javax.validation.Validation.GenericBootstrapImpl
- All Implemented Interfaces:
GenericBootstrap, BootstrapState
- Enclosing class:
Validation
private static class Validation.GenericBootstrapImpl
extends Object
implements GenericBootstrap, BootstrapState
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ValidationProviderResolverprivate ValidationProviderResolver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a genericConfigurationimplementation.Specification defaultValidationProviderResolverstrategy instance.User definedValidationProviderResolverstrategy instance ornullif undefined.providerResolver(ValidationProviderResolver resolver) Defines the provider resolution strategy.
-
Field Details
-
resolver
-
defaultResolver
-
-
Constructor Details
-
GenericBootstrapImpl
private GenericBootstrapImpl()
-
-
Method Details
-
providerResolver
Description copied from interface:GenericBootstrapDefines the provider resolution strategy. This resolver returns the list of providers evaluated to build theConfiguration.If no resolver is defined, the default
ValidationProviderResolverimplementation is used.- Specified by:
providerResolverin interfaceGenericBootstrap- Parameters:
resolver- theValidationProviderResolverto use for bootstrapping- Returns:
thisfollowing the chaining method pattern
-
getValidationProviderResolver
Description copied from interface:BootstrapStateUser definedValidationProviderResolverstrategy instance ornullif undefined.- Specified by:
getValidationProviderResolverin interfaceBootstrapState- Returns:
- ValidationProviderResolver instance or null
-
getDefaultValidationProviderResolver
Description copied from interface:BootstrapStateSpecification defaultValidationProviderResolverstrategy instance.- Specified by:
getDefaultValidationProviderResolverin interfaceBootstrapState- Returns:
- default implementation of ValidationProviderResolver
-
configure
Description copied from interface:GenericBootstrapReturns a genericConfigurationimplementation. At this stage the provider used to build theValidatorFactoryis not defined.The
Configurationimplementation is provided by the first provider returned by theValidationProviderResolverstrategy.- Specified by:
configurein interfaceGenericBootstrap- Returns:
- a
Configurationimplementation compliant with the bootstrap state
-