1234567891011121314151617181920212223242526 |
- 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;
- }
- }
|