mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Initializing Device Management providers
This commit is contained in:
parent
fd6793a9af
commit
a886430005
@ -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 '" +
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user