Fix bundling issues

scopeMapAPILayer
Rajitha Kumara 2 years ago
parent 64d194bfea
commit c33f402fd1

@ -46,7 +46,11 @@
org.wso2.carbon.stratos.common.exception, org.wso2.carbon.stratos.common.exception,
org.wso2.carbon.stratos.common.listeners, org.wso2.carbon.stratos.common.listeners,
org.wso2.carbon.device.mgt.common.metadata.mgt, org.wso2.carbon.device.mgt.common.metadata.mgt,
org.wso2.carbon.device.mgt.common.exceptions,
org.wso2.carbon.device.mgt.common.permission.mgt,
org.wso2.carbon.device.mgt.common.roles.config,
org.wso2.carbon.device.mgt.core.metadata.mgt, org.wso2.carbon.device.mgt.core.metadata.mgt,
org.wso2.carbon.device.mgt.core.config,
org.wso2.carbon.user.core.service, org.wso2.carbon.user.core.service,
org.wso2.carbon.context org.wso2.carbon.context
</Import-Package> </Import-Package>

@ -9,6 +9,7 @@ import org.apache.commons.logging.LogFactory;
import org.osgi.service.component.ComponentContext; import org.osgi.service.component.ComponentContext;
import org.wso2.carbon.device.mgt.common.metadata.mgt.WhiteLabelManagementService; import org.wso2.carbon.device.mgt.common.metadata.mgt.WhiteLabelManagementService;
import org.wso2.carbon.device.mgt.core.metadata.mgt.WhiteLabelManagementServiceImpl; import org.wso2.carbon.device.mgt.core.metadata.mgt.WhiteLabelManagementServiceImpl;
import org.wso2.carbon.stratos.common.listeners.TenantMgtListener;
import org.wso2.carbon.user.core.service.RealmService; import org.wso2.carbon.user.core.service.RealmService;
/** /**
@ -27,6 +28,7 @@ import org.wso2.carbon.user.core.service.RealmService;
* unbind="unsetRealmService" * unbind="unsetRealmService"
*/ */
@SuppressWarnings("unused")
public class TenantMgtServiceComponent { public class TenantMgtServiceComponent {
private static final Log log = LogFactory.getLog(TenantManagerService.class); private static final Log log = LogFactory.getLog(TenantManagerService.class);
@ -43,7 +45,7 @@ public class TenantMgtServiceComponent {
TenantMgtDataHolder.getInstance().setWhiteLabelManagementService(whiteLabelManagementService); TenantMgtDataHolder.getInstance().setWhiteLabelManagementService(whiteLabelManagementService);
DeviceMgtTenantListener deviceMgtTenantListener = new DeviceMgtTenantListener(); DeviceMgtTenantListener deviceMgtTenantListener = new DeviceMgtTenantListener();
componentContext.getBundleContext(). componentContext.getBundleContext().
registerService(DeviceMgtTenantListener.class.getName(), deviceMgtTenantListener, null); registerService(TenantMgtListener.class.getName(), deviceMgtTenantListener, null);
log.info("Tenant management service activated"); log.info("Tenant management service activated");
} catch (Throwable t) { } catch (Throwable t) {
String msg = "Error occurred while activating tenant management service"; String msg = "Error occurred while activating tenant management service";

Loading…
Cancel
Save