Package org.scijava.task
Class DefaultTaskService
- java.lang.Object
-
- org.scijava.AbstractContextual
-
- org.scijava.plugin.AbstractRichPlugin
-
- org.scijava.service.AbstractService
-
- org.scijava.task.DefaultTaskService
-
- All Implemented Interfaces:
Comparable<Prioritized>,Contextual,Disposable,Identifiable,Initializable,Locatable,Logged,HasPluginInfo,RichPlugin,SciJavaPlugin,Prioritized,SciJavaService,Service,TaskService,Versioned
public class DefaultTaskService extends AbstractService implements TaskService
Default implementation ofTaskService.- Author:
- Curtis Rueden
-
-
Constructor Summary
Constructors Constructor Description DefaultTaskService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskcreateTask(String name)Creates a new, emptyTask.-
Methods inherited from class org.scijava.service.AbstractService
getContext, setContext, toString
-
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
getInfo, getPriority, setInfo, setPriority
-
Methods inherited from class org.scijava.AbstractContextual
context
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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.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.RichPlugin
getIdentifier, log
-
Methods inherited from interface org.scijava.service.Service
initialize, registerEventHandlers
-
Methods inherited from interface org.scijava.Versioned
getVersion
-
-
-
-
Method Detail
-
createTask
public Task createTask(String name)
Description copied from interface:TaskServiceCreates a new, emptyTask. It is the responsibility of the caller to then launch the task via theTask.run(Runnable)method.- Specified by:
createTaskin interfaceTaskService- Parameters:
name- The task's name, to differentiate it from others.- Returns:
- A newly created task which awaits execution.
-
-