Remove carbon dependencies from ndatasource core
*/
package org.wso2.micro.integrator.ndatasource.core;
-import java.util.HashMap;
-import java.util.Map;
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-import javax.xml.bind.JAXBContext;
-import javax.xml.bind.JAXBException;
-import javax.xml.bind.Marshaller;
-import javax.xml.bind.Unmarshaller;
-
import org.apache.axis2.clustering.ClusteringAgent;
import org.apache.axis2.clustering.ClusteringFault;
import org.apache.axis2.context.ConfigurationContext;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.w3c.dom.Element;
+import org.wso2.micro.core.util.ConfigurationContextService;
import org.wso2.micro.integrator.ndatasource.common.DataSourceConstants.DataSourceStatusModes;
import org.wso2.micro.integrator.ndatasource.common.DataSourceException;
import org.wso2.micro.integrator.ndatasource.common.spi.DataSourceReader;
-import org.wso2.micro.integrator.ndatasource.core.utils.DataSourceUtils;
import org.wso2.micro.integrator.ndatasource.core.internal.DataSourceServiceComponent;
-import org.wso2.carbon.registry.core.Registry;
-import org.wso2.micro.core.util.ConfigurationContextService;
+import org.wso2.micro.integrator.ndatasource.core.utils.DataSourceUtils;
+
+import java.util.HashMap;
+import java.util.Map;
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.JAXBException;
+import javax.xml.bind.Marshaller;
+import javax.xml.bind.Unmarshaller;
/**
* This class represents the repository which is used to hold the data sources.
@@ -48,8 +47,6 @@ public class DataSourceRepository {
private int tenantId;
- private Registry registry;
-
private Map<String, CarbonDataSource> dataSources;
private Marshaller dsmMarshaller;
