@groovy.transform.CompileStatic class JavaxValidatorRegistry extends DefaultValidatorRegistry implements javax.validation.ValidatorFactory
A validator registry that creates validators
Modifiers | Name | Description |
---|---|---|
private javax.validation.ValidatorFactory |
validatorFactory |
The validator factory |
Fields inherited from class | Fields |
---|---|
class DefaultValidatorRegistry |
constraintRegistry, constraintsEvaluator, mappingContext, messageSource, validatorMap |
Type | Name and description |
---|---|
javax.validation.ValidatorFactory |
validatorFactory The validator factory |
Constructor and description |
---|
JavaxValidatorRegistry
(MappingContext mappingContext, ConnectionSourceSettings settings, org.springframework.context.MessageSource messageSource) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected javax.validation.Configuration<?> |
buildConfiguration() Builds the default Validator configuration |
|
static javax.validation.Configuration |
buildConfigurationFor(MappingContext context, org.springframework.context.MessageSource messageSource) Builds a configuration for the given context and message source |
|
protected GormValidatorFactoryAdapter |
buildValidatorFactoryAdapter(javax.validation.Configuration validatorConfiguration) Build the validator factory from the validator configuration |
|
void |
close() |
|
javax.validation.ClockProvider |
getClockProvider() |
|
javax.validation.ConstraintValidatorFactory |
getConstraintValidatorFactory() |
|
javax.validation.MessageInterpolator |
getMessageInterpolator() |
|
javax.validation.ParameterNameProvider |
getParameterNameProvider() |
|
javax.validation.TraversableResolver |
getTraversableResolver() |
|
org.springframework.validation.Validator |
getValidator(PersistentEntity entity) |
|
javax.validation.Validator |
getValidator() |
|
static boolean |
isAvailable()
|
<T> |
T |
unwrap(java.lang.Class<T> aClass) |
|
javax.validation.ValidatorContext |
usingContext() |
Methods inherited from class | Name |
---|---|
class DefaultValidatorRegistry |
getValidator, resolveDefaultConstraints |
Builds the default Validator configuration
Builds a configuration for the given context and message source
context
- The contextmessageSource
- The message sourceBuild the validator factory from the validator configuration
validatorConfiguration
- The configuration
Groovy Documentation