|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.social.client.core.util.LifecycleSupport<M,L>
public final class LifecycleSupport<M,L>
This is a utility class that can be used by models that assist in firing LifecycleEvent notifications to registered LifecycleListeners and delegate various work to it
| Constructor Summary | |
|---|---|
LifecycleSupport(Lifecycle<M,L> lifecycle)
Constructs a new LifecycleHelper object associated with the specified Lifecycle component. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LifecycleSupport(Lifecycle<M,L> lifecycle)
lifecycle - | Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||