Top Description Fields Constructors Methods
org.apache.catalina

public final Class ContainerEvent

extends EventObject
Class Inheritance
Imports
java.util.EventObject

General event for notifying listeners of significant changes on a Container.
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
ContainerEvent(Container
Container on which this event occurred
container
,
String
Event type
type
,
Object
Event data
data
)

Construct a new ContainerEvent with the specified parameters.

Method Summary

Modifier and TypeMethod and Description
public Container

Returns:

The Container on which this event occurred.
getContainer
()

Return the Container on which this event occurred.

public Object

Returns:

The data, if any, associated with this event.
getData
()

Return the event data of this event.

public String

Returns:

The event type of this event. Although this is a String, it is safe to rely on the value returned by this method remaining consistent between point releases.
getType
()

Return the event type of this event.

public String
toString()

Overrides java.util.EventObject.toString.

Return a string representation of this event.

Inherited from java.util.EventObject:
getSource

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

ContainerEventback to summary
public ContainerEvent(Container container, String type, Object data)

Construct a new ContainerEvent with the specified parameters.

Parameters
container:Container

Container on which this event occurred

type:String

Event type

data:Object

Event data

Method Detail

getContainerback to summary
public Container getContainer()

Return the Container on which this event occurred.

Returns:Container

The Container on which this event occurred.

getDataback to summary
public Object getData()

Return the event data of this event.

Returns:Object

The data, if any, associated with this event.

getTypeback to summary
public String getType()

Return the event type of this event.

Returns:String

The event type of this event. Although this is a String, it is safe to rely on the value returned by this method remaining consistent between point releases.

toStringback to summary
public String toString()

Overrides java.util.EventObject.toString.

Return a string representation of this event.

Returns:String

Doc from java.util.EventObject.toString.

a String representation of this EventObject

Annotations
@Override