Fixing DeviceManagementRepository initialization related issues

merge-requests/7/head
prabathabey 10 years ago
parent fdd7ca9032
commit fce61a59e2

@ -17,12 +17,17 @@ package org.wso2.carbon.device.mgt.core;
import org.wso2.carbon.device.mgt.common.spi.DeviceManagerService;
import java.util.HashMap;
import java.util.Map;
public class DeviceManagementRepository {
private Map<String, DeviceManagerService> providers;
public DeviceManagementRepository() {
providers = new HashMap<String, DeviceManagerService>();
}
public void addDeviceManagementProvider(DeviceManagerService provider) {
providers.put(provider.getProviderType(), provider);
}
@ -31,4 +36,8 @@ public class DeviceManagementRepository {
return providers.get(type);
}
public Map<String, DeviceManagerService> getProviders() {
return providers;
}
}

Loading…
Cancel
Save