org.apache.lucene.gdata.server.registry
Class RegistryContextListener

java.lang.Object
  extended by org.apache.lucene.gdata.server.registry.RegistryContextListener

public class RegistryContextListener
extends Object

This Listener creates the GDataServerRegistry when the context is loaded. The registry will be loaded before the RequestControllerServlet is loaded. The Registry will be loaded and set up before the REST interface is available.

This ContextListener has to be configured in the web.xml deployment descriptor.

When the javax.servlet.ServletContextListener#contextDestroyed(javax.servlet.ServletContextEvent) method is called the registry will be destroyed using GDataServerRegistry.destroy() method.

Author:
Simon Willnauer

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

Constructor Detail

RegistryContextListener

public RegistryContextListener()
Method Detail

contextInitialized

public void contextInitialized(ServletContextEvent arg0)
See Also:
javax.servlet.ServletContextListener#contextInitialized(javax.servlet.ServletContextEvent)

contextDestroyed

public void contextDestroyed(ServletContextEvent arg0)
See Also:
javax.servlet.ServletContextListener#contextDestroyed(javax.servlet.ServletContextEvent)


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.