public interface CodeRunner extends HandlerPlugin<Object>
RunService's execution handling. A
CodeRunnerknows how to execute code of a certain form, such as the
mainmethod of a Java
Class, or an
Code runner plugins discoverable at runtime must implement this interface
and be annotated with @
Plugin with attribute
CodeRunner.class. While it possible to create a class runner plugin
merely by implementing this interface, it is encouraged to instead extend
AbstractCodeRunner, for convenience.
|Modifier and Type||Method and Description|
Gets the type associated with the object.
Executes the code identified by the given object, passing the arguments in the specified map as inputs.
Executes the code identified by the given object, passing the specified arguments as inputs.
void run(Object code, Object... args) throws InvocationTargetException
void run(Object code, Map<String,Object> inputMap) throws InvocationTargetException
Copyright © 2015–2017 SciJava. All rights reserved.