DT
- Base data type handled by the handlers.PT
- Plugin type of the handlers.public abstract class AbstractHandlerService<DT,PT extends HandlerPlugin<DT>> extends AbstractSingletonService<PT> implements HandlerService<DT,PT>
HandlerService
s.Constructor and Description |
---|
AbstractHandlerService() |
Modifier and Type | Method and Description |
---|---|
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.
|
create, filterInstances, getInstance, getInstances, initialize
getPlugins, getPluginService
dispose, getContext, registerEventHandlers, setContext, toString
compareTo, getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getInstances
getInstance
create, getPlugins, getPluginService, getPluginType
initialize, registerEventHandlers
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
dispose
public PT getHandler(DT data)
HandlerService
getHandler
in interface HandlerService<DT,PT extends HandlerPlugin<DT>>
public boolean supports(DT data)
HandlerService
supports
in interface HandlerService<DT,PT extends HandlerPlugin<DT>>
supports
in interface Typed<DT>
Copyright © 2009–2015 SciJava. All rights reserved.