java.lang.Object
es.kukenan.smartfi.common.service.validation.annotations.ValidAdvice

public class ValidAdvice extends Object
Aspect used to inject validation logic before a method execution.
  • Field Details

    • INVALID_CALL

      public static final String INVALID_CALL
      Default description for the exceptions to throw if one is not given.
      See Also:
    • beanValidatorService

      @Autowired private BeanValidatorService beanValidatorService
      Bean validator service.
  • Constructor Details

    • ValidAdvice

      public ValidAdvice()
  • Method Details

    • validateBean

      public void validateBean(org.aspectj.lang.JoinPoint joinPoint)
      Validation logic to execute before method call. This logic is only injected in methods that contains, at least, an argument annotated with Valid.
      Parameters:
      joinPoint - join point details, used to extract method arguments definitions and values.
      Throws:
      InvalidCallException - if validation problems found in the bean.