package com.sf.aop.advisor; import org.springframework.aop.MethodMatcher; import java.lang.reflect.Method; public class WcMethodMatcher implements MethodMatcher { @Override public boolean matches(Method method, Class targetClass) { if (method.getName().equals("wc")) { return true; } return false; } @Override public boolean isRuntime() { return false; } @Override public boolean matches(Method method, Class targetClass, Object... args) { return false; } }