Class ELContextCleaner
- java.lang.Object
-
- org.eclipse.jetty.servlet.listener.ELContextCleaner
-
- All Implemented Interfaces:
java.util.EventListener
,javax.servlet.ServletContextListener
public class ELContextCleaner extends java.lang.Object implements javax.servlet.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
Constructors Constructor Description ELContextCleaner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextDestroyed(javax.servlet.ServletContextEvent sce)
void
contextInitialized(javax.servlet.ServletContextEvent sce)
protected java.lang.reflect.Field
getField(java.lang.Class<?> beanELResolver)
protected void
purgeEntries(java.lang.reflect.Field properties)
-
-
-
Method Detail
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce)
- Specified by:
contextInitialized
in interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
- Specified by:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
-
getField
protected java.lang.reflect.Field getField(java.lang.Class<?> beanELResolver) throws java.lang.SecurityException, java.lang.NoSuchFieldException
- Throws:
java.lang.SecurityException
java.lang.NoSuchFieldException
-
purgeEntries
protected void purgeEntries(java.lang.reflect.Field properties) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException
- Throws:
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
-
-