|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.scijava.AbstractContextual
org.scijava.module.ModuleRunner
public class ModuleRunner
Helper class for executing a 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 Summary | |
---|---|
ModuleRunner(Context context,
Module module,
List<? extends ModulePreprocessor> pre,
List<? extends ModulePostprocessor> post)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.scijava.AbstractContextual |
---|
context, getContext, setContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModuleRunner(Context context, Module module, List<? extends ModulePreprocessor> pre, List<? extends ModulePostprocessor> post)
Method Detail |
---|
public ModulePreprocessor preProcess()
ModulePreprocessor
s.
public void postProcess()
ModulePostprocessor
s.
public Module call()
call
in interface Callable<Module>
public void run()
run
in interface Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |