public class HibernateValidator extends Object implements ValidationProvider<HibernateValidatorConfiguration>
ValidationProvider
within Hibernate Validator.Constructor and Description |
---|
HibernateValidator() |
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. |
HibernateValidatorConfiguration |
createSpecializedConfiguration(BootstrapState state)
|
public HibernateValidatorConfiguration createSpecializedConfiguration(BootstrapState state)
ValidationProvider
Configuration
instance implementing T
,
the Configuration
sub-interface.
The returned Configuration
instance must use the current provider
(this
) to build the ValidatorFactory
instance.createSpecializedConfiguration
in interface ValidationProvider<HibernateValidatorConfiguration>
state
- bootstrap stateConfiguration
implementationpublic Configuration<?> createGenericConfiguration(BootstrapState state)
ValidationProvider
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.createGenericConfiguration
in interface ValidationProvider<HibernateValidatorConfiguration>
state
- bootstrap statepublic ValidatorFactory buildValidatorFactory(ConfigurationState configurationState)
ValidationProvider
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.buildValidatorFactory
in interface ValidationProvider<HibernateValidatorConfiguration>
configurationState
- the configuration descriptorValidatorFactory
Copyright © 2017 JBoss by Red Hat. All rights reserved.