Apache Tomcat 7.0.28

org.apache.catalina
Class LifecycleEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.apache.catalina.LifecycleEvent
All Implemented Interfaces:
Serializable

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.

Version:
$Id: LifecycleEvent.java 1200160 2011-11-10 05:35:13Z kkolinko $
Author:
Craig R. McClanahan
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
LifecycleEvent(Lifecycle lifecycle, String type, Object data)
          Construct a new LifecycleEvent with the specified parameters.
 
Method Summary
 Object getData()
          Return the event data of this event.
 Lifecycle getLifecycle()
          Return the Lifecycle on which this event occurred.
 String getType()
          Return the event type of this 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
 

Constructor Detail

LifecycleEvent

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 Detail

getData

public Object getData()
Return the event data of this event.


getLifecycle

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


getType

public String getType()
Return the event type of this event.


Apache Tomcat 7.0.28

Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.