Class 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 Detail

      • EventHandlingRegistry

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

      • getEventHandlers

        public List<EventHandler> getEventHandlers​(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