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, toString
compareTo, getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
initialize, registerEventHandlers
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
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 © 2009–2016 SciJava. All rights reserved.