@groovy.transform.CompileStatic class JavaxValidatorRegistry extends DefaultValidatorRegistry
A validator registry that creates validators
Type | Name and description |
---|---|
javax.validation.ValidatorFactory |
validatorFactory The validator factory |
Constructor and description |
---|
JavaxValidatorRegistry
(MappingContext mappingContext, ConnectionSourceSettings settings, org.springframework.context.MessageSource messageSource = new StaticMessageSource() |
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() @return Whether javax.validation is available |
<T> |
T |
unwrap(java.lang.Class<T> aClass) |
|
javax.validation.ValidatorContext |
usingContext() |
Methods inherited from class | Name |
---|---|
class DefaultValidatorRegistry |
getValidator, resolveDefaultConstraints |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
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