Class EventHandlerRegistry
java.lang.Object
org.nuxeo.ecm.automation.core.events.EventHandlerRegistry
TODO: This service should be moved in another project, and renamed since it's a service, not a simple registry...
- Author:
- Bogdan Stefanescu
-
Field Summary
Modifier and TypeFieldDescriptionprotected EventRegistry
protected EventRegistry
protected final AutomationService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
acceptEvent
(Event event, List<EventHandler> handlers) void
clear()
protected OperationContext
getContext
(EventContext ectx) getEventHandlers
(String eventId) getPostCommitEventHandlers
(String eventId) void
handleEvent
(Event event, List<EventHandler> handlers, boolean saveSession) protected OperationContext
void
putEventHandler
(EventHandler handler) void
putPostCommitEventHandler
(EventHandler handler) void
removeEventHandler
(EventHandler handler) void
removePostCommitEventHandler
(EventHandler handler)
-
Field Details
-
svc
-
handlers
-
pchandlers
-
-
Constructor Details
-
EventHandlerRegistry
-
-
Method Details
-
getEventHandlers
-
getPostCommitEventHandlers
-
putEventHandler
-
putPostCommitEventHandler
-
removePostCommitEventHandler
-
removeEventHandler
-
clear
public void clear() -
getPostCommitEventNames
-
acceptEvent
-
open
-
handleEvent
-
getContext
-