Interface LifecycleListener
-
public interface LifecycleListenerlifecycle modules implementcom.sun.appserv.server.LifecycleListenerinterface. There is just one method in this interface:handleEvent()which posts server lifecycle events to the lifecycle modules.Upon start up, before initializing its subsystems application server posts lifcycle modules the
INIT_EVENT. This is followed by server posting theSTARTUP_EVENTto the lifecycle modules upon which server starts loading and initializaing the applications. Once this phase is completed, theREADY_EVENTis posted to the lifecycle modules.When the server is shutdown, server posts the
SHUTDOWN_EVENTto the lifecycle modules and then shuts down the applications and subsystems. Once this phase is completed theTERMINATION_EVENTis posted.Note that lifecycle modules may obtain the event specific data by calling
getData()on the event parameter in thehandleEvent(). For the INIT_EVENT event,getData()returns the lifecycle module's properties configured in server.xml.When
is-failure-fatalin server.xml is set totrue, all exceptions from the lifecycle modules are treated as fatal conditions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandleEvent(LifecycleEvent event)receive a server lifecycle event
-
-
-
Method Detail
-
handleEvent
void handleEvent(LifecycleEvent event) throws ServerLifecycleException
receive a server lifecycle event- Parameters:
event- associated event- Throws:
ServerLifecycleException
-
-