Package org.scijava.main
Interface MainService
-
- All Superinterfaces:
Comparable<Prioritized>,Contextual,Disposable,HasPluginInfo,Identifiable,Initializable,Locatable,Logged,Prioritized,RichPlugin,SciJavaPlugin,SciJavaService,Service,Versioned
- All Known Implementing Classes:
DefaultMainService
public interface MainService extends SciJavaService
Interface for services which manage dynamic execution of main methods.- Author:
- Curtis Rueden
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceMainService.MainData structure containing main class and argument values.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddMain(String className, String... args)Registers a main class to be executed byexecMains().intexecMains()Executes registered main classes, in the order they were registered.MainService.Main[]getMains()Gets the registered main classes to execute.-
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
-
execMains
int execMains()
Executes registered main classes, in the order they were registered.- Returns:
- The number of main methods which were executed.
-
addMain
void addMain(String className, String... args)
Registers a main class to be executed byexecMains().
-
getMains
MainService.Main[] getMains()
Gets the registered main classes to execute.
-
-