Sun Java System Web Server 7.0 enables you to write classes and customize various phases of the server lifecycle. For instance, you may have a startup code that ensures a remote data source is available for the applications. Such classes are notified by server lifecycle events. The Sun Java System Web Server 7.0 defines a LifecycleListener interface that users can implement and register with the Server.
The syntax of this interface is as follows public void handleEvent(LifecycleEvent event): receives a lifecycle event.
In its event parameter, the programmatic interface for LifecycleListener provides the following features to the implementation classes:
Access to initialization parameters
A handler to the server run time environment for naming, logging and accessing resources