public class DefaultRunService extends AbstractHandlerService<Object,CodeRunner> implements RunService
CodeRunner
plugins.Constructor and Description |
---|
DefaultRunService() |
Modifier and Type | Method and Description |
---|---|
Class<CodeRunner> |
getPluginType()
Gets the type of plugins managed by this service.
|
Class<Object> |
getType()
Gets the type associated with the object.
|
void |
run(Object code,
Map<String,Object> inputMap)
Executes the given code using the most appropriate handler, passing the
arguments in the specified map as inputs.
|
void |
run(Object code,
Object... args)
Executes the given code using the most appropriate handler, passing the
specified arguments as inputs.
|
getHandler, supports
create, filterInstances, getInstance, getInstances, initialize
getPlugins, getPluginService
dispose, getContext, registerEventHandlers, setContext, toString
compareTo, getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getHandler, getInstances, supports
getInstance
create, getPlugins, getPluginService
initialize, registerEventHandlers
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
dispose
public void run(Object code, Object... args) throws InvocationTargetException
RunService
run
in interface RunService
InvocationTargetException
public void run(Object code, Map<String,Object> inputMap) throws InvocationTargetException
RunService
run
in interface RunService
InvocationTargetException
public Class<CodeRunner> getPluginType()
PTService
getPluginType
in interface PTService<CodeRunner>
Copyright © 2009–2016 SciJava. All rights reserved.