public interface DeviceDriverBroker extends DeviceDriverProvider
DeviceDriverProvider
able to delegate requests to registered providers.Modifier and Type | Method and Description |
---|---|
void |
addProvider(DeviceDriverProvider provider)
Adds the given provider to the collection of providers tracked by this broker.
|
DeviceDriverProvider |
getProvider(String typeName)
Returns a reference to the provider associated with the specified device type.
|
void |
removeProvider(DeviceDriverProvider provider)
Removes the given provider from the collection tracked by this broker.
|
create, create, create, create, create, getDeviceTypeNames, switchType
void addProvider(DeviceDriverProvider provider)
provider
- the provider to addIllegalStateException
- if a provider already exists for one of the device types supported by
the specified providervoid removeProvider(DeviceDriverProvider provider)
provider
- the provider to removeDeviceDriverProvider getProvider(String typeName)
typeName
- the device type nameCopyright © 2016. All Rights Reserved.