|
|
|
@ -12,6 +12,11 @@ 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.fr.base.MultiParameterParser; |
|
|
|
|
import com.fr.base.ParameterType; |
|
|
|
|
import com.fr.base.ParameterTypeHandler; |
|
|
|
|
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; |
|
|
|
@ -65,6 +70,10 @@ public class DesignDatasourceComponent extends DatasourceComponent {
|
|
|
|
|
registerDriverClassLoader(); |
|
|
|
|
ConnectionConfigWriterFactory.registerConnectionConfigWriter((ConnectionConfigWriter) ConnectionConfigProviderFactory.getConfigProvider()); |
|
|
|
|
Carina.getApplicationContext().singleton(ConnectionWriterShell.class).set(ConnectionConfigWriterFactory.getConfigWriter()); |
|
|
|
|
ParameterTypeHandler.getInstance().addParser(ParameterType.Multi.name(), new MultiParameterParser()); |
|
|
|
|
ParameterTypeHandler.getInstance().addParser(ParameterType.JSONArray.name(), new MultiParameterParser()); |
|
|
|
|
ParameterTypeHandler.getInstance().addParser(ParameterType.Formula.name(), new FormulaParameterParser()); |
|
|
|
|
ParameterTypeHandler.getInstance().addParser(ParameterType.TableColumn.name(), new TableColumnParameterParser()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void registerDriverClassLoader() { |
|
|
|
|