From a88643000508183ddc534ea46db64fe641c0ff85 Mon Sep 17 00:00:00 2001 From: prabathabey Date: Thu, 9 Jul 2015 22:17:22 +0530 Subject: [PATCH] Initializing Device Management providers --- .../device/mgt/core/DeviceManagementPluginRepository.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/DeviceManagementPluginRepository.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/DeviceManagementPluginRepository.java index 488f2f98667..4c276405ffe 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/DeviceManagementPluginRepository.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/DeviceManagementPluginRepository.java @@ -36,6 +36,8 @@ public class DeviceManagementPluginRepository { public void addDeviceManagementProvider(DeviceManagementService provider) throws DeviceManagementException { String deviceType = provider.getType(); try { + /* Initializing Device Management Service Provider */ + provider.init(); DeviceManagerUtil.registerDeviceType(deviceType); } catch (DeviceManagementException e) { throw new DeviceManagementException("Error occurred while adding device management provider '" +