org.springframework.web.context.support
Class PerformanceMonitorListener
java.lang.Object
org.springframework.web.context.support.PerformanceMonitorListener
- All Implemented Interfaces:
- EventListener, ApplicationListener
public class PerformanceMonitorListener
- extends Object
- implements ApplicationListener
Listener that logs the response times of web requests.
To be registered as bean in a WebApplicationContext.
Presently logs performance statistics using Commons Logging,
at "trace" level.
- Since:
- January 21, 2001
- Author:
- Rod Johnson, Juergen Hoeller
- See Also:
RequestHandledEvent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final org.apache.commons.logging.Log logger
responseTimeMonitor
protected final ResponseTimeMonitorImpl responseTimeMonitor
PerformanceMonitorListener
public PerformanceMonitorListener()
onApplicationEvent
public void onApplicationEvent(ApplicationEvent event)
- Description copied from interface:
ApplicationListener
- Handle an application event.
- Specified by:
onApplicationEvent
in interface ApplicationListener
- Parameters:
event
- the event to respond to
Copyright (c) 2002-2005 The Spring Framework Project.