org.apache.catalina
Class LifecycleEvent
EventObject
org.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.
Version:
- Craig R. McClanahan
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.
|
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.
|
LifecycleEvent
public LifecycleEvent(Lifecycle lifecycle,
String type)
Construct a new LifecycleEvent with the specified parameters.
lifecycle
- Component on which this event occurredtype
- Event type (required)
LifecycleEvent
public LifecycleEvent(Lifecycle lifecycle,
String type,
Object data)
Construct a new LifecycleEvent with the specified parameters.
lifecycle
- Component on which this event occurredtype
- Event type (required)data
- Event data (if any)
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 B) 2000-2003 Apache Software Foundation. All Rights Reserved.