deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.enterprise.servlet
Class CSWHarvestingContextListener

java.lang.Object
  extended by 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

Constructor Summary
CSWHarvestingContextListener()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent event)
           
 void contextInitialized(javax.servlet.ServletContextEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSWHarvestingContextListener

public CSWHarvestingContextListener()
Method Detail

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 -

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org