LifecycleEventpublic 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. |
Fields Summary |
---|
private Object | dataThe event data associated with this event. | private Lifecycle | lifecycleThe Lifecycle on which this event occurred. | private String | typeThe event type this instance represents. |
Constructors Summary |
---|
public LifecycleEvent(Lifecycle lifecycle, String type)Construct a new LifecycleEvent with the specified parameters.
this(lifecycle, type, null);
| public LifecycleEvent(Lifecycle lifecycle, String type, Object data)Construct a new LifecycleEvent with the specified parameters.
super(lifecycle);
this.lifecycle = lifecycle;
this.type = type;
this.data = data;
|
Methods Summary |
---|
public java.lang.Object | getData()Return the event data of this event.
// ------------------------------------------------------------- Properties
return (this.data);
| public Lifecycle | getLifecycle()Return the Lifecycle on which this event occurred.
return (this.lifecycle);
| public java.lang.String | getType()Return the event type of this event.
return (this.type);
|
|