public interface EventService
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(String eventType,
SHandler<SEvent> userHandler)
Add the given handler to the Event Manager's handlers list.
|
void |
fireEvent(SEvent event)
Fire the specified Event to the registered handlers.
|
Set<SHandler<SEvent>> |
getHandlers(String eventType)
Retrieve the list of all registered Handlers or the given EventType
|
boolean |
hasHandlers(String eventType,
EventActionType actionType)
Allows to check if an handler is listening to this event type
|
void |
removeAllHandlers(SHandler<SEvent> handler)
Remove the given handler from the Event Service's handlers lists.
|
void |
removeHandler(String eventType,
SHandler<SEvent> handler)
Remove the given handler from the given event type filter
|
void fireEvent(SEvent event) throws SFireEventException
event - A specific EventSFireEventExceptionboolean hasHandlers(String eventType, EventActionType actionType)
eventType - the type of the eventvoid addHandler(String eventType, SHandler<SEvent> userHandler) throws HandlerRegistrationException
eventType - The type of the event the handler is interested in.userHandler - The handler to register in the Event ManagerHandlerRegistrationExceptionvoid removeAllHandlers(SHandler<SEvent> handler) throws HandlerUnregistrationException
handler - The handler to removeHandlerUnregistrationExceptionvoid removeHandler(String eventType, SHandler<SEvent> handler) throws HandlerUnregistrationException
handler - The handler to remove from the given event typeHandlerUnregistrationExceptionCopyright © 2018 Bonitasoft S.A.. All rights reserved.