public abstract class AbstractLifeCycle<T extends LifeCycleListener<E>,E extends LifeCycleEvent<?,?>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected LifeCycleCompletionService |
completionService |
protected org.exoplatform.container.PortalContainer |
container |
protected Set<T> |
listeners |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLifeCycle() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(T listener) |
protected void |
begin() |
protected void |
broadcast(E event)
Broadcasts an event to the registered listeners.
|
protected abstract void |
dispatchEvent(T listener,
E event) |
protected void |
end() |
void |
removeListener(T listener) |
protected Set<T extends LifeCycleListener<E>> listeners
protected final org.exoplatform.container.PortalContainer container
protected LifeCycleCompletionService completionService
public void addListener(T listener)
public void removeListener(T listener)
protected void broadcast(E event)
event - dispatchEvent(LifeCycleListener, LifeCycleEvent)protected void begin()
protected void end()
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.