Class ValidationAutoConfiguration


  • @Configuration
    public class ValidationAutoConfiguration
    extends java.lang.Object
    Configuration for bean validation within Genie.
    Since:
    3.0.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.validation.beanvalidation.LocalValidatorFactoryBean localValidatorFactoryBean()
      Setup bean validation.
      org.springframework.validation.beanvalidation.MethodValidationPostProcessor methodValidationPostProcessor()
      Setup method parameter bean validation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ValidationAutoConfiguration

        public ValidationAutoConfiguration()
    • Method Detail

      • localValidatorFactoryBean

        @Bean
        @ConditionalOnMissingBean(javax.validation.Validator.class)
        public org.springframework.validation.beanvalidation.LocalValidatorFactoryBean localValidatorFactoryBean()
        Setup bean validation.
        Returns:
        The bean validator
      • methodValidationPostProcessor

        @Bean
        @ConditionalOnMissingBean(org.springframework.validation.beanvalidation.MethodValidationPostProcessor.class)
        public org.springframework.validation.beanvalidation.MethodValidationPostProcessor methodValidationPostProcessor()
        Setup method parameter bean validation.
        Returns:
        The method validation processor