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.
|
getContext, setContext, toString
getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
initialize, registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
dispose
public int execMains()
MainService
execMains
in interface MainService
public void addMain(String className, String... args)
MainService
MainService.execMains()
.addMain
in interface MainService
public MainService.Main[] getMains()
MainService
getMains
in interface MainService
Copyright © 2015–2022 SciJava. All rights reserved.