类 ServiceReferenceDTO
- java.lang.Object
-
- org.osgi.dto.DTO
-
- org.osgi.framework.dto.ServiceReferenceDTO
-
public class ServiceReferenceDTO extends DTO
Data Transfer Object for a ServiceReference.ServiceReferenceDTOs for all registered services can be obtained from aFrameworkDTO. An installed Bundle can be adapted to provide aServiceReferenceDTO[]of the services registered by the Bundle. AServiceReferenceDTOobtained from a framework must convert service property values which are not valid value types for DTOs to typeStringusingString.valueOf(Object).- 作者:
- $Id: ServiceReferenceDTO.java 1614569 2014-07-30 07:22:32Z cziegeler $
-
-
字段概要
字段 修饰符和类型 字段 说明 longbundleThe id of the bundle that registered the service.longidThe id of the service.java.util.Map<java.lang.String,java.lang.Object>propertiesThe properties for the service.long[]usingBundlesThe ids of the bundles that are using the service.
-
构造器概要
构造器 构造器 说明 ServiceReferenceDTO()
-
-
-
字段详细资料
-
id
public long id
The id of the service.- 另请参阅:
Constants.SERVICE_ID
-
bundle
public long bundle
The id of the bundle that registered the service.
-
properties
public java.util.Map<java.lang.String,java.lang.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.
-
usingBundles
public long[] usingBundles
The ids of the bundles that are using the service.
-
-