Top Description Fields Constructors Methods
org.apache.catalina

public final Class LifecycleEvent

extends EventObject
Class Inheritance
Imports
java.util.EventObject

General event for notifying listeners of significant changes on a component that implements the Lifecycle interface.
Author
Craig R. McClanahan

Field Summary

Modifier and TypeField and Description
private final Object
data

The event data associated with this event.

private static final long
private final String
type

The event type this instance represents.

Inherited from java.util.EventObject:
source

Constructor Summary

AccessConstructor and Description
public
LifecycleEvent(Lifecycle
Component on which this event occurred
lifecycle
,
String
Event type (required)
type
,
Object
Event data (if any)
data
)

Construct a new LifecycleEvent with the specified parameters.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the event data of this event.
getData
()

public Lifecycle

Returns:

the Lifecycle on which this event occurred.
getLifecycle
()

public String

Returns:

the event type of this event.
getType
()

Inherited from java.util.EventObject:
getSourcetoString

Field Detail

databack to summary
private final Object data

The event data associated with this event.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.EventObject.serialVersionUID.

typeback to summary
private final String type

The event type this instance represents.

Constructor Detail

LifecycleEventback to summary
public LifecycleEvent(Lifecycle lifecycle, String type, Object data)

Construct a new LifecycleEvent with the specified parameters.

Parameters
lifecycle:Lifecycle

Component on which this event occurred

type:String

Event type (required)

data:Object

Event data (if any)

Method Detail

getDataback to summary
public Object getData()
Returns:Object

the event data of this event.

getLifecycleback to summary
public Lifecycle getLifecycle()
Returns:Lifecycle

the Lifecycle on which this event occurred.

getTypeback to summary
public String getType()
Returns:String

the event type of this event.