Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Developer's Guide

- Previous: The LifecycleListener Interface
- Next: The Server Lifecycle Event Context

# The LifecycleEvent Class

The `com.sun.appserv.server.``LifecycleEvent` class defines a server life cycle event. The following methods are associated with the event:

- `public java.lang.Object` `getData()`

  This method returns the data associated with the event.

- `public int` `getEventType()`

  This method returns the type of the last event, which is `INIT_EVENT`, `STARTUP_EVENT`, `READY_EVENT`, `SHUTDOWN_EVENT`, or `TERMINATION_EVENT`.

- `public com.sun.appserv.server.LifecycleEventContext` `getLifecycleEventContext()`

  This method returns the lifecycle event context, described next.

A `LifecycleEvent` instance is passed to the `LifecycleListener.handleEvent` method.

- Previous: The LifecycleListener Interface
- Next: The Server Lifecycle Event Context

- © 2010, Oracle Corporation and/or its affiliates