mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Merge branch 'master' of https://github.com/geethkokila/product-cdm
This commit is contained in:
commit
450adc73e2
@ -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…
Reference in New Issue
Block a user