Package org.scijava.plugin
Interface HandlerService<DT,PT extends HandlerPlugin<DT>>
-
- Type Parameters:
DT- Base data type handled by the handlers.PT- Plugin type of the handlers.
- All Superinterfaces:
Comparable<Prioritized>,Contextual,Disposable,HasPluginInfo,Identifiable,Initializable,Locatable,Logged,Prioritized,PTService<PT>,RichPlugin,SciJavaPlugin,Service,SingletonService<PT>,Typed<DT>,TypedService<DT,PT>,Versioned
- All Known Subinterfaces:
ConsoleService,ConvertService,DragAndDropService,IOService,LocationService,RunService,ScriptHeaderService,TextIOService,TextService,TypedIOService<D>
- All Known Implementing Classes:
AbstractConvertService,AbstractHandlerService,AbstractTypedIOService,DefaultConsoleService,DefaultConvertService,DefaultDragAndDropService,DefaultIOService,DefaultLocationService,DefaultRunService,DefaultScriptHeaderService,DefaultTextIOService,DefaultTextService
public interface HandlerService<DT,PT extends HandlerPlugin<DT>> extends SingletonService<PT>, TypedService<DT,PT>
A service for managingHandlerPlugins of a particular type.For any given data object, the service is capable of determining the most appropriate handler by sequentially querying each handler plugin on its list (via
Typed.supports(T)).- Author:
- Curtis Rueden
- See Also:
HandlerPlugin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PTgetHandler(DT data)Gets the most appropriate handler for the given data object, or null if no handler supports it.List<PT>getInstances()Gets the list of handlers.default booleansupports(DT data)Gets whether the given data object is supported.-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface org.scijava.Disposable
dispose
-
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
-
Methods inherited from interface org.scijava.Locatable
getLocation
-
Methods inherited from interface org.scijava.Prioritized
compareTo, getPriority, setPriority
-
Methods inherited from interface org.scijava.plugin.PTService
getPlugins, getPluginService, getPluginType, pluginService
-
Methods inherited from interface org.scijava.plugin.RichPlugin
getIdentifier, log
-
Methods inherited from interface org.scijava.service.Service
registerEventHandlers
-
Methods inherited from interface org.scijava.plugin.SingletonService
create, filterInstances, getInstance, initialize, objectService
-
Methods inherited from interface org.scijava.plugin.TypedService
find
-
Methods inherited from interface org.scijava.Versioned
getVersion
-
-
-
-
Method Detail
-
getHandler
default PT getHandler(DT data)
Gets the most appropriate handler for the given data object, or null if no handler supports it.
-
getInstances
List<PT> getInstances()
Gets the list of handlers. There will be one singleton instance for each available handler plugin.- Specified by:
getInstancesin interfaceSingletonService<DT>
-
-