PT
- Plugin type of the plugins being managed.public interface SingletonService<PT extends SingletonPlugin> extends PTService<PT>
SingletonPlugin
s of a particular type. The
SingletonService
creates and maintain a list of singleton instances.
Note that like PTService
, TypedService
and
WrapperService
, SingletonService
is not a service interface
defining API for a specific concrete service implementation, but rather a
more general layer in a type hierarchy intended to ease creation of services
that fit its pattern.
PTService
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.
|
create, getPlugins, getPluginService, getPluginType
initialize, registerEventHandlers
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
dispose
Copyright © 2009–2015 SciJava. All rights reserved.