Package javax.validation
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 ValidationProviderResolver
private ValidationProviderResolver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a genericConfiguration
implementation.Specification defaultValidationProviderResolver
strategy instance.User definedValidationProviderResolver
strategy instance ornull
if 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:GenericBootstrap
Defines the provider resolution strategy. This resolver returns the list of providers evaluated to build theConfiguration
.If no resolver is defined, the default
ValidationProviderResolver
implementation is used.- Specified by:
providerResolver
in interfaceGenericBootstrap
- Parameters:
resolver
- theValidationProviderResolver
to use for bootstrapping- Returns:
this
following the chaining method pattern
-
getValidationProviderResolver
Description copied from interface:BootstrapState
User definedValidationProviderResolver
strategy instance ornull
if undefined.- Specified by:
getValidationProviderResolver
in interfaceBootstrapState
- Returns:
- ValidationProviderResolver instance or null
-
getDefaultValidationProviderResolver
Description copied from interface:BootstrapState
Specification defaultValidationProviderResolver
strategy instance.- Specified by:
getDefaultValidationProviderResolver
in interfaceBootstrapState
- Returns:
- default implementation of ValidationProviderResolver
-
configure
Description copied from interface:GenericBootstrap
Returns a genericConfiguration
implementation. At this stage the provider used to build theValidatorFactory
is not defined.The
Configuration
implementation is provided by the first provider returned by theValidationProviderResolver
strategy.- Specified by:
configure
in interfaceGenericBootstrap
- Returns:
- a
Configuration
implementation compliant with the bootstrap state
-