java.lang.Object
info.ejava_student.starter.assignment3.aop.houserentals.AOPConfiguration

@Configuration(proxyBeanMethods=false) public class AOPConfiguration extends Object
  • Constructor Details

    • AOPConfiguration

      public AOPConfiguration()
  • Method Details

    • nullPropertyAssertion

      @Bean public NullPropertyAssertion nullPropertyAssertion()
    • methodConstraints

      @Bean @ConfigurationProperties("aop.validation") public List<MethodConstraints> methodConstraints()
      This will construct a List of MethodConstraints from a property or YAML file provided by the support modules. MethodConstraints contains propert
      Returns:
    • validatorAspect

      @Bean @Profile("aop") public ValidatorAspect validatorAspect(NullPropertyAssertion nullPropertyAssertion, List<MethodConstraints> methodConstraints)