Class ValidMethodParametersAspect


  • public class ValidMethodParametersAspect
    extends java.lang.Object
    This aspect automatically invokes a Validator for method parameters annotated with the Valid annotation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void validateParameters​(org.aspectj.lang.JoinPoint jp)
      Aspect that matches any method execution in our package with one or more parameters that have the Valid annotation.
      • Methods inherited from class java.lang.Object

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

      • ValidMethodParametersAspect

        public ValidMethodParametersAspect​(javax.validation.Validator validator)
    • Method Detail

      • validateParameters

        public void validateParameters​(org.aspectj.lang.JoinPoint jp)
        Aspect that matches any method execution in our package with one or more parameters that have the Valid annotation.
        Parameters:
        jp - the JoinPoint representing the captured method execution.