org.deegree.enterprise.servlet
Class CSWHarvestingContextListener
java.lang.Object
org.deegree.enterprise.servlet.CSWHarvestingContextListener
- All Implemented Interfaces:
- java.util.EventListener, javax.servlet.ServletContextListener
public class CSWHarvestingContextListener
- extends java.lang.Object
- implements javax.servlet.ServletContextListener
This class can be used to start up CSW harvesting thread when a servlet context will be
initialized and to free all assigned resources if it will be destroyed.
For this it has to be registered to a servelt context making a <listener> entry to web.xml
<web-app>
<listener>
<listener-class>com.listeners.MyContextListener</listener-class>
</listener>
<servlet>
...
</servlet>
<servlet-mapping>
...
</servlet-mapping>
</web-app>
<pre>
@version $Revision: 19475 $
@author <a href="mailto:poth@lat-lon.de">Andreas Poth</a>
@author last edited by: $Author: lbuesching $
@version 1.0. $Revision: 19475 $, $Date: 2009-09-02 14:51:48 +0200 (Mi, 02 Sep 2009) $
- Since:
- 2.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CSWHarvestingContextListener
public CSWHarvestingContextListener()
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent event)
- Specified by:
contextDestroyed
in interface javax.servlet.ServletContextListener
- Parameters:
event
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent event)
- Specified by:
contextInitialized
in interface javax.servlet.ServletContextListener
- Parameters:
event
-
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org