Class OptionalValidatorFactoryBean
java.lang.Object
org.springframework.validation.beanvalidation.SpringValidatorAdapter
org.springframework.validation.beanvalidation.LocalValidatorFactoryBean
org.springframework.validation.beanvalidation.OptionalValidatorFactoryBean
- All Implemented Interfaces:
- Validator,- ValidatorFactory,- AutoCloseable,- Aware,- DisposableBean,- InitializingBean,- ApplicationContextAware,- SmartValidator,- Validator
LocalValidatorFactoryBean subclass that simply turns
 Validator calls into no-ops
 in case of no Bean Validation provider being available.
 This is the actual class used by Spring's MVC configuration namespace,
 in case of the jakarta.validation API being present but no explicit
 Validator having been configured.
- Since:
- 4.0.1
- Author:
- Juergen Hoeller
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidInvoked by the containingBeanFactoryafter it has set all bean properties and satisfiedBeanFactoryAware,ApplicationContextAwareetc.Methods inherited from class org.springframework.validation.beanvalidation.LocalValidatorFactoryBeanclose, destroy, getClockProvider, getConstraintValidatorFactory, getMessageInterpolator, getParameterNameProvider, getTraversableResolver, getValidationPropertyMap, getValidator, postProcessConfiguration, setApplicationContext, setConfigurationInitializer, setConstraintValidatorFactory, setMappingLocations, setMessageInterpolator, setParameterNameDiscoverer, setProviderClass, setTraversableResolver, setValidationMessageSource, setValidationProperties, setValidationPropertyMap, setValidationProviderResolver, unwrap, usingContextMethods inherited from class org.springframework.validation.beanvalidation.SpringValidatorAdapterdetermineErrorCode, determineField, forExecutables, getArgumentsForConstraint, getConstraintsForClass, getRejectedValue, getResolvableField, processConstraintViolations, requiresMessageFormat, supports, validate, validate, validate, validateProperty, validateValue, validateValueMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.validation.ValidatorvalidateObject
- 
Constructor Details- 
OptionalValidatorFactoryBeanpublic OptionalValidatorFactoryBean()
 
- 
- 
Method Details- 
afterPropertiesSetpublic void afterPropertiesSet()Description copied from interface:InitializingBeanInvoked by the containingBeanFactoryafter it has set all bean properties and satisfiedBeanFactoryAware,ApplicationContextAwareetc.This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set. - Specified by:
- afterPropertiesSetin interface- InitializingBean
- Overrides:
- afterPropertiesSetin class- LocalValidatorFactoryBean
 
 
-