public class OptionalValidatorFactoryBean extends LocalValidatorFactoryBean
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 javax.validation
API being present but no explicit
Validator having been configured.
Constructor and Description |
---|
OptionalValidatorFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
|
close, destroy, getConstraintValidatorFactory, getMessageInterpolator, getTraversableResolver, getValidationPropertyMap, getValidator, postProcessConfiguration, setApplicationContext, setConstraintValidatorFactory, setMappingLocations, setMessageInterpolator, setParameterNameDiscoverer, setProviderClass, setTraversableResolver, setValidationMessageSource, setValidationProperties, setValidationPropertyMap, usingContext
determineErrorCode, determineField, getArgumentsForConstraint, getConstraintsForClass, getRejectedValue, processConstraintViolations, supports, unwrap, validate, validate, validate, validateProperty, validateValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
unwrap
public void afterPropertiesSet()
InitializingBean
This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class LocalValidatorFactoryBean