Save This Page
Home » apache-tomcat-6.0.26-src » org.apache » catalina » util » [javadoc | source]
org.apache.catalina.util
public final class: LifecycleSupport [javadoc | source]
java.lang.Object
   org.apache.catalina.util.LifecycleSupport
Support class to assist in firing LifecycleEvent notifications to registered LifecycleListeners.
Constructor:
 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
Method from org.apache.catalina.util.LifecycleSupport Summary:
addLifecycleListener,   findLifecycleListeners,   fireLifecycleEvent,   removeLifecycleListener
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.util.LifecycleSupport Detail:
 public  void addLifecycleListener(LifecycleListener listener) 
    Add a lifecycle event listener to this component.
 public LifecycleListener[] findLifecycleListeners() 
    Get the lifecycle listeners associated with this lifecycle. If this Lifecycle has no listeners registered, a zero-length array is returned.
 public  void fireLifecycleEvent(String type,
    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.
 public  void removeLifecycleListener(LifecycleListener listener) 
    Remove a lifecycle event listener from this component.