Package org.scijava.run
Interface RunService
-
- All Superinterfaces:
Comparable<Prioritized>,Contextual,Disposable,HandlerService<Object,CodeRunner>,HasPluginInfo,Identifiable,Initializable,Locatable,Logged,Prioritized,PTService<CodeRunner>,RichPlugin,SciJavaPlugin,SciJavaService,Service,SingletonService<CodeRunner>,Typed<Object>,TypedService<Object,CodeRunner>,Versioned
- All Known Implementing Classes:
DefaultRunService
public interface RunService extends HandlerService<Object,CodeRunner>, SciJavaService
Interface for service that manages availableCodeRunnerplugins.- Author:
- Curtis Rueden
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Class<CodeRunner>getPluginType()Gets the type of plugins managed by this service.default Class<Object>getType()Gets the type associated with the object.default voidrun(Object code, Object... args)Executes the given code using the most appropriate handler, passing the specified arguments as inputs.default voidrun(Object code, Map<String,Object> inputMap)Executes the given code using the most appropriate handler, passing the arguments in the specified map as inputs.-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface org.scijava.Disposable
dispose
-
Methods inherited from interface org.scijava.plugin.HandlerService
getHandler, getInstances, supports
-
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
-
Methods inherited from interface org.scijava.Locatable
getLocation
-
Methods inherited from interface org.scijava.Prioritized
compareTo, getPriority, setPriority
-
Methods inherited from interface org.scijava.plugin.PTService
getPlugins, getPluginService, pluginService
-
Methods inherited from interface org.scijava.plugin.RichPlugin
getIdentifier, log
-
Methods inherited from interface org.scijava.service.Service
registerEventHandlers
-
Methods inherited from interface org.scijava.plugin.SingletonService
create, filterInstances, getInstance, initialize, objectService
-
Methods inherited from interface org.scijava.plugin.TypedService
find
-
Methods inherited from interface org.scijava.Versioned
getVersion
-
-
-
-
Method Detail
-
run
default void run(Object code, Object... args) throws InvocationTargetException
Executes the given code using the most appropriate handler, passing the specified arguments as inputs.- Throws:
InvocationTargetException
-
run
default void run(Object code, Map<String,Object> inputMap) throws InvocationTargetException
Executes the given code using the most appropriate handler, passing the arguments in the specified map as inputs.- Throws:
InvocationTargetException
-
getPluginType
default Class<CodeRunner> getPluginType()
Description copied from interface:PTServiceGets the type of plugins managed by this service.- Specified by:
getPluginTypein interfacePTService<CodeRunner>
-
-