package org.springframework.issues;
import java.lang.reflect.Method;
import org.springframework.aop.interceptor.SimpleTraceInterceptor;
import org.springframework.aop.support.DefaultPointcutAdvisor;
import org.springframework.aop.support.StaticMethodMatcherPointcut;
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.stereotype.Controller;
@SuppressWarnings("serial")
super(new StaticMethodMatcherPointcut() {
public boolean matches(Method method, Class<?> targetClass) {
return (AnnotationUtils.findAnnotation(targetClass, Controller.class) != null);
}
}, new SimpleTraceInterceptor());
}
}