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 ListenerObject
s 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
-
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:AbstractListenerObjectExecutor
This method should callAbstractListenerObjectExecutor.executeSingleListenerObject(ListenerObject, Object...)
on eachListenerObject
, accumulate the results, and return. Typical implementations do this either sequentially, or multi-threaded.- Specified by:
doExecuteListeners
in classAbstractListenerObjectExecutor
- Parameters:
listenerObjects
-parameters
-- Returns:
- a
Collection
with theAbstractListenerObjectExecutor.ExecutionResult
s of the givenListenerObject
s or an emptyCollection
if there are no results, never returns null
-