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() |
protected OperationContext |
getContext(EventContext ectx) |
List<EventHandler> |
getEventHandlers(String eventId) |
List<EventHandler> |
getPostCommitEventHandlers(String eventId) |
Set<String> |
getPostCommitEventNames() |
void |
handleEvent(Event event,
List<EventHandler> handlers,
boolean saveSession) |
protected OperationContext |
open(Event event) |
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)
protected OperationContext open(Event event)
public void handleEvent(Event event, List<EventHandler> handlers, boolean saveSession)
protected OperationContext getContext(EventContext ectx)
Copyright © 2018 Nuxeo. All rights reserved.