org.scijava.plugin
Class AbstractHandlerService<DT,PT extends HandlerPlugin<DT>>
java.lang.Object
org.scijava.AbstractContextual
org.scijava.plugin.AbstractRichPlugin
org.scijava.service.AbstractService
org.scijava.plugin.AbstractPTService<PT>
org.scijava.plugin.AbstractSingletonService<PT>
org.scijava.plugin.AbstractHandlerService<DT,PT>
- Type Parameters:
DT
- Base data type handled by the handlers.PT
- Plugin type of the handlers.
- All Implemented Interfaces:
- Comparable<Prioritized>, Contextual, Disposable, HandlerService<DT,PT>, HasPluginInfo, PTService<PT>, RichPlugin, SciJavaPlugin, SingletonService<PT>, TypedService<DT,PT>, Prioritized, Service, Typed<DT>
- Direct Known Subclasses:
- AbstractConvertService, DefaultConsoleService, DefaultDragAndDropService, DefaultIOService, DefaultScriptHeaderService, DefaultTextService
public abstract class AbstractHandlerService<DT,PT extends HandlerPlugin<DT>>
- extends AbstractSingletonService<PT>
- implements HandlerService<DT,PT>
Abstract base class for HandlerService
s.
- Author:
- Curtis Rueden
Method Summary |
PT |
getHandler(DT data)
Gets the most appropriate handler for the given data object, or null if no
handler supports it. |
boolean |
supports(DT data)
Gets whether the given data object is supported. |
AbstractHandlerService
public AbstractHandlerService()
getHandler
public PT getHandler(DT data)
- Description copied from interface:
HandlerService
- Gets the most appropriate handler for the given data object, or null if no
handler supports it.
- Specified by:
getHandler
in interface HandlerService<DT,PT extends HandlerPlugin<DT>>
supports
public boolean supports(DT data)
- Description copied from interface:
HandlerService
- Gets whether the given data object is supported.
- Specified by:
supports
in interface HandlerService<DT,PT extends HandlerPlugin<DT>>
- Specified by:
supports
in interface Typed<DT>
Copyright © 2009–2015 SciJava. All rights reserved.