Top Description Fields
org.osgi.service.device

public Interface Constants


This interface defines standard names for property keys associated with Device and Driver services.

The values associated with these keys are of type java.lang.String, unless otherwise stated.

Author
$Id: 4bbe7b4b8219c31f85a0dfc73b3b062a4b63c69e $
Since
1.1
See Also
Device, Driver

Field Summary

Modifier and TypeField and Description
public static final String
DEVICE_CATEGORY

Property (named "DEVICE_CATEGORY") containing a human readable description of the device categories implemented by a device.

public static final String
DEVICE_DESCRIPTION

Property (named "DEVICE_DESCRIPTION") containing a human readable string describing the actual hardware device.

public static final String
DEVICE_SERIAL

Property (named "DEVICE_SERIAL") specifying a device's serial number.

public static final String
DRIVER_ID

Property (named "DRIVER_ID") identifying a driver.

Field Detail

DEVICE_CATEGORYback to summary
public static final String DEVICE_CATEGORY

Property (named "DEVICE_CATEGORY") containing a human readable description of the device categories implemented by a device. This property is of type String[]

Services registered with this property will be treated as devices and discovered by the device manager

DEVICE_DESCRIPTIONback to summary
public static final String DEVICE_DESCRIPTION

Property (named "DEVICE_DESCRIPTION") containing a human readable string describing the actual hardware device.

DEVICE_SERIALback to summary
public static final String DEVICE_SERIAL

Property (named "DEVICE_SERIAL") specifying a device's serial number.

DRIVER_IDback to summary
public static final String DRIVER_ID

Property (named "DRIVER_ID") identifying a driver.

A DRIVER_ID should start with the reversed domain name of the company that implemented the driver (e.g., com.acme), and must meet the following requirements:

  • It must be independent of the location from where it is obtained.
  • It must be independent of the DriverLocator service that downloaded it.
  • It must be unique.
  • It must be different for different revisions of the same driver.

This property is mandatory, i.e., every Driver service must be registered with it.