public interface LifecycleItem
| Modifier and Type | Method and Description |
|---|---|
void |
shutdown(LifecycleContext context)
Called on application shutdown
|
void |
startup(LifecycleContext context)
Called on application startup.
|
void startup(LifecycleContext context) throws Exception
context - the application's lifecycle contextException - 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.void shutdown(LifecycleContext context) throws Exception
context - the application's lifecycle contextException - 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–2024 Atlassian. All rights reserved.