org.springframework.web.context.support
Class PerformanceMonitorListener

java.lang.Object
  extended byorg.springframework.web.context.support.PerformanceMonitorListener
All Implemented Interfaces:
ApplicationListener, java.util.EventListener

public class PerformanceMonitorListener
extends java.lang.Object
implements ApplicationListener

Listener that logs the response times of web requests. To be registered in a WebApplicationContext.

Since:
January 21, 2001
Author:
Rod Johnson
See Also:
RequestHandledEvent

Field Summary
protected  org.apache.commons.logging.Log logger
           
protected  ResponseTimeMonitorImpl responseTimeMonitor
           
 
Constructor Summary
PerformanceMonitorListener()
           
 
Method Summary
 void onApplicationEvent(ApplicationEvent event)
          Handle an application event
 
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

responseTimeMonitor

protected ResponseTimeMonitorImpl responseTimeMonitor
Constructor Detail

PerformanceMonitorListener

public PerformanceMonitorListener()
Method Detail

onApplicationEvent

public void onApplicationEvent(ApplicationEvent event)
Description copied from interface: ApplicationListener
Handle an application event

Specified by:
onApplicationEvent in interface ApplicationListener
Parameters:
event - event to respond to


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