D
- Data type associated with the plugin.public interface HandlerPlugin<D> extends SingletonPlugin, TypedPlugin<D>
SingletonPlugin
associated with a specific data
type (i.e., implementing TypedPlugin
).
For a given data object (of type D
), the HandlerPlugin
declares whether it can handle that data object via the Typed.supports(T)
method. The plugin's associated HandlerService.getHandler(DT)
method then
uses this capability to determine the most appropriate handler for any given
data object.
Note that there is no single handle(D)
method for actually handling
data objects, because it would be rather inflexible; e.g., handlers may have
other required inputs, or may provide more than one possible avenue of
handling (i.e., more than one "handle"-style method).
HandlerService
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
Copyright © 2009–2015 SciJava. All rights reserved.