FileDocCategorySizeDatePackage
LifecycleEvent.javaAPI DocGlassfish v2 API4045Fri May 04 22:32:54 BST 2007com.sun.appserv.server

LifecycleEvent

public class LifecycleEvent extends EventObject
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.

Fields Summary
private int
eventType
private Object
eventData
private LifecycleEventContext
ctx
public static final int
INIT_EVENT
Server is initializing subsystems and setting up the runtime environment.
public static final int
STARTUP_EVENT
Server is starting up applications
public static final int
READY_EVENT
Server is ready to service requests
public static final int
SHUTDOWN_EVENT
Server is shutting down applications
public static final int
TERMINATION_EVENT
Server is terminating the subsystems and the runtime environment.
Constructors Summary
public LifecycleEvent(Object source, int eventType, Object eventData, LifecycleEventContext ctx)
Construct new lifecycle event

param
source The object on which the event initially occurred
param
eventType type of the event
param
ctx the underlying context for the lifecycle event

 

    
                                      
             
        super(source);

        this.eventType = eventType;
        this.eventData = eventData;
        this.ctx = ctx;
    
Methods Summary
public java.lang.ObjectgetData()
Get the data associated with the event.

        return eventData;
    
public intgetEventType()
Get the type of event associated with this

        return eventType;
    
public LifecycleEventContextgetLifecycleEventContext()
Get the ServerContext generating this lifecycle event

        return ctx;