Package | Description |
---|---|
org.exoplatform.commons.api.event |
Provides the API for the event manager system.
|
org.exoplatform.commons.api.settings |
Provides the API for the Setting service.
|
org.exoplatform.services.listener |
This package provides classes to manage
Listener . |
Modifier and Type | Method and Description |
---|---|
List<Listener<S,D>> |
EventManager.getEventListeners(String type)
Gets a list of listeners which are registered into the event system based on a given event group.
|
Modifier and Type | Method and Description |
---|---|
void |
EventManager.addEventListener(Listener<S,D> listener)
Registers a listener into the event system.
|
void |
EventManager.addEventListener(String eventName,
Listener<S,D> listener)
Registers a listener for a given event group in the event system.
|
void |
EventManager.removeEventListener(Listener<S,D> listener)
Unregisters a listener out of the event system.
|
void |
EventManager.removeEventListener(String eventName,
Listener<S,D> listener)
Unregisters a listener out of a given event group in the event system.
|
Modifier and Type | Class and Description |
---|---|
class |
SettingListener
This class is registered with the SettingsService
and is invoked when an event with the same name is broadcasted.
|
Modifier and Type | Class and Description |
---|---|
protected class |
ListenerService.AsynchronousListener<S,D>
This AsynchronousListener is a wrapper for original listener, that
executes wrapped listeners onEvent() in separate thread.
|
Modifier and Type | Method and Description |
---|---|
void |
ListenerService.addListener(Listener listener)
This method is used to register a
Listener to the events of the same
name. |
void |
ListenerService.addListener(String eventName,
Listener listener)
This method is used to register a new
Listener . |
Constructor and Description |
---|
AsynchronousListener(Listener<S,D> listener) |
RunListener(Listener<S,D> listener,
org.exoplatform.services.listener.Event<S,D> event) |
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.