FileDocCategorySizeDatePackage
LifecycleEvent.javaAPI DocGlassfish v2 API4183Fri May 04 22:31:52 BST 2007org.apache.catalina

LifecycleEvent

public final class LifecycleEvent extends EventObject
General event for notifying listeners of significant changes on a component that implements the Lifecycle interface. In particular, this will be useful on Containers, where these events replace the ContextInterceptor concept in Tomcat 3.x.
author
Craig R. McClanahan
version
$Revision: 1.3 $ $Date: 2007/05/05 05:31:51 $

Fields Summary
private Object
data
The event data associated with this event.
private Lifecycle
lifecycle
The Lifecycle on which this event occurred.
private String
type
The event type this instance represents.
Constructors Summary
public LifecycleEvent(Lifecycle lifecycle, String type)
Construct a new LifecycleEvent with the specified parameters.

param
lifecycle Component on which this event occurred
param
type Event type (required)


        this(lifecycle, type, null);

    
public LifecycleEvent(Lifecycle lifecycle, String type, Object data)
Construct a new LifecycleEvent with the specified parameters.

param
lifecycle Component on which this event occurred
param
type Event type (required)
param
data Event data (if any)


        super(lifecycle);
        this.lifecycle = lifecycle;
        this.type = type;
        this.data = data;

    
Methods Summary
public java.lang.ObjectgetData()
Return the event data of this event.



    // ------------------------------------------------------------- Properties


                
       

        return (this.data);

    
public LifecyclegetLifecycle()
Return the Lifecycle on which this event occurred.


        return (this.lifecycle);

    
public java.lang.StringgetType()
Return the event type of this event.


        return (this.type);