|
|
@ -272,6 +272,7 @@ public class DeviceManagementServiceComponent {
|
|
|
|
* @param deviceManagementService An instance of DeviceManagementService
|
|
|
|
* @param deviceManagementService An instance of DeviceManagementService
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
protected void setDeviceManagementService(DeviceManagementService deviceManagementService) {
|
|
|
|
protected void setDeviceManagementService(DeviceManagementService deviceManagementService) {
|
|
|
|
|
|
|
|
try {
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
log.debug("Setting Device Management Service Provider: '" +
|
|
|
|
log.debug("Setting Device Management Service Provider: '" +
|
|
|
|
deviceManagementService.getType() + "'");
|
|
|
|
deviceManagementService.getType() + "'");
|
|
|
@ -282,6 +283,12 @@ public class DeviceManagementServiceComponent {
|
|
|
|
listener.registerDeviceManagementService(deviceManagementService);
|
|
|
|
listener.registerDeviceManagementService(deviceManagementService);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
log.info("Device Type deployed successfully : " + deviceManagementService.getType() + " for tenant "
|
|
|
|
|
|
|
|
+ deviceManagementService.getProvisioningConfig().getProviderTenantDomain());
|
|
|
|
|
|
|
|
} catch (Throwable e) {
|
|
|
|
|
|
|
|
log.error("Failed to register device management service for device type" + deviceManagementService.getType() +
|
|
|
|
|
|
|
|
" for tenant " + deviceManagementService.getProvisioningConfig().getProviderTenantDomain(), e);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|