Package org.apache.catalina
Class ContainerEvent
- java.lang.Object
- 
- java.util.EventObject
- 
- org.apache.catalina.ContainerEvent
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public final class ContainerEvent extends java.util.EventObjectGeneral event for notifying listeners of significant changes on a Container.- Author:
- Craig R. McClanahan
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description ContainerEvent(Container container, java.lang.String type, java.lang.Object data)Construct a new ContainerEvent with the specified parameters.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainergetContainer()Return the Container on which this event occurred.java.lang.ObjectgetData()Return the event data of this event.java.lang.StringgetType()Return the event type of this event.java.lang.StringtoString()Return a string representation of this event.
 
- 
- 
- 
Constructor Detail- 
ContainerEventpublic ContainerEvent(Container container, java.lang.String type, java.lang.Object data) Construct a new ContainerEvent with the specified parameters.- Parameters:
- container- Container on which this event occurred
- type- Event type
- data- Event data
 
 
- 
 - 
Method Detail- 
getDatapublic java.lang.Object getData() Return the event data of this event.- Returns:
- The data, if any, associated with this event.
 
 - 
getContainerpublic Container getContainer() Return the Container on which this event occurred.- Returns:
- The Container on which this event occurred.
 
 - 
getTypepublic java.lang.String getType() Return the event type of this event.- 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.
 
 - 
toStringpublic java.lang.String toString() Return a string representation of this event.- Overrides:
- toStringin class- java.util.EventObject
 
 
- 
 
-