public class ShutdownListener extends Object
To receive notification events, this class must be configured in the deployment descriptor for the web application. To do so, add the following to web.xml in your web application:
<listener> <listener-class>net.sf.ehcache.constructs.web.ShutdownListener</listener-class> </listener>
Constructor and Description |
---|
ShutdownListener() |
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(ServletContextEvent servletContextEvent)
Notification that the servlet context is about to be shut down.
|
void |
contextInitialized(ServletContextEvent servletContextEvent)
Notification that the web application is ready to process requests.
|
public void contextInitialized(ServletContextEvent servletContextEvent)
servletContextEvent
- public void contextDestroyed(ServletContextEvent servletContextEvent)
Shuts down all cache managers known to CacheManager.ALL_CACHE_MANAGERS
servletContextEvent
- Copyright 2001-2018, Terracotta, Inc.