Package org.alfresco.event.sdk.handling
Class EventHandlingRegistry
- java.lang.Object
-
- org.alfresco.event.sdk.handling.EventHandlingRegistry
-
public class EventHandlingRegistry extends Object
Register forEventHandlerinstances. The event handlers are internally stored in aMapwhich key is an event type and its value a list of the event handlers registered for that type.
-
-
Constructor Summary
Constructors Constructor Description EventHandlingRegistry(List<EventHandler> eventHandlers)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<EventHandler>getEventHandlers(RepoEvent repoEvent)Get the list of event handlers that correspond to a specificRepoEvent.
-
-
-
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 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
-
-