org.gcube.common.ghn.service
Class ApplicationListener
java.lang.Object
org.gcube.common.ghn.service.ApplicationListener
- All Implemented Interfaces:
- EventListener, javax.servlet.ServletContextListener
@WebListener
public class ApplicationListener
- extends Object
- implements javax.servlet.ServletContextListener
A ServletContextListener which bootstraps gCube management of a web application.
In servlet containers that implement version 3.0 or later of the specification, the listener may be bound to the
application by a ApplicationInitializer packaged with the application or used as a shared library. If the
container ignores ApplicationInitializers, the listener is bound by virtue of its WebListener annotation.
In servlet containers that implement earlier versions of the specification, the listener
must be configured in the web.xml deployment descriptor.
In all cases, the implementations handles redundant configurations to the effect that only only one listener can be bound to any given application.
- Author:
- Fabio Simeoni
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplicationListener
public ApplicationListener()
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce)
- Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
- Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener
Copyright © 2013. All Rights Reserved.