public final class LifecycleSupport<M,L> extends Object
| Constructor and Description |
|---|
LifecycleSupport(Lifecycle<M,L> lifecycle)
Constructs a new LifecycleHelper object associated with the specified
Lifecycle component.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLifecycleListener(LifecycleListener<M,L> listener)
Adds a Lifecycle event listener to this component.
|
void |
broadcastEvent(String type,
L data)
Notifies all Lifecycle event listeners that a particular event has occurred
for this Container.
|
LifecycleListener<M,L>[] |
findLifecycleListeners()
Gets the lifecycle listeners associated with this lifecycle.
|
void |
removeLifecycleListener(LifecycleListener<M,L> listener)
Removes a lifecycle event listener which was registered to component.
|
public void addLifecycleListener(LifecycleListener<M,L> listener)
listener - The listener is added.public void broadcastEvent(String type, L data)
type - Event typedata - Event datapublic void removeLifecycleListener(LifecycleListener<M,L> listener)
listener - The listener will be removed.public LifecycleListener<M,L>[] findLifecycleListeners()
Copyright © 2011–2016 eXo Platform SAS. All rights reserved.