com.atlassian.config.lifecycle
Interface LifecycleItem

All Known Implementing Classes:
DatabaseLowerPropertyCheck, ServletContextListenerWrapper

public interface LifecycleItem


Method Summary
 void shutdown(LifecycleContext context)
          Called on application shutdown
 void startup(LifecycleContext context)
          Called on application startup.
 

Method Detail

startup

void startup(LifecycleContext context)
             throws java.lang.Exception
Called on application startup.

Parameters:
context - the application's lifecycle context
Throws:
java.lang.Exception - if something goes wrong during startup. No more startup items will be run, and the application will post a fatal error, shut down all LifecycleItems that have run previously, and die horribly.

shutdown

void shutdown(LifecycleContext context)
              throws java.lang.Exception
Called on application shutdown

Parameters:
context - the application's lifecycle context
Throws:
java.lang.Exception - if something goes wrong during the shutdown process. The remaining shutdown items will still be run, but the lifecycle manager will log the error.


Copyright © 2006-2008 Atlassian Pty Ltd. All Rights Reserved.