public class ModuleRunner extends AbstractContextual implements Callable<Module>, Runnable
Module
, including pre- and
post-processing and event notification.
This class implements both Runnable
and Callable
, to make it
easier to invoke in a variety of ways, such as with the
java.util.concurrent
package.
Constructor and Description |
---|
ModuleRunner(Context context,
Module module,
List<? extends ModulePreprocessor> pre,
List<? extends ModulePostprocessor> post) |
Modifier and Type | Method and Description |
---|---|
Module |
call() |
void |
postProcess()
Feeds the module through the
ModulePostprocessor s. |
ModulePreprocessor |
preProcess()
Feeds the module through the
ModulePreprocessor s. |
void |
run()
Executes the module, including pre- and post-processing and event
notification.
|
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setContext
public ModuleRunner(Context context, Module module, List<? extends ModulePreprocessor> pre, List<? extends ModulePostprocessor> post)
public ModulePreprocessor preProcess()
ModulePreprocessor
s.public void postProcess()
ModulePostprocessor
s.Copyright © 2015–2022 SciJava. All rights reserved.