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>
HandlerServices.| 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, initializegetPlugins, getPluginServicedispose, getContext, registerEventHandlers, setContext, toStringcompareTo, getInfo, getPriority, setInfo, setPrioritycontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetInstancesgetInstancecreate, getPlugins, getPluginService, getPluginTypeinitialize, registerEventHandlerscontext, getContext, setContextgetPriority, setPrioritycompareTogetInfo, setInfodisposepublic PT getHandler(DT data)
HandlerServicegetHandler in interface HandlerService<DT,PT extends HandlerPlugin<DT>>public boolean supports(DT data)
HandlerServicesupports in interface HandlerService<DT,PT extends HandlerPlugin<DT>>supports in interface Typed<DT>Copyright © 2009–2016 SciJava. All rights reserved.