Package psiprobe
Class AwtAppContextClassloaderListener
- java.lang.Object
-
- psiprobe.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 Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
logger
The Constant logger.
-
Constructor Summary
Constructors Constructor Description AwtAppContextClassloaderListener()
-
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)
Forces thesun.awt.AppContext
singleton to be created and initialized when the context is initialized.
-
-
-
Method Detail
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce)
Forces thesun.awt.AppContext
singleton to be created and initialized when the context is initialized.- Specified by:
contextInitialized
in interfacejavax.servlet.ServletContextListener
- Parameters:
sce
- the event containing the context being initialized
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
- Specified by:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
-
-