|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LifecycleItem
| Method Summary | |
|---|---|
void |
shutdown(LifecycleContext context)
Called on application shutdown |
void |
startup(LifecycleContext context)
Called on application startup. |
| Method Detail |
|---|
void startup(LifecycleContext context)
throws Exception
context - the application's lifecycle context
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.
void shutdown(LifecycleContext context)
throws Exception
context - the application's lifecycle context
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||