|
|
|
@ -24,10 +24,8 @@ import org.wso2.carbon.apimgt.api.APIManagementException;
|
|
|
|
|
import org.wso2.carbon.apimgt.api.APIProvider;
|
|
|
|
|
import org.wso2.carbon.apimgt.impl.APIManagerConfigurationService;
|
|
|
|
|
import org.wso2.carbon.apimgt.impl.APIManagerFactory;
|
|
|
|
|
import org.wso2.carbon.core.ServerStartupHandler;
|
|
|
|
|
import org.wso2.carbon.device.mgt.common.DeviceManagementException;
|
|
|
|
|
import org.wso2.carbon.device.mgt.common.spi.DeviceManagerService;
|
|
|
|
|
import org.wso2.carbon.device.mgt.mobile.DataSourceListener;
|
|
|
|
|
import org.wso2.carbon.device.mgt.mobile.config.APIConfig;
|
|
|
|
|
import org.wso2.carbon.device.mgt.mobile.config.MobileDeviceConfigurationManager;
|
|
|
|
|
import org.wso2.carbon.device.mgt.mobile.config.MobileDeviceManagementConfig;
|
|
|
|
@ -38,7 +36,6 @@ import org.wso2.carbon.device.mgt.mobile.impl.ios.IOSDeviceManagerService;
|
|
|
|
|
import org.wso2.carbon.device.mgt.mobile.impl.windows.WindowsDeviceManagerService;
|
|
|
|
|
import org.wso2.carbon.device.mgt.mobile.util.DeviceManagementAPIPublisherUtil;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -52,7 +49,7 @@ import java.util.List;
|
|
|
|
|
* unbind="unsetAPIManagerConfigurationService"
|
|
|
|
|
* <p/>
|
|
|
|
|
* Adding reference to API Manager Configuration service is an unavoidable hack to get rid of NPEs thrown while
|
|
|
|
|
* initializing APIMgtDAOs when trying to register APIs programmatically. APIMgtDAO needs to be proper cleaned up
|
|
|
|
|
* initializing APIMgtDAOs attempting to register APIs programmatically. APIMgtDAO needs to be proper cleaned up
|
|
|
|
|
* to avoid as an ideal fix
|
|
|
|
|
*/
|
|
|
|
|
public class MobileDeviceManagementServiceComponent {
|
|
|
|
@ -165,5 +162,4 @@ public class MobileDeviceManagementServiceComponent {
|
|
|
|
|
//do nothing
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|