|
|
@ -36,6 +36,8 @@ public class DeviceManagementPluginRepository {
|
|
|
|
public void addDeviceManagementProvider(DeviceManagementService provider) throws DeviceManagementException {
|
|
|
|
public void addDeviceManagementProvider(DeviceManagementService provider) throws DeviceManagementException {
|
|
|
|
String deviceType = provider.getType();
|
|
|
|
String deviceType = provider.getType();
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
/* Initializing Device Management Service Provider */
|
|
|
|
|
|
|
|
provider.init();
|
|
|
|
DeviceManagerUtil.registerDeviceType(deviceType);
|
|
|
|
DeviceManagerUtil.registerDeviceType(deviceType);
|
|
|
|
} catch (DeviceManagementException e) {
|
|
|
|
} catch (DeviceManagementException e) {
|
|
|
|
throw new DeviceManagementException("Error occurred while adding device management provider '" +
|
|
|
|
throw new DeviceManagementException("Error occurred while adding device management provider '" +
|
|
|
|