1 16 17 package org.springframework.aop.framework.autoproxy; 18 19 import java.lang.reflect.Method ; 20 import java.util.List ; 21 22 import org.springframework.aop.interceptor.NopInterceptor; 23 import org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor; 24 25 29 public class NeverMatchAdvisor extends StaticMethodMatcherPointcutAdvisor { 30 31 public NeverMatchAdvisor() { 32 super(new NopInterceptor()); 33 } 34 35 40 public void setDependencies(List l) { 41 42 } 43 44 47 public boolean matches(Method m, Class targetClass) { 48 return false; 50 } 51 52 } 53 | Popular Tags |