Package org.scijava.startup
Class DefaultStartupService
- java.lang.Object
-
- org.scijava.AbstractContextual
-
- org.scijava.plugin.AbstractRichPlugin
-
- org.scijava.service.AbstractService
-
- org.scijava.startup.DefaultStartupService
-
- All Implemented Interfaces:
Comparable<Prioritized>,Contextual,Disposable,Identifiable,Initializable,Locatable,Logged,HasPluginInfo,RichPlugin,SciJavaPlugin,Prioritized,SciJavaService,Service,StartupService,Versioned
public class DefaultStartupService extends AbstractService implements StartupService
Default implementation ofStartupService.- Author:
- Curtis Rueden
-
-
Constructor Summary
Constructors Constructor Description DefaultStartupService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOperation(Runnable operation)Adds an operation that will run as soon as the application starts up.voidexecuteOperations()Execute all registered startup operations, in the order they were registered, blocking until complete.-
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
-
addOperation
public void addOperation(Runnable operation)
Description copied from interface:StartupServiceAdds an operation that will run as soon as the application starts up.- Specified by:
addOperationin interfaceStartupService
-
executeOperations
public void executeOperations()
Description copied from interface:StartupServiceExecute all registered startup operations, in the order they were registered, blocking until complete.- Specified by:
executeOperationsin interfaceStartupService
-
-