org.mycore.common.events
Class MCRServletContextListener
java.lang.Object
org.mycore.common.events.MCRServletContextListener
- All Implemented Interfaces:
- EventListener, ServletContextListener
public class MCRServletContextListener
- extends Object
- implements ServletContextListener
is a shutdown hook for the current ServletContext.
For this class to register itself as a shutdown hook to the current ServletContext please add the following code to your web.xml (allready done in MyCoRe-shipped version):
<listener>
<listener-class>org.mycore.common.events.MCRServletContextListener</listener-class>
</listener>
- Since:
- 1.3
- Author:
- Thomas Scheffler (yagee)
- See Also:
MCRShutdownHandler
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MCRServletContextListener
public MCRServletContextListener()
contextInitialized
public void contextInitialized(ServletContextEvent sce)
- Specified by:
contextInitialized in interface ServletContextListener
contextDestroyed
public void contextDestroyed(ServletContextEvent sce)
- Specified by:
contextDestroyed in interface ServletContextListener