Package psiprobe

Class AwtAppContextClassloaderListener

  • All Implemented Interfaces:
    EventListener, javax.servlet.ServletContextListener

    @WebListener
    public class AwtAppContextClassloaderListener
    extends Object
    implements javax.servlet.ServletContextListener
    Prevents a classloader leak.

    As suggested by: Colm Divilly

    • Field Detail

      • logger

        private static final org.slf4j.Logger logger
        The Constant logger.
    • Constructor Detail

      • AwtAppContextClassloaderListener

        public AwtAppContextClassloaderListener()
    • Method Detail

      • contextInitialized

        public void contextInitialized​(javax.servlet.ServletContextEvent sce)
        Forces the sun.awt.AppContext singleton to be created and initialized when the context is initialized.
        Specified by:
        contextInitialized in interface javax.servlet.ServletContextListener
        Parameters:
        sce - the event containing the context being initialized
      • contextDestroyed

        public void contextDestroyed​(javax.servlet.ServletContextEvent sce)
        Specified by:
        contextDestroyed in interface javax.servlet.ServletContextListener