PT- Plugin type of the plugins being managed.
public interface PTService<PT extends SciJavaPlugin> extends Service
There are many kinds of services, but most of them share one common characteristic: they provide API specific to a particular type of plugin. A few examples:
Most services fit this pattern in one way or another. When you wish to
provide a new extensibility point, you create a new type of
SciJavaPlugin, and a corresponding
PTService for working with
it. Depending on the nature of your new plugin type, this service might be:
SingletonService, such as
PlatformService, which manages
HandlerService, such as
TextService, which manages
WrapperService, such as
WidgetService, which manages
It is named
PTService rather than
similar to avoid confusion with A) the
PluginService itself, and B)
any other service interface intended to define the API of a concrete service.
In contrast to such services, the
PTService is a more general layer
in a type hierarchy intended to ease creation of services that fit its
|Modifier and Type||Method and Description|
Creates an instance of the given plugin class.
Gets the plugins managed by this service.
Gets the type of plugins managed by this service.
Gets the service responsible for discovering and managing this service's plugins.
default PluginService pluginService()
Copyright © 2015–2017 SciJava. All rights reserved.