PT
- Plugin type of the SingletonPlugin
s being managed.public abstract class AbstractSingletonService<PT extends SingletonPlugin> extends AbstractPTService<PT> implements SingletonService<PT>
SingletonService
s.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) |
pluginService
getContext, setContext, toString
getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
create, filterInstances, initialize
getPlugins, getPluginService, getPluginType, pluginService
registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
dispose
public ObjectService objectService()
SingletonService
ObjectService
upon which this service depends.objectService
in interface SingletonService<PT extends SingletonPlugin>
public List<PT> getInstances()
SingletonService
getInstances
in interface SingletonService<PT extends SingletonPlugin>
public <P extends PT> P getInstance(Class<P> pluginClass)
SingletonService
getInstance
in interface SingletonService<PT extends SingletonPlugin>
protected void onEvent(PluginsRemovedEvent event)
protected void onEvent(PluginsAddedEvent event)
Copyright © 2015–2022 SciJava. All rights reserved.