Interface Device
-
public interface DeviceInterface for identifying device services.
A service must implement this interface or use the
Constants.DEVICE_CATEGORYregistration property to indicate that it is a device. Any services implementing this interface or registered with theDEVICE_CATEGORYproperty will be discovered by the device manager.Device services implementing this interface give the device manager the opportunity to indicate to the device that no drivers were found that could (further) refine it. In this case, the device manager calls the
noDriverFound()method on theDeviceobject.Specialized device implementations will extend this interface by adding methods appropriate to their device category to it.
- See Also:
Driver
-
-
Field Summary
Fields Modifier and Type Field Description static intMATCH_NONEReturn value fromDriver.match(ServiceReference)indicating that the driver cannot refine the device presented to it by the device manager.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidnoDriverFound()Indicates to thisDeviceobject that the device manager has failed to attach any drivers to it.
-
-
-
Field Detail
-
MATCH_NONE
static final int MATCH_NONE
Return value fromDriver.match(ServiceReference)indicating that the driver cannot refine the device presented to it by the device manager. The value is zero.- See Also:
- Constant Field Values
-
-
Method Detail
-
noDriverFound
void noDriverFound()
Indicates to thisDeviceobject that the device manager has failed to attach any drivers to it.If this
Deviceobject can be configured differently, the driver that registered thisDeviceobject may unregister it and register a different Device service instead.
-
-