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.
|
getInstance, getInstances, objectService
pluginService
dispose, getContext, setContext, toString
getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getInstances
create, filterInstances, getInstance, initialize, objectService
find
getPlugins, getPluginService, getPluginType, pluginService
registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
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–2016 SciJava. All rights reserved.