Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright (c) OSGi Alliance (2000, 2010). All Rights Reserved.
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
package org.osgi.service.device;
A Driver Locator service can find and load device driver bundles given a property set. Each driver is represented by a unique DRIVER_ID.

Driver Locator services provide the mechanism for dynamically downloading new device driver bundles into an OSGi environment. They are supplied by providers and encapsulate all provider-specific details related to the location and acquisition of driver bundles.

$Id: 85498ef85f1a48248b6dc01455264b2f866022ea $
See also:
public interface DriverLocator {
Returns an array of DRIVER_ID strings of drivers capable of attaching to a device with the given properties.

The property keys in the specified Dictionary objects are case-insensitive.

props the properties of the device for which a driver is sought
array of driver DRIVER_ID strings of drivers capable of attaching to a Device service with the given properties, or null if this Driver Locator service does not know of any such drivers
	public String[] findDrivers(Dictionary props);

Get an InputStream from which the driver bundle providing a driver with the giving DRIVER_ID can be installed.

id the DRIVER_ID of the driver that needs to be installed.
An InputStream object from which the driver bundle can be installed or null if the driver with the given ID cannot be located
Throws: the input stream for the bundle cannot be created
	public InputStream loadDriver(String idthrows IOException;
New to GrepCode? Check out our FAQ X