Class 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
    • 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)  
      • 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​(javax.servlet.ServletContextEvent sce)
        Specified by:
        contextInitialized in interface javax.servlet.ServletContextListener
      • contextDestroyed

        public void contextDestroyed​(javax.servlet.ServletContextEvent sce)
        Specified by:
        contextDestroyed in interface javax.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