Package org.alfresco.event.sdk.handling
Class SimpleEventHandlingExecutor
- java.lang.Object
-
- org.alfresco.event.sdk.handling.SimpleEventHandlingExecutor
-
- All Implemented Interfaces:
EventHandlingExecutor
public class SimpleEventHandlingExecutor extends Object implements EventHandlingExecutor
Simple implementation ofEventHandlingExecutorthat usesEventHandlingRegistryto get theListofEventHandlers to execute based on the event type and after that executes the handling method for each of them whenever theEventFiltercondition is fulfilled by the event.
-
-
Constructor Summary
Constructors Constructor Description SimpleEventHandlingExecutor(EventHandlingRegistry eventHandlingRegistry)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecuteEventHandlers(RepoEvent<DataAttributes<Resource>> repoEvent)Execute the event handlers that correspond to a specificRepoEvent.
-
-
-
Constructor Detail
-
SimpleEventHandlingExecutor
public SimpleEventHandlingExecutor(EventHandlingRegistry eventHandlingRegistry)
Constructor.- Parameters:
eventHandlingRegistry- givenEventHandlingRegistry
-
-
Method Detail
-
executeEventHandlers
public void executeEventHandlers(RepoEvent<DataAttributes<Resource>> repoEvent)
Description copied from interface:EventHandlingExecutorExecute the event handlers that correspond to a specificRepoEvent.- Specified by:
executeEventHandlersin interfaceEventHandlingExecutor- Parameters:
repoEvent- givenRepoEventto be handled
-
-