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