|
|
@ -35,12 +35,12 @@ public class DeviceManagementRepository {
|
|
|
|
|
|
|
|
|
|
|
|
public void addDeviceManagementProvider(DeviceManagerService provider) {
|
|
|
|
public void addDeviceManagementProvider(DeviceManagerService provider) {
|
|
|
|
String deviceType = provider.getProviderType();
|
|
|
|
String deviceType = provider.getProviderType();
|
|
|
|
|
|
|
|
providers.put(deviceType, provider);
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
DeviceManagerUtil.registerDeviceType(deviceType);
|
|
|
|
DeviceManagerUtil.registerDeviceType(deviceType);
|
|
|
|
} catch (DeviceManagementException e) {
|
|
|
|
} catch (DeviceManagementException e) {
|
|
|
|
log.error("Exception occured while registering the device type.",e);
|
|
|
|
log.error("Exception occured while registering the device type.",e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
providers.put(deviceType, provider);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public DeviceManagerService getDeviceManagementProvider(String type) {
|
|
|
|
public DeviceManagerService getDeviceManagementProvider(String type) {
|
|
|
|