Class OptionalValidatorFactoryBean

All Implemented Interfaces:
Validator, ValidatorFactory, AutoCloseable, Aware, DisposableBean, InitializingBean, ApplicationContextAware, SmartValidator, Validator

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 jakarta.validation API being present but no explicit Validator having been configured.

Since:
4.0.1
Author:
Juergen Hoeller
  • Constructor Details

    • OptionalValidatorFactoryBean

      public OptionalValidatorFactoryBean()
  • Method Details