@groovy.transform.CompileStatic class JavaxValidatorRegistry extends org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry implements ValidatorFactory
A validator registry that creates validators
Fields inherited from class | Fields |
---|---|
class org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry |
__$stMC, DEFAULT_CONSTRAINTS, PROPERTY_NAME |
Type | Name and description |
---|---|
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 Configuration<?> |
buildConfiguration() Builds the default Validator configuration |
|
static org.springframework.context.annotation.Configuration |
buildConfigurationFor(MappingContext context, org.springframework.context.MessageSource messageSource) Builds a configuration for the given context and message source |
|
protected GormValidatorFactoryAdapter |
buildValidatorFactoryAdapter(org.springframework.context.annotation.Configuration validatorConfiguration) Build the validator factory from the validator configuration |
|
void |
close() |
|
ClockProvider |
getClockProvider() |
|
ConstraintValidatorFactory |
getConstraintValidatorFactory() |
|
MessageInterpolator |
getMessageInterpolator() |
|
ParameterNameProvider |
getParameterNameProvider() |
|
TraversableResolver |
getTraversableResolver() |
|
org.springframework.validation.Validator |
getValidator(PersistentEntity entity) |
|
Validator |
getValidator() |
|
static boolean |
isAvailable()
|
<T> |
T |
unwrap(java.lang.Class<T> aClass) |
|
ValidatorContext |
usingContext() |
Methods inherited from class | Name |
---|---|
class org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry |
org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#addConstraint(java.lang.Class), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#addConstraint(java.lang.Class, java.util.List), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#getValidator(org.grails.datastore.mapping.model.PersistentEntity), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#$getLookup(), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#addConstraintFactory(org.grails.datastore.gorm.validation.constraints.factory.ConstraintFactory), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#getMessageSource(), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#getDefaultConstraints(), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#newConstrainedPropertyBuilder(java.lang.Class), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#findConstraintFactories(java.lang.Class), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#findConstraintFactories(java.lang.String), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#getValidatorMap(), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#getConstraintsEvaluator(), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#getConstraintRegistry(), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#getMappingContext(), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#evaluate(java.lang.Class, boolean), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#evaluate(java.lang.Class), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#evaluate(java.lang.Class, boolean, boolean, [Lgroovy.lang.Closure;), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#getMetaClass(), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#setMetaClass(groovy.lang.MetaClass), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#wait(long, int), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#wait(), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#wait(long), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#equals(java.lang.Object), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#toString(), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#hashCode(), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#getClass(), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#notify(), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#notifyAll(), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#getProperty(java.lang.String), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#setProperty(java.lang.String, java.lang.Object), org.grails.datastore.gorm.validation.constraints.registry.DefaultValidatorRegistry#invokeMethod(java.lang.String, java.lang.Object) |
The validator factory
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