FileDocCategorySizeDatePackage
LifecycleEvent.javaAPI DocApache Tomcat 6.0.143147Fri Jul 20 04:20:32 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: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $

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);