Package org.alfresco.event.sdk.handling
Class EventHandlingRegistry
java.lang.Object
org.alfresco.event.sdk.handling.EventHandlingRegistry
Register for
EventHandler instances. The event handlers are internally stored in a Map which key is an event type and its value a list of the
event handlers registered for that type.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEventHandlers(org.alfresco.repo.event.v1.model.RepoEvent repoEvent) Get the list of event handlers that correspond to a specificRepoEvent.
-
Constructor Details
-
EventHandlingRegistry
Constructor.- Parameters:
eventHandlers- given list of event handlers to add to the registry
-
-
Method Details
-
getEventHandlers
Get the list of event handlers that correspond to a specificRepoEvent. The event type determines the list of handlers to provide.- Parameters:
repoEvent- givenRepoEventto get its handlers- Returns:
- the
ListofEventHandlers registered for the corresponding event type
-