src/main/java/dbox/sl4bv/validation/support/MethodValidationInterceptor.java
/**
     * Determine the validation groups to validate against for the given method invocation.
     * <p>Default are the validation groups as specified in the {@link Validated} annotation
     * on the containing target class of the method.
     * @param invocation the current MethodInvocation
     * @return the applicable validation groups as a Class array
     */
Determine the validation groups to validate against for the given method invocation.
Default are the validation groups as specified in the  Validated annotation
on the containing target class of the method.
@param invocation the current MethodInvocation
@return the applicable validation groups as a Class array
Determine the validation groups to validate against for the given method invocation . Default are the validation groups as specified in the Validated annotation on the containing target class of the method . @param invocation the current MethodInvocation @return the applicable validation groups as a Class array
protected Class<?>[] determineValidationGroups(MethodInvocation invocation) {
        Validated validatedAnn = AnnotationUtils.findAnnotation(invocation.getMethod(), Validated.class);
        if (validatedAnn == null) {
            validatedAnn = AnnotationUtils.findAnnotation(invocation.getThis().getClass(), Validated.class);
        }
        return (validatedAnn != null ? validatedAnn.value() : new Class<?>[0]);
    }
protected Class < ? > [ ] determineValidationGroups ( MethodInvocation invocation ) { Validated validatedAnn = AnnotationUtils . findAnnotation ( invocation . getMethod ( ) , Validated . class ) ; if ( validatedAnn == null ) { validatedAnn = AnnotationUtils . findAnnotation ( invocation . getThis ( ) . getClass ( ) , Validated . class ) ; } return ( validatedAnn != null ? validatedAnn . value ( ) : new Class < ? > [ 0 ] ) ; }
Determine the validation groups to validate against for the given method invocation.
Determine the validation groups to validate against for the given method invocation .