org.eclipse.jetty.servlet.listener
Class ELContextCleaner

java.lang.Object
  extended by org.eclipse.jetty.servlet.listener.ELContextCleaner
All Implemented Interfaces:
EventListener, ServletContextListener

public class ELContextCleaner
extends Object
implements ServletContextListener

ELContextCleaner Clean up BeanELResolver when the context is going out of service: See http://java.net/jira/browse/GLASSFISH-1649 See https://bugs.eclipse.org/bugs/show_bug.cgi?id=353095


Constructor Summary
ELContextCleaner()
           
 
Method Summary
 void contextDestroyed(ServletContextEvent sce)
          Notification that the servlet context is about to be shut down.
 void contextInitialized(ServletContextEvent sce)
          Notification that the web application initialization process is starting.
protected  Field getField(Class beanELResolver)
           
protected  void purgeEntries(Field properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ELContextCleaner

public ELContextCleaner()
Method Detail

contextInitialized

public void contextInitialized(ServletContextEvent sce)
Description copied from interface: ServletContextListener
Notification that the web application initialization process is starting. All ServletContextListeners are notified of context initialization before any filter or servlet in the web application is initialized.

Specified by:
contextInitialized in interface ServletContextListener

contextDestroyed

public void contextDestroyed(ServletContextEvent sce)
Description copied from interface: ServletContextListener
Notification that the servlet context is about to be shut down. All servlets and filters have been destroy()ed before any ServletContextListeners are notified of context destruction.

Specified by:
contextDestroyed in interface ServletContextListener

getField

protected Field getField(Class beanELResolver)
                  throws SecurityException,
                         NoSuchFieldException
Throws:
SecurityException
NoSuchFieldException

purgeEntries

protected void purgeEntries(Field properties)
                     throws IllegalArgumentException,
                            IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException


Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.