The return value must be one of the possible match values defined in the device category definition for the given Device service, or {@code Device.MATCH_NONE} if the category of the Device service is notrecognized.
In order to make its decision, this Driver service may examine the properties associated with the given Device service, or may get the referenced service object (representing the actual physical device) to talk to it, as long as it ungets the service and returns the physical device to a normal state before this method returns.
A Driver service must always return the same match code whenever it is presented with the same Device service.
The match function is called by the device manager during the matching process. @param reference the {@code ServiceReference} object of the device tomatch @return value indicating how well this driver can support the givenDevice service, or {@code Device.MATCH_NONE} if it cannot supportthe Device service at all @throws java.lang.Exception if this Driver service cannot examine theDevice service
|
|
|
|
|
|