public final class LifecycleSupport
extends java.lang.Object
| Constructor and Description | 
|---|
| LifecycleSupport(Lifecycle lifecycle)Construct a new LifecycleSupport object associated with the specified
Lifecycle component. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addLifecycleListener(LifecycleListener listener)Add a lifecycle event listener to this component. | 
| LifecycleListener[] | findLifecycleListeners()Get the lifecycle listeners associated with this lifecycle. | 
| void | fireLifecycleEvent(java.lang.String type,
java.lang.Object data)Notify all lifecycle event listeners that a particular event has
occurred for this Container. | 
| void | removeLifecycleListener(LifecycleListener listener)Remove a lifecycle event listener from this component. | 
public LifecycleSupport(Lifecycle lifecycle)
lifecycle - The Lifecycle component that will be the source
of events that we firepublic void addLifecycleListener(LifecycleListener listener)
listener - The listener to addpublic LifecycleListener[] findLifecycleListeners()
public void fireLifecycleEvent(java.lang.String type,
                      java.lang.Object data)
type - Event typedata - Event datapublic void removeLifecycleListener(LifecycleListener listener)
listener - The listener to removeCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.