A return value of {@code null} indicates that this Driver service hassuccessfully attached to the given Device service. If this Driver service is unable to attach to the given Device service, but knows of a more suitable Driver service, it must return the {@code DRIVER_ID} of thatDriver service. This allows for the implementation of referring drivers whose only purpose is to refer to other drivers capable of handling a given Device service.
After having attached to the Device service, this driver may register the underlying device as a new service exposing driver-specific functionality.
This method is called by the device manager. @param reference the {@code ServiceReference} object of the device toattach to @return {@code null} if this Driver service has successfully attached tothe given Device service, or the {@code DRIVER_ID} of a moresuitable driver @throws java.lang.Exception if the driver cannot attach to the givendevice and does not know of a more suitable driver
|
|