com.atlassian.config.lifecycle
Class ServletContextListenerWrapper

java.lang.Object
  extended by 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.


Constructor Summary
ServletContextListenerWrapper(javax.servlet.ServletContextListener listener)
           
 
Method Summary
 javax.servlet.ServletContextListener getWrappedListener()
           
 void shutdown(LifecycleContext context)
          Called on application shutdown
 void startup(LifecycleContext context)
          Called on application startup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletContextListenerWrapper

public ServletContextListenerWrapper(javax.servlet.ServletContextListener listener)
Method Detail

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()


Atlassian Config is developed by Atlassian Software Systems.