org.apache.lucene.gdata.server.registry
Class RegistryContextListener
java.lang.Object
org.apache.lucene.gdata.server.registry.RegistryContextListener
- All Implemented Interfaces:
- EventListener, javax.servlet.ServletContextListener
public class RegistryContextListener
- extends Object
- implements javax.servlet.ServletContextListener
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
ServletContextListener.contextDestroyed(javax.servlet.ServletContextEvent)
method is called the registry will be destroyed using
GDataServerRegistry.destroy()
method.
- Author:
- Simon Willnauer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegistryContextListener
public RegistryContextListener()
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent arg0)
- Specified by:
contextInitialized
in interface javax.servlet.ServletContextListener
- See Also:
ServletContextListener.contextInitialized(javax.servlet.ServletContextEvent)
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent arg0)
- Specified by:
contextDestroyed
in interface javax.servlet.ServletContextListener
- See Also:
ServletContextListener.contextDestroyed(javax.servlet.ServletContextEvent)
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.