Top Description Fields Constructors Methods
org.osgi.framework.dto

public Class ServiceReferenceDTO

extends DTO
Class Inheritance
Imports
java.util.Map, org.osgi.dto.DTO, org.osgi.framework.Constants, .ServiceReference

Data Transfer Object for a ServiceReference.

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).

Author
$Id: 8ac26a24b8adacdcd09f441dcdfc8d6a27bbaabd $

Field Summary

Modifier and TypeField and Description
public long
bundle

The id of the bundle that registered the service.

public long
id

The id of the service.

public Map<String, Object>
properties

The properties for the service.

public long[]
usingBundles

The ids of the bundles that are using the service.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.osgi.dto.DTO:
toString

Field Detail

bundleback to summary
public long bundle

The id of the bundle that registered the service.

See Also
ServiceReference#getBundle()
idback to summary
public long id

The id of the service.

See Also
Constants#SERVICE_ID
propertiesback to summary
public Map<String, Object> properties

The properties for the service. The value type must be a numerical type, Boolean, String, DTO or an array of any of the former.

See Also
ServiceReference#getProperty(String)
usingBundlesback to summary
public long[] usingBundles

The ids of the bundles that are using the service.

See Also
ServiceReference#getUsingBundles()

Constructor Detail

ServiceReferenceDTOback to summary
public ServiceReferenceDTO()