|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.oscache.web.CacheContextListener
public class CacheContextListener
Class for a clean startup and shutdown of the ServletCacheAdministrator and its application scoped cache.
Constructor Summary | |
---|---|
CacheContextListener()
|
Method Summary | |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
This notification occurs when the servlet context is about to be shut down. |
void |
contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
This notification occurs when the webapp is ready to process requests. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheContextListener()
Method Detail |
---|
public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
We use this hook to cleanly start up the ServletCacheAdministrator
and create the application scope cache (which will consequentially
initialize any listeners configured for it that implement LifecycleAware
.)
As of Servlet 2.4, this is guaranteed to be called before any Servlet.init() methods.
contextInitialized
in interface javax.servlet.ServletContextListener
public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
contextDestroyed
in interface javax.servlet.ServletContextListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |