public class ServiceReferenceDTO extends DTO
 ServiceReferenceDTOs for all registered services can be obtained from
 a FrameworkDTO. A ServiceReference can be adapted to a
 ServiceReferenceDTO. A started Bundle can be adapted to provide a
 ServiceReferenceDTO[] of the services registered by the Bundle. A
 ServiceReferenceDTO obtained from a framework must convert service
 property values which are not valid value types for DTOs to type
 String using String.valueOf(Object).
| Modifier and Type | Field and Description | 
|---|---|
long | 
bundle
The id of the bundle that registered the service. 
 | 
long | 
id
The id of the service. 
 | 
java.util.Map<java.lang.String,java.lang.Object> | 
properties
The properties for the service. 
 | 
long[] | 
usingBundles
The ids of the bundles that are using the service. 
 | 
| Constructor and Description | 
|---|
ServiceReferenceDTO()  | 
public long id
Constants.SERVICE_IDpublic long bundle
ServiceReference.getBundle()public java.util.Map<java.lang.String,java.lang.Object> properties
ServiceReference.getProperty(String)public long[] usingBundles
ServiceReference.getUsingBundles()Copyright © OSGi Alliance (2000, 2020). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0