| |
|
| java.lang.Object org.apache.catalina.util.LifecycleSupport
LifecycleSupport | final public class LifecycleSupport (Code) | | Support class to assist in firing LifecycleEvent notifications to
registered LifecycleListeners.
author: Craig R. McClanahan version: $Id: LifecycleSupport.java,v 1.2 2004/02/27 14:58:50 yoavs Exp $ |
Constructor Summary | |
public | LifecycleSupport(Lifecycle lifecycle) Construct a new LifecycleSupport object associated with the specified
Lifecycle component. |
LifecycleSupport | public LifecycleSupport(Lifecycle lifecycle)(Code) | | Construct a new LifecycleSupport object associated with the specified
Lifecycle component.
Parameters: lifecycle - The Lifecycle component that will be the sourceof events that we fire |
addLifecycleListener | public void addLifecycleListener(LifecycleListener listener)(Code) | | Add a lifecycle event listener to this component.
Parameters: listener - The listener to add |
findLifecycleListeners | public LifecycleListener[] findLifecycleListeners()(Code) | | Get the lifecycle listeners associated with this lifecycle. If this
Lifecycle has no listeners registered, a zero-length array is returned.
|
fireLifecycleEvent | public void fireLifecycleEvent(String type, Object data)(Code) | | Notify all lifecycle event listeners that a particular event has
occurred for this Container. The default implementation performs
this notification synchronously using the calling thread.
Parameters: type - Event type Parameters: data - Event data |
removeLifecycleListener | public void removeLifecycleListener(LifecycleListener listener)(Code) | | Remove a lifecycle event listener from this component.
Parameters: listener - The listener to remove |
|
|
|