public class DefaultMainService extends AbstractService implements MainService
MainService.MainService.Main| Constructor and Description |
|---|
DefaultMainService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMain(String className,
String... args)
Registers a main class to be executed by
MainService.execMains(). |
int |
execMains()
Executes registered main classes, in the order they were registered.
|
MainService.Main[] |
getMains()
Gets the registered main classes to execute.
|
dispose, getContext, initialize, registerEventHandlers, setContext, toStringcompareTo, getInfo, getPriority, setInfo, setPrioritycontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinitialize, registerEventHandlerscontext, getContext, setContextgetPriority, setPrioritycompareTogetInfo, setInfodisposepublic int execMains()
MainServiceexecMains in interface MainServicepublic void addMain(String className, String... args)
MainServiceMainService.execMains().addMain in interface MainServicepublic MainService.Main[] getMains()
MainServicegetMains in interface MainServiceCopyright © 2009–2016 SciJava. All rights reserved.