org.springframework.aop.interceptor
Class PerformanceMonitorInterceptor
java.lang.Object
org.springframework.aop.interceptor.PerformanceMonitorInterceptor
- All Implemented Interfaces:
- Advice, Interceptor, MethodInterceptor, Serializable
- public class PerformanceMonitorInterceptor
- extends Object
- implements MethodInterceptor, Serializable
Trivial performance monitor interceptor.
This interceptor has no effect on the intercepted method call.
Presently logs information using Commons Logging, at "info" level.
Could make this much more sophisticated, storing information etc.
- Author:
- Rod Johnson, Dmitriy Kopylenko
- See Also:
- Serialized Form
Field Summary |
protected static Log |
logger
Static to avoid serializing the logger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final Log logger
- Static to avoid serializing the logger
PerformanceMonitorInterceptor
public PerformanceMonitorInterceptor()
invoke
public Object invoke(MethodInvocation invocation)
throws Throwable
- Specified by:
invoke
in interface MethodInterceptor
- Throws:
Throwable
Copyright (C) 2003-2004 The Spring Framework Project.