org.apache.catalina

Class 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.

Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $

Author: Craig R. McClanahan

Constructor Summary
LifecycleEvent(Lifecycle lifecycle, String type)
Construct a new LifecycleEvent with the specified parameters.
LifecycleEvent(Lifecycle lifecycle, String type, Object data)
Construct a new LifecycleEvent with the specified parameters.
Method Summary
ObjectgetData()
Return the event data of this event.
LifecyclegetLifecycle()
Return the Lifecycle on which this event occurred.
StringgetType()
Return the event type of this event.

Constructor Detail

LifecycleEvent

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)

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.
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.