public interface PropertyProviderAdapter
A PropertyProviderAdapter
is responsible for providing properties for
its advertised types and their properties. It is not a source of objects, the objects
need to be fed in and the adapter returns properties on those objects.
PropertyProviderAdapters must be registered with the
DataServiceExtensionRegistry
in order to be called. However,
when using Spring/OSGI, the adapter's registration is done automatically at the
time the bundle is loaded if the adapter is registered as an osgi-service under the
PropertyProviderAdapter
interface, like this:
Modifier and Type | Method and Description |
---|---|
ResultSet |
getProperties(PropertyRequestSpec propertyRequest)
Get the data from the adapter given a set of objects and the propertySpecs
corresponding to those objects.
|
ResultSet getProperties(PropertyRequestSpec propertyRequest)
propertyRequest
- PropertyRequestSpec
which contains the objects and the
properties of those objects that are being requested from the adapter.
It contains also the results (if any) which have been retrieved from
DataProviderAdapters on previous step.
Each provider should register an unique set of type-property tuple.
Note: if more than one adapter had registered with the same tuple the system will randomly pick an adapter and return results from it.
Copyright @ 2013-2018 VMware, Inc. All rights reserved.