DT
- Base data type handled by the handlers.PT
- Plugin type of the handlers.public interface HandlerService<DT,PT extends HandlerPlugin<DT>> extends SingletonService<PT>, TypedService<DT,PT>
HandlerPlugin
s of a particular type.
For any given data object, the service is capable of determining the most
appropriate handler by sequentially querying each handler plugin on its list
(via Typed.supports(T)
).
HandlerPlugin
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.
|
List<PT> |
getInstances()
Gets the list of handlers.
|
boolean |
supports(DT data)
Gets whether the given data object is supported.
|
getInstance
create, getPlugins, getPluginService, getPluginType
initialize, registerEventHandlers
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
dispose
PT getHandler(DT data)
List<PT> getInstances()
getInstances
in interface SingletonService<PT extends HandlerPlugin<DT>>
Copyright © 2009–2015 SciJava. All rights reserved.