org.scijava.plugin
Class AbstractPTService<PT extends SciJavaPlugin>

java.lang.Object
  extended by org.scijava.AbstractContextual
      extended by org.scijava.plugin.AbstractRichPlugin
          extended by org.scijava.service.AbstractService
              extended by org.scijava.plugin.AbstractPTService<PT>
Type Parameters:
PT - Plugin type of the SciJavaPlugins being managed.
All Implemented Interfaces:
Comparable<Prioritized>, Contextual, Disposable, HasPluginInfo, PTService<PT>, RichPlugin, SciJavaPlugin, Prioritized, Service
Direct Known Subclasses:
AbstractSingletonService, AbstractTypedService, DefaultCommandService

public abstract class AbstractPTService<PT extends SciJavaPlugin>
extends AbstractService
implements PTService<PT>

Abstract base class for PTServices.

Author:
Curtis Rueden

Constructor Summary
AbstractPTService()
           
 
Method Summary
<P extends PT>
P
create(Class<P> pluginClass)
          Creates an instance of the given plugin class.
 List<PluginInfo<PT>> getPlugins()
          Gets the plugins managed by this service.
 PluginService getPluginService()
          Gets the service responsible for discovering and managing this service's plugins.
 
Methods inherited from class org.scijava.service.AbstractService
dispose, getContext, initialize, registerEventHandlers, setContext, toString
 
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
compareTo, 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.plugin.PTService
getPluginType
 
Methods inherited from interface org.scijava.service.Service
initialize, registerEventHandlers
 
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
 
Methods inherited from interface org.scijava.Prioritized
getPriority, setPriority
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
 
Methods inherited from interface org.scijava.Disposable
dispose
 

Constructor Detail

AbstractPTService

public AbstractPTService()
Method Detail

getPluginService

public PluginService getPluginService()
Description copied from interface: PTService
Gets the service responsible for discovering and managing this service's plugins.

Specified by:
getPluginService in interface PTService<PT extends SciJavaPlugin>

getPlugins

public List<PluginInfo<PT>> getPlugins()
Description copied from interface: PTService
Gets the plugins managed by this service.

Specified by:
getPlugins in interface PTService<PT extends SciJavaPlugin>

create

public <P extends PT> P create(Class<P> pluginClass)
Description copied from interface: PTService
Creates an instance of the given plugin class.

Specified by:
create in interface PTService<PT extends SciJavaPlugin>


Copyright © 2009–2015 SciJava. All rights reserved.