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)
           
 void contextInitialized(ServletContextEvent sce)
           
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)
Specified by:
contextInitialized in interface ServletContextListener

contextDestroyed

public void contextDestroyed(ServletContextEvent sce)
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.