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
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
Copyright © 2015–2022 SciJava. All rights reserved.