@Deprecated public final class LifecycleSupport extends Object
Constructor and Description |
---|
LifecycleSupport(Lifecycle lifecycle)
Deprecated.
Construct a new LifecycleSupport object associated with the specified
Lifecycle component.
|
Modifier and Type | Method and Description |
---|---|
void |
addLifecycleListener(LifecycleListener listener)
Deprecated.
Add a lifecycle event listener to this component.
|
LifecycleListener[] |
findLifecycleListeners()
Deprecated.
Get the lifecycle listeners associated with this lifecycle.
|
void |
fireLifecycleEvent(String type,
Object data)
Deprecated.
Notify all lifecycle event listeners that a particular event has
occurred for this Container.
|
void |
removeLifecycleListener(LifecycleListener listener)
Deprecated.
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(String type, Object data)
type
- Event typedata
- Event datapublic void removeLifecycleListener(LifecycleListener listener)
listener
- The listener to removeCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.