org.springframework.aop.interceptor
Class PerformanceMonitorInterceptor

java.lang.Object
  extended byorg.springframework.aop.interceptor.PerformanceMonitorInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

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

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.

Version:
$Id: PerformanceMonitorInterceptor.java,v 1.2 2004/03/18 02:46:09 trisberg 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.intercept.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.intercept.MethodInvocation invocation)
                        throws java.lang.Throwable
Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Throws:
java.lang.Throwable


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