public interface ValidationProvider<T extends Configuration<T>>
T represents the provider specific Configuration subclass
which typically host provider's additional configuration methods.| Modifier and Type | Method and Description |
|---|---|
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. |
T createSpecializedConfiguration(BootstrapState state)
Configuration instance implementing T,
the Configuration subinterface.
The returned Configuration instance must use the current provider
(this) to build the ValidatorFactory instance.
state - bootstrap stateConfiguration<?> createGenericConfiguration(BootstrapState state)
Configuration instance. This instance is not bound to
use the current provider. The choice of provider follows the algorithm described
in Configuration
The ValidationProviderResolver used by Configuration
is provided by state.
If null, the default ValidationProviderResolver is used.state - bootstrap stateValidatorFactory buildValidatorFactory(ConfigurationState configurationState)
ValidatorFactory using the current provider implementation.
The ValidatorFactory is assembled and follows the configuration passed
via ConfigurationState.
The returned ValidatorFactory is properly initialized and ready for use.
configurationState - the configuration descriptorValidationException - if the ValidatorFactory cannot be builtCopyright © 2012 JBoss by Red Hat. All Rights Reserved.