|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
com.sun.appserv.server.LifecycleEvent
public class LifecycleEvent
This class defines the types of events that get fired by the application server. It also contains a LifecycleEventContext that can be used by the lifecycle modules.
| Field Summary | |
|---|---|
static int |
INIT_EVENT
Server is initializing subsystems and setting up the runtime environment. |
static int |
READY_EVENT
Server is ready to service requests |
static int |
SHUTDOWN_EVENT
Server is shutting down applications |
static int |
STARTUP_EVENT
Server is starting up applications |
static int |
TERMINATION_EVENT
Server is terminating the subsystems and the runtime environment. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
LifecycleEvent(Object source,
int eventType,
Object eventData,
LifecycleEventContext ctx)
Construct new lifecycle event |
|
| Method Summary | |
|---|---|
Object |
getData()
Get the data associated with the event. |
int |
getEventType()
Get the type of event associated with this |
LifecycleEventContext |
getLifecycleEventContext()
Get the ServerContext generating this lifecycle event |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int INIT_EVENT
public static final int STARTUP_EVENT
public static final int READY_EVENT
public static final int SHUTDOWN_EVENT
public static final int TERMINATION_EVENT
| Constructor Detail |
|---|
public LifecycleEvent(Object source,
int eventType,
Object eventData,
LifecycleEventContext ctx)
source - The object on which the event initially occurredeventType - type of the eventctx - the underlying context for the lifecycle event| Method Detail |
|---|
public int getEventType()
public Object getData()
public LifecycleEventContext getLifecycleEventContext()
|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved.