Save This Page
Home » apache-tomcat-6.0.26-src » org.apache » catalina » [javadoc | source]
org.apache.catalina
public final class: LifecycleEvent [javadoc | source]
java.lang.Object
   java.util.EventObject
      org.apache.catalina.LifecycleEvent

All Implemented Interfaces:
    Serializable

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.
Fields inherited from java.util.EventObject:
source
Constructor:
 public LifecycleEvent(Lifecycle lifecycle,
    String type) 
    Construct a new LifecycleEvent with the specified parameters.
    Parameters:
    lifecycle - Component on which this event occurred
    type - Event type (required)
 public LifecycleEvent(Lifecycle lifecycle,
    String type,
    Object data) 
    Construct a new LifecycleEvent with the specified parameters.
    Parameters:
    lifecycle - Component on which this event occurred
    type - Event type (required)
    data - Event data (if any)
Method from org.apache.catalina.LifecycleEvent Summary:
getData,   getLifecycle,   getType
Methods from java.util.EventObject:
getSource,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.LifecycleEvent Detail:
 public Object getData() 
    Return the event data of this event.
 public Lifecycle getLifecycle() 
    Return the Lifecycle on which this event occurred.
 public String getType() 
    Return the event type of this event.