/** * Try to match the regular expression against the fully qualified name * of the target class as well as against the method's declaring class, * plus the name of the method. */ @Override public boolean matches(Method method, Class<?> targetClass) { return (matchesPattern(ClassUtils.getQualifiedMethodName(method, targetClass)) || (targetClass != method.getDeclaringClass() && matchesPattern(ClassUtils.getQualifiedMethodName(method, method.getDeclaringClass())))); }
/** * Try to match the regular expression against the fully qualified name * of the target class as well as against the method's declaring class, * plus the name of the method. */ @Override public boolean matches(Method method, Class<?> targetClass) { return (matchesPattern(ClassUtils.getQualifiedMethodName(method, targetClass)) || (targetClass != method.getDeclaringClass() && matchesPattern(ClassUtils.getQualifiedMethodName(method, method.getDeclaringClass())))); }
/** * Try to match the regular expression against the fully qualified name * of the target class as well as against the method's declaring class, * plus the name of the method. */ @Override public boolean matches(Method method, Class<?> targetClass) { return ((targetClass != null && targetClass != method.getDeclaringClass() && matchesPattern(ClassUtils.getQualifiedMethodName(method, targetClass))) || matchesPattern(ClassUtils.getQualifiedMethodName(method, method.getDeclaringClass()))); }