de.fuberlin.wiwiss.d2rq.server
Class WebappInitListener

java.lang.Object
  extended by de.fuberlin.wiwiss.d2rq.server.WebappInitListener
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public class WebappInitListener
extends Object
implements javax.servlet.ServletContextListener

Initialize D2R server on startup of an appserver such as Tomcat. This listener should be included in the web.xml. This is compatible with Servlet 2.3 spec compliant appservers.

Author:
Inigo Surguy, Richard Cyganiak (richard@cyganiak.de)

Constructor Summary
WebappInitListener()
           
 
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

WebappInitListener

public WebappInitListener()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent event)
Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent event)
Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener