PT - Plugin type of the SingletonPlugins being managed.public abstract class AbstractSingletonService<PT extends SingletonPlugin> extends AbstractPTService<PT> implements SingletonService<PT>
SingletonServices.| Constructor and Description |
|---|
AbstractSingletonService() |
| Modifier and Type | Method and Description |
|---|---|
<P extends PT> |
getInstance(Class<P> pluginClass)
Gets the singleton plugin instance of the given class.
|
List<PT> |
getInstances()
Gets the list of plugin instances.
|
ObjectService |
objectService()
Gets the
ObjectService upon which this service depends. |
protected void |
onEvent(PluginsAddedEvent event) |
protected void |
onEvent(PluginsRemovedEvent event) |
pluginServicegetContext, setContext, toStringgetInfo, getPriority, setInfo, setPrioritycontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreate, filterInstances, initializegetPlugins, getPluginService, getPluginType, pluginServiceregisterEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposepublic ObjectService objectService()
SingletonServiceObjectService upon which this service depends.objectService in interface SingletonService<PT extends SingletonPlugin>public List<PT> getInstances()
SingletonServicegetInstances in interface SingletonService<PT extends SingletonPlugin>public <P extends PT> P getInstance(Class<P> pluginClass)
SingletonServicegetInstance in interface SingletonService<PT extends SingletonPlugin>protected void onEvent(PluginsRemovedEvent event)
protected void onEvent(PluginsAddedEvent event)
Copyright © 2015–2022 SciJava. All rights reserved.