org.springframework.validation.beanvalidation

## 类 OptionalValidatorFactoryBean

- java.lang.Object
- - org.springframework.validation.beanvalidation.SpringValidatorAdapter
  - - org.springframework.validation.beanvalidation.LocalValidatorFactoryBean
    - - org.springframework.validation.beanvalidation.OptionalValidatorFactoryBean

- 所有已实现的接口:
    Validator, ValidatorFactory, org.springframework.beans.factory.Aware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, ApplicationContextAware, SmartValidator

      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.

  从以下版本开始:
    4.0.1
  作者:
    Juergen Hoeller

- - ### 构造器概要

    构造器
    构造器和说明
    `OptionalValidatorFactoryBean()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `afterPropertiesSet()`

    - ### 从类继承的方法 org.springframework.validation.beanvalidation.LocalValidatorFactoryBean

      `close, destroy, getConstraintValidatorFactory, getMessageInterpolator, getParameterNameProvider, getTraversableResolver, getValidationPropertyMap, getValidator, postProcessConfiguration, setApplicationContext, setConstraintValidatorFactory, setMappingLocations, setMessageInterpolator, setParameterNameDiscoverer, setProviderClass, setTraversableResolver, setValidationMessageSource, setValidationProperties, setValidationPropertyMap, setValidationProviderResolver, unwrap, usingContext`

    - ### 从类继承的方法 org.springframework.validation.beanvalidation.SpringValidatorAdapter

      `determineErrorCode, determineField, forExecutables, getArgumentsForConstraint, getConstraintsForClass, getRejectedValue, getResolvableField, processConstraintViolations, supports, validate, validate, validate, validateProperty, validateValue`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### OptionalValidatorFactoryBean

          public OptionalValidatorFactoryBean()

  - ### 方法详细资料

    - #### afterPropertiesSet

          public void afterPropertiesSet()

      指定者:
        `afterPropertiesSet` 在接口中 `org.springframework.beans.factory.InitializingBean`
      覆盖:
        `afterPropertiesSet` 在类中 `LocalValidatorFactoryBean`