org.springframework.aop.interceptor
Class JamonPerformanceMonitorInterceptor

java.lang.Object
  extended byorg.springframework.aop.interceptor.JamonPerformanceMonitorInterceptor
All Implemented Interfaces:
Advice, Interceptor, MethodInterceptor, Serializable

public class JamonPerformanceMonitorInterceptor
extends Object
implements MethodInterceptor, Serializable

Performance monitor interceptor that uses JAMon library to perfom the performance mesurment on the intercepted method and output the stats.

This code is inspired by Thierry Templier's blog.

Since:
1.1.3
Author:
Dmitriy Kopylenko, Juergen Hoeller
See Also:
Serialized Form

Field Summary
protected static Log logger
          Static to avoid serializing the logger
 
Constructor Summary
JamonPerformanceMonitorInterceptor()
           
 
Method Summary
 Object invoke(MethodInvocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final Log logger
Static to avoid serializing the logger

Constructor Detail

JamonPerformanceMonitorInterceptor

public JamonPerformanceMonitorInterceptor()
Method Detail

invoke

public Object invoke(MethodInvocation invocation)
              throws Throwable
Specified by:
invoke in interface MethodInterceptor
Throws:
Throwable


Copyright (C) 2003-2004 The Spring Framework Project.