org.scijava.plugin
Interface HandlerPlugin<D>
- Type Parameters:
D
- Data type associated with the plugin.
- All Superinterfaces:
- Comparable<Prioritized>, Contextual, HasPluginInfo, Prioritized, RichPlugin, SciJavaPlugin, SingletonPlugin, Typed<D>, TypedPlugin<D>
- All Known Implementing Classes:
- AbstractHandlerPlugin
public interface HandlerPlugin<D>
- extends SingletonPlugin, TypedPlugin<D>
Interface for plugins which "handle" a particular subset of data objects. A
handler plugin is a 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).
- Author:
- Curtis Rueden
- See Also:
HandlerService
Copyright © 2009–2014 SciJava. All rights reserved.