npublic class PerformanceMonitorDetailInterceptor implements MethodInterceptor
n{
n protected
final Log
logger = LogFactory.getLog(getClass());
n
n public Object
invoke(MethodInvocation invocation) throws Throwable {
n String name =
invocation.getMethod().getDeclaringClass().getName()
n + ".“
+
invocation.getMethod().getName();
n
n StopWatch sw = new StopWatch(name);
n sw.start(name);
n Object rval = invocation.proceed();
n
n sw.stop();
n
logger.info(sw.prettyPrint());
n return rval;
n }
n}