com.atlassian.config.lifecycle
Class ServletContextListenerWrapper
java.lang.Object
com.atlassian.config.lifecycle.ServletContextListenerWrapper
- All Implemented Interfaces:
- LifecycleItem
public class ServletContextListenerWrapper
- extends Object
- implements LifecycleItem
Wrapper to convert a ServletContextListener into a LifecycleItem. This makes it easy to move code designed to run
from web.xml into the lifecycle system.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletContextListenerWrapper
public ServletContextListenerWrapper(javax.servlet.ServletContextListener listener)
startup
public void startup(LifecycleContext context)
- Description copied from interface:
LifecycleItem
- Called on application startup.
- Specified by:
startup
in interface LifecycleItem
- Parameters:
context
- the application's lifecycle context
shutdown
public void shutdown(LifecycleContext context)
- Description copied from interface:
LifecycleItem
- Called on application shutdown
- Specified by:
shutdown
in interface LifecycleItem
- Parameters:
context
- the application's lifecycle context
getWrappedListener
public javax.servlet.ServletContextListener getWrappedListener()