public class EventHandlerRegistry extends Object
Modifier and Type | Field and Description |
---|---|
protected EventRegistry |
handlers |
protected EventRegistry |
pchandlers |
protected AutomationService |
svc |
Constructor and Description |
---|
EventHandlerRegistry(AutomationService svc) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptEvent(Event event,
List<EventHandler> handlers) |
void |
clear() |
List<EventHandler> |
getEventHandlers(String eventId) |
List<EventHandler> |
getPostCommitEventHandlers(String eventId) |
Set<String> |
getPostCommitEventNames() |
void |
handleEvent(Event event,
List<EventHandler> handlers,
boolean saveSession) |
void |
putEventHandler(EventHandler handler) |
void |
putPostCommitEventHandler(EventHandler handler) |
void |
removeEventHandler(EventHandler handler) |
void |
removePostCommitEventHandler(EventHandler handler) |
protected final AutomationService svc
protected EventRegistry handlers
protected EventRegistry pchandlers
public EventHandlerRegistry(AutomationService svc)
public List<EventHandler> getEventHandlers(String eventId)
public List<EventHandler> getPostCommitEventHandlers(String eventId)
public void putEventHandler(EventHandler handler)
public void putPostCommitEventHandler(EventHandler handler)
public void removePostCommitEventHandler(EventHandler handler)
public void removeEventHandler(EventHandler handler)
public void clear()
public Set<String> getPostCommitEventNames()
public boolean acceptEvent(Event event, List<EventHandler> handlers)
public void handleEvent(Event event, List<EventHandler> handlers, boolean saveSession)
Copyright © 2015 Nuxeo SA. All rights reserved.