com.interface21.aop.interceptor
Class PerformanceMonitorInterceptor

java.lang.Object
  |
  +--com.interface21.aop.interceptor.PerformanceMonitorInterceptor
All Implemented Interfaces:
org.aopalliance.Interceptor, org.aopalliance.MethodInterceptor

public class PerformanceMonitorInterceptor
extends java.lang.Object
implements org.aopalliance.MethodInterceptor

Trivial performance monitor interceptor. Could make this much more sophisticated, storing information. Presently logs information using Log4j. This interceptor has no effect on the intercepted method call.

Version:
$Id: PerformanceMonitorInterceptor.java,v 1.1 2003/06/13 13:40:11 jhoeller Exp $
Author:
Rod Johnson, Dmitriy Kopylenko

Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
PerformanceMonitorInterceptor()
           
 
Method Summary
 java.lang.Object invoke(org.aopalliance.MethodInvocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

PerformanceMonitorInterceptor

public PerformanceMonitorInterceptor()
Method Detail

invoke

public java.lang.Object invoke(org.aopalliance.MethodInvocation invocation)
                        throws java.lang.Throwable
Specified by:
invoke in interface org.aopalliance.MethodInterceptor


Rod Johnson and Spring contributors 2001-2003.