|
|
|
@ -12,15 +12,20 @@ import com.fanruan.config.impl.data.ConnectionConfigWriter;
|
|
|
|
|
import com.fanruan.config.impl.data.ConnectionConfigWriterFactory; |
|
|
|
|
import com.fanruan.config.impl.data.TableDataConfigProviderFactory; |
|
|
|
|
import com.fanruan.data.ConnectionConfigWrapper; |
|
|
|
|
import com.fanruan.workplace.http.codec.SerializerRegister; |
|
|
|
|
import com.fanruan.workplace.http.codec.SerializerRegisterGroup; |
|
|
|
|
import com.fanruan.workplace.http.codec.xml.XmlableSerializer; |
|
|
|
|
import com.fr.base.MultiParameterParser; |
|
|
|
|
import com.fr.base.ParameterType; |
|
|
|
|
import com.fr.base.ParameterTypeHandler; |
|
|
|
|
import com.fr.base.TableData; |
|
|
|
|
import com.fr.base.parameter.FormulaParameterParser; |
|
|
|
|
import com.fr.base.parameter.TableColumnParameterParser; |
|
|
|
|
import com.fr.data.driver.classloader.DriverClassLoaderHelper; |
|
|
|
|
import com.fr.data.driver.classloader.impl.ChildFirstDriverClassLoader; |
|
|
|
|
import com.fr.data.driver.classloader.impl.ChildOnlyDriverClassLoader; |
|
|
|
|
import com.fr.data.driver.constants.DriverLoaderStrategies; |
|
|
|
|
import com.fr.data.impl.Connection; |
|
|
|
|
import com.fr.decision.webservice.v10.datasource.connection.processor.impl.ConnectionPluginProcessor; |
|
|
|
|
import com.fr.decision.webservice.v10.datasource.connection.processor.impl.ConnectionProcessorFactory; |
|
|
|
|
import com.fr.decision.webservice.v10.datasource.connection.processor.impl.JDBCConnectionProcessor; |
|
|
|
@ -60,6 +65,8 @@ public class DesignDatasourceComponent extends DatasourceComponent {
|
|
|
|
|
DataSetProcessorFactory.init(); |
|
|
|
|
Carina.getApplicationContext().singleton(LocalConnectionShell.class).set(new LocalConnectionSource()); |
|
|
|
|
Carina.getApplicationContext().singleton(LocalTableDataShell.class).set(new LocalTableDataSource()); |
|
|
|
|
Carina.getApplicationContext().group(SerializerRegisterGroup.class).add(new SerializerRegister(Connection.class, XmlableSerializer.getInstance())); |
|
|
|
|
Carina.getApplicationContext().group(SerializerRegisterGroup.class).add(new SerializerRegister(TableData.class, XmlableSerializer.getInstance())); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|