|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ValidationProvider<T extends Configuration<T>>
Contract between the validation bootstrap mechanism and the provider engine.
Implementations must have a public no-arg constructor. The construction of a provider should be as "lightweight" as possible.T represents the provider specific Configuration subclass
which typically host provider's additional configuration methods.
| Method Summary | |
|---|---|
ValidatorFactory |
buildValidatorFactory(ConfigurationState configurationState)
Build a ValidatorFactory using the current provider implementation. |
Configuration<?> |
createGenericConfiguration(BootstrapState state)
Returns a Configuration instance. |
T |
createSpecializedConfiguration(BootstrapState state)
Returns a Configuration instance implementing T,
the Configuration subinterface. |
| Method Detail |
|---|
T createSpecializedConfiguration(BootstrapState state)
T,
the Configuration subinterface.
The returned Configuration instance must use the current provider (this)
to build the ValidatorFactory instance.
state - bootstrap state
Configuration<?> createGenericConfiguration(BootstrapState state)
Configuration
The ValidationProviderResolver used by Configuration
is provided by state.
If null, the default ValidationProviderResolver is used.
state - bootstrap state
ValidatorFactory buildValidatorFactory(ConfigurationState configurationState)
The returned ValidatorFactory is properly initialized and ready for use.
configurationState - the configuration descriptor
ValidationException - if the ValidatorFactory cannot be built
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||