Package org.rribbit.execution
Class SequentialListenerObjectExecutor
java.lang.Object
org.rribbit.execution.AbstractListenerObjectExecutor
org.rribbit.execution.SequentialListenerObjectExecutor
- All Implemented Interfaces:
ListenerObjectExecutor
This
AbstractListenerObjectExecutor executes the ListenerObjects one after the other in the Thread of the caller.- Author:
- G.J. Schouten
-
Nested Class Summary
Nested classes/interfaces inherited from class org.rribbit.execution.AbstractListenerObjectExecutor
AbstractListenerObjectExecutor.ExecutionResult, AbstractListenerObjectExecutor.ObjectResult, AbstractListenerObjectExecutor.ThrowableResult, AbstractListenerObjectExecutor.VoidResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoExecuteListeners(Collection<ListenerObject> listenerObjects, Object... parameters) This method should callAbstractListenerObjectExecutor.executeSingleListenerObject(ListenerObject, Object...)on eachListenerObject, accumulate the results, and return.Methods inherited from class org.rribbit.execution.AbstractListenerObjectExecutor
executeListeners, executeSingleListenerObject
-
Constructor Details
-
SequentialListenerObjectExecutor
public SequentialListenerObjectExecutor()
-
-
Method Details
-
doExecuteListeners
protected Collection<AbstractListenerObjectExecutor.ExecutionResult> doExecuteListeners(Collection<ListenerObject> listenerObjects, Object... parameters) Description copied from class:AbstractListenerObjectExecutorThis method should callAbstractListenerObjectExecutor.executeSingleListenerObject(ListenerObject, Object...)on eachListenerObject, accumulate the results, and return. Typical implementations do this either sequentially, or multi-threaded.- Specified by:
doExecuteListenersin classAbstractListenerObjectExecutor- Parameters:
listenerObjects-parameters-- Returns:
- a
Collectionwith theAbstractListenerObjectExecutor.ExecutionResults of the givenListenerObjects or an emptyCollectionif there are no results, never returns null
-