org.apache.catalina.util
Class LifecycleSupport
java.lang.Object
|
+--org.apache.catalina.util.LifecycleSupport
- public final class LifecycleSupport
- extends java.lang.Object
Support class to assist in firing LifecycleEvent notifications to
registered LifecycleListeners.
- Version:
- $Id: LifecycleSupport.java,v 1.2 2001/07/22 20:25:13 pier Exp $
- Author:
- Craig R. McClanahan
Constructor Summary |
LifecycleSupport(Lifecycle lifecycle)
Construct a new LifecycleSupport object associated with the specified
Lifecycle component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LifecycleSupport
public LifecycleSupport(Lifecycle lifecycle)
- Construct a new LifecycleSupport object associated with the specified
Lifecycle component.
- Parameters:
lifecycle
- The Lifecycle component that will be the source
of events that we fire
addLifecycleListener
public void addLifecycleListener(LifecycleListener listener)
- Add a lifecycle event listener to this component.
- Parameters:
listener
- The listener to add
fireLifecycleEvent
public void fireLifecycleEvent(java.lang.String type,
java.lang.Object data)
- 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 typedata
- Event data
removeLifecycleListener
public void removeLifecycleListener(LifecycleListener listener)
- Remove a lifecycle event listener from this component.
- Parameters:
listener
- The listener to remove
Copyright © 2000-2001 Apache Software Foundation. All Rights Reserved.