|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.coherence.rest.servlet.DefaultServletContextListener
public class DefaultServletContextListener
A simple implementation of the ServletContextListener interface that calls CacheFactory.shutdown()
during servlet context shutdown.
This class should be registered in the web application deployment descriptor of a Coherence REST J2EE web application like so:
<web-app> ... <listener> <listener-class>com.tangosol.coherence.rest.servlet.DefaultServletContextListener</listener-class> </listener> <servlet> <servlet-name>Coherence REST</servlet-name> <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> <init-param> <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name> <param-value>com.tangosol.coherence.rest.server.DefaultResourceConfig</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> ... </web-app>
Constructor Summary | |
---|---|
DefaultServletContextListener() |
Method Summary | |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent evt) Notification that the servlet context is about to be shut down. |
void |
contextInitialized(javax.servlet.ServletContextEvent evt) Notification that the web application initialization process is starting. |
Constructor Detail |
---|
public DefaultServletContextListener()
Method Detail |
---|
public void contextDestroyed(javax.servlet.ServletContextEvent evt)
contextDestroyed
in interface javax.servlet.ServletContextListener
evt
- the ServletContextEventpublic void contextInitialized(javax.servlet.ServletContextEvent evt)
contextInitialized
in interface javax.servlet.ServletContextListener
evt
- the ServletContextEvent
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |