org.scijava.plugin
Interface WrapperService<DT,PT extends WrapperPlugin<DT>>
- Type Parameters:
DT
- Base data typePT
- Plugin type
- All Superinterfaces:
- Comparable<Prioritized>, Contextual, Disposable, HasPluginInfo, Prioritized, PTService<PT>, RichPlugin, SciJavaPlugin, Service, Typed<DT>, TypedService<DT,PT>
- All Known Subinterfaces:
- WidgetService
- All Known Implementing Classes:
- AbstractWrapperService, DefaultWidgetService
public interface WrapperService<DT,PT extends WrapperPlugin<DT>>
- extends TypedService<DT,PT>
A service for managing 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.
- Author:
- Curtis Rueden
- See Also:
WrapperPlugin
,
PTService
Method Summary |
|
create(D data)
Creates a new plugin instance wrapping the given associated data object. |
create
<D extends DT> WrapperPlugin<D> create(D data)
- Creates a new plugin instance wrapping the given associated data object.
- Throws:
IllegalArgumentException
- if the data is not compatible with any
available plugin.
Copyright © 2009–2014 SciJava. All rights reserved.