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 Subinterfaces:
ConsoleArgument, DragAndDropHandler<D>, IOPlugin<D>, TextFormat
All Known Implementing Classes:
AbstractConsoleArgument, AbstractDragAndDropHandler, AbstractHandlerPlugin, AbstractIOPlugin, AbstractTextFormat, FileDragAndDropHandler, ListDragAndDropHandler, OpenArgument, RunArgument, ScriptFileDragAndDropHandler, ScriptIOPlugin, TextIOPlugin, UIArgument

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

Method Summary
 
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.Typed
getType, supports
 



Copyright © 2009–2014 SciJava. All rights reserved.