org.dellroad.stuff.servlet
Class ContextCleanupListener

java.lang.Object
  extended by org.springframework.web.util.IntrospectorCleanupListener
      extended by org.dellroad.stuff.servlet.ContextCleanupListener
All Implemented Interfaces:
EventListener, ServletContextListener

public class ContextCleanupListener
extends IntrospectorCleanupListener

Clears references that can cause container memory leaks on Web container class unloading.

Since:
1.0.49
See Also:
Spring Wiki Discussion of ClassLoader Memory Leaks

Field Summary
protected  Logger log
           
 
Constructor Summary
ContextCleanupListener()
           
 
Method Summary
 void contextDestroyed(ServletContextEvent event)
          Unregisters any JDBC drivers registered under the current class loader after first invoking the superclass version of this method.
 
Methods inherited from class org.springframework.web.util.IntrospectorCleanupListener
contextInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final Logger log
Constructor Detail

ContextCleanupListener

public ContextCleanupListener()
Method Detail

contextDestroyed

public void contextDestroyed(ServletContextEvent event)
Unregisters any JDBC drivers registered under the current class loader after first invoking the superclass version of this method.

Specified by:
contextDestroyed in interface ServletContextListener
Overrides:
contextDestroyed in class IntrospectorCleanupListener