Class EventHandlingRegistry

java.lang.Object
org.alfresco.event.sdk.handling.EventHandlingRegistry

public class EventHandlingRegistry extends Object
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 Details

    • EventHandlingRegistry

      public EventHandlingRegistry(List<EventHandler> eventHandlers)
      Constructor.
      Parameters:
      eventHandlers - given list of event handlers to add to the registry
  • Method Details

    • getEventHandlers

      public List<EventHandler> getEventHandlers(org.alfresco.repo.event.v1.model.RepoEvent repoEvent)
      Get the list of event handlers that correspond to a specific RepoEvent. The event type determines the list of handlers to provide.
      Parameters:
      repoEvent - given RepoEvent to get its handlers
      Returns:
      the List of EventHandlers registered for the corresponding event type