public class CRUDLifecycleSupport<M> extends Object
| Constructor and Description |
|---|
CRUDLifecycleSupport(CRUDLifecycle<M> crudlifecycle)
Constructs a new LifecycleHelper object associated with the specified
Lifecycle component.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCRUDLifecycleListener(CRUDLifecycleListener<M> listener)
Add a Lifecycle event listener to this component
|
void |
broadcastEvent(String type,
M data)
Notify all CRUDLifecycle event listeners that a particular event has
occurred for this Container.
|
CRUDLifecycleListener<M>[] |
findCRUDLifecycleListeners()
Get the crud lifecycle listeners associated with this lifecycle.
|
void |
removeCRUDLifecycleListener(CRUDLifecycleListener<M> listener)
Remove a CRUDLifecycle event listener which was registered to component
|
public CRUDLifecycleSupport(CRUDLifecycle<M> crudlifecycle)
crudlifecycle - public void addCRUDLifecycleListener(CRUDLifecycleListener<M> listener)
listener - The listener is added.public void broadcastEvent(String type, M data)
type - Event typedata - Event datapublic void removeCRUDLifecycleListener(CRUDLifecycleListener<M> listener)
listener - The listener will be removed.public CRUDLifecycleListener<M>[] findCRUDLifecycleListeners()
Copyright © 2011–2016 eXo Platform SAS. All rights reserved.