DT
- Base data typePT
- Plugin typepublic interface WrapperService<DT,PT extends WrapperPlugin<DT>> extends TypedService<DT,PT>
WrapperPlugin
s of a particular type. A
WrapperPlugin
is a stateful TypedPlugin
which wraps a
particular object of its associated data type. For any given data object, the
service is capable of wrapping it with the most appropriate wrapper by
sequentially querying each WrapperPlugin
on its list for
compatibility.
Note that like PTService
, SingletonService
and
TypedService
, WrapperService
is not a service interface
defining API for a specific concrete service implementation, but rather a
more general layer in a type hierarchy intended to ease creation of services
that fit its pattern.
WrapperPlugin
,
PTService
Modifier and Type | Method and Description |
---|---|
<D extends DT> |
create(D data)
Creates a new plugin instance wrapping the given associated data object.
|
create, getPlugins, getPluginService, getPluginType
initialize, registerEventHandlers
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
dispose
Copyright © 2009–2015 SciJava. All rights reserved.