|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.utils.servlet.JCSServletContextListener
public class JCSServletContextListener
If you add this to the context listeners section of your web.xml file, this will shutdown JCS gracefully.
Add the following to the top of your web.xml file.
<listener> <listener-class> org.apache.jcs.utils.servlet.JCSServletContextListener </listener-class> </listener>
Constructor Summary | |
---|---|
JCSServletContextListener()
|
Method Summary | |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent arg0)
This gets the singleton instance of the CompositeCacheManager and calls shutdown. |
void |
contextInitialized(javax.servlet.ServletContextEvent arg0)
This does nothing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JCSServletContextListener()
Method Detail |
---|
public void contextInitialized(javax.servlet.ServletContextEvent arg0)
(non-Javadoc)
contextInitialized
in interface javax.servlet.ServletContextListener
ServletContextListener.contextInitialized(javax.servlet.ServletContextEvent)
public void contextDestroyed(javax.servlet.ServletContextEvent arg0)
(non-Javadoc)
contextDestroyed
in interface javax.servlet.ServletContextListener
ServletContextListener.contextDestroyed(javax.servlet.ServletContextEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |