/** * Same as {@link #applyMethod(Set, Set, String)}, except that <code>excludeMethods</code> * and <code>includeMethods</code> are supplied as comma separated string. * * @param excludeMethods comma seperated string of methods to exclude. * @param includeMethods comma seperated string of methods to include. * @param method the specified method to check * @return <tt>true</tt> if the method should be applied. */ public static boolean applyMethod(String excludeMethods, String includeMethods, String method) { Set<String> includeMethodsSet = TextParseUtil.commaDelimitedStringToSet(includeMethods == null? "" : includeMethods); Set<String> excludeMethodsSet = TextParseUtil.commaDelimitedStringToSet(excludeMethods == null? "" : excludeMethods); return applyMethod(excludeMethodsSet, includeMethodsSet, method); }
protected boolean applyInterceptor(ActionInvocation invocation) { String method = invocation.getProxy().getMethod(); // ValidationInterceptor boolean applyMethod = MethodFilterInterceptorUtil.applyMethod(excludeMethods, includeMethods, method); if (log.isDebugEnabled()) { if (!applyMethod) { log.debug("Skipping Interceptor... Method [" + method + "] found in exclude list."); } } return applyMethod; }