未验证 提交 26702209 编写于 作者: L Liang Zhang 提交者: GitHub

Merge shardingsphere-spi into shardingsphere-common (#5635)

* Move shardingsphere-spi into shardingsphere-common

* remove shardingsphere-spi
上级 0e30f587
......@@ -26,8 +26,8 @@ import org.apache.shardingsphere.encrypt.api.config.EncryptorRuleConfiguration;
import org.apache.shardingsphere.encrypt.strategy.EncryptTable;
import org.apache.shardingsphere.encrypt.strategy.spi.Encryptor;
import org.apache.shardingsphere.encrypt.strategy.spi.QueryAssistedEncryptor;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sharding.spi.type.TypedSPIRegistry;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.type.TypedSPIRegistry;
import org.apache.shardingsphere.underlying.common.rule.ShardingSphereRule;
import java.util.Collection;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.encrypt.strategy.spi;
import org.apache.shardingsphere.sharding.spi.type.TypedSPI;
import org.apache.shardingsphere.underlying.common.spi.type.TypedSPI;
/**
* Encryptor.
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.masterslave.spi;
import org.apache.shardingsphere.sharding.spi.type.TypedSPI;
import org.apache.shardingsphere.underlying.common.spi.type.TypedSPI;
import java.util.List;
......
......@@ -21,9 +21,9 @@ import lombok.AccessLevel;
import lombok.Getter;
import org.apache.shardingsphere.masterslave.api.config.LoadBalanceStrategyConfiguration;
import org.apache.shardingsphere.masterslave.api.config.MasterSlaveDataSourceConfiguration;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.masterslave.spi.MasterSlaveLoadBalanceAlgorithm;
import org.apache.shardingsphere.sharding.spi.type.TypedSPIRegistry;
import org.apache.shardingsphere.underlying.common.spi.type.TypedSPIRegistry;
import java.util.Collection;
import java.util.HashMap;
......
......@@ -30,8 +30,6 @@
<name>${project.artifactId}</name>
<modules>
<module>shardingsphere-spi</module>
<module>shardingsphere-sql-parser</module>
<module>shardingsphere-database-protocol</module>
<module>shardingsphere-underlying</module>
......
......@@ -19,7 +19,7 @@ package org.apache.shardingsphere.sharding.route.time.spi;
import lombok.RequiredArgsConstructor;
import org.apache.shardingsphere.sharding.route.time.exception.NoDatabaseSQLEntrySupportException;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import java.util.Collection;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sharding.spi.algorithm;
import org.apache.shardingsphere.sharding.spi.type.TypedSPI;
import org.apache.shardingsphere.underlying.common.spi.type.TypedSPI;
/**
* Sharding algorithm.
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sharding.spi.keygen;
import org.apache.shardingsphere.sharding.spi.type.TypedSPI;
import org.apache.shardingsphere.underlying.common.spi.type.TypedSPI;
/**
* Key generate algorithm.
......
......@@ -28,9 +28,9 @@ import org.apache.shardingsphere.sharding.strategy.algorithm.sharding.inline.Inl
import org.apache.shardingsphere.sharding.strategy.route.ShardingStrategy;
import org.apache.shardingsphere.sharding.strategy.route.ShardingStrategyFactory;
import org.apache.shardingsphere.sharding.strategy.route.none.NoneShardingStrategy;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sharding.spi.keygen.KeyGenerateAlgorithm;
import org.apache.shardingsphere.sharding.spi.type.TypedSPIRegistry;
import org.apache.shardingsphere.underlying.common.spi.type.TypedSPIRegistry;
import org.apache.shardingsphere.underlying.common.config.exception.ShardingSphereConfigurationException;
import org.apache.shardingsphere.underlying.common.datanode.DataNode;
import org.apache.shardingsphere.underlying.common.rule.DataNodeRoutedRule;
......
......@@ -20,9 +20,9 @@ package org.apache.shardingsphere.sharding.yaml.swapper;
import com.google.common.base.Strings;
import org.apache.shardingsphere.sharding.api.config.KeyGeneratorConfiguration;
import org.apache.shardingsphere.sharding.yaml.config.YamlKeyGeneratorConfiguration;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sharding.spi.keygen.KeyGenerateAlgorithm;
import org.apache.shardingsphere.sharding.spi.type.TypedSPIRegistry;
import org.apache.shardingsphere.underlying.common.spi.type.TypedSPIRegistry;
import org.apache.shardingsphere.underlying.common.yaml.swapper.YamlSwapper;
/**
......
......@@ -32,9 +32,9 @@ import org.apache.shardingsphere.sharding.yaml.config.strategy.YamlHintShardingS
import org.apache.shardingsphere.sharding.yaml.config.strategy.YamlNoneShardingStrategyConfiguration;
import org.apache.shardingsphere.sharding.yaml.config.strategy.YamlShardingAlgorithmConfiguration;
import org.apache.shardingsphere.sharding.yaml.config.strategy.YamlStandardShardingStrategyConfiguration;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sharding.spi.algorithm.ShardingAlgorithm;
import org.apache.shardingsphere.sharding.spi.type.TypedSPIRegistry;
import org.apache.shardingsphere.underlying.common.spi.type.TypedSPIRegistry;
import org.apache.shardingsphere.underlying.common.exception.ShardingSphereException;
import org.apache.shardingsphere.underlying.common.yaml.swapper.YamlSwapper;
......
......@@ -21,7 +21,7 @@ import lombok.SneakyThrows;
import org.apache.shardingsphere.sharding.api.config.ShardingRuleConfiguration;
import org.apache.shardingsphere.sharding.api.config.TableRuleConfiguration;
import org.apache.shardingsphere.sharding.api.config.strategy.NoneShardingStrategyConfiguration;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.log.ConfigurationLogger;
import org.apache.shardingsphere.underlying.common.yaml.swapper.YamlRuleConfigurationSwapper;
import org.junit.Before;
......
......@@ -30,7 +30,7 @@ import org.apache.shardingsphere.sharding.strategy.route.ShardingStrategy;
import org.apache.shardingsphere.sharding.strategy.route.none.NoneShardingStrategy;
import org.apache.shardingsphere.sharding.strategy.route.standard.StandardShardingStrategy;
import org.apache.shardingsphere.sharding.spi.keygen.KeyGenerateAlgorithm;
import org.apache.shardingsphere.sharding.spi.type.TypedSPIRegistry;
import org.apache.shardingsphere.underlying.common.spi.type.TypedSPIRegistry;
import org.apache.shardingsphere.underlying.common.config.exception.ShardingSphereConfigurationException;
import org.apache.shardingsphere.underlying.common.datanode.DataNode;
import org.junit.Test;
......
......@@ -24,9 +24,9 @@ import org.apache.shardingsphere.sharding.api.config.strategy.NoneShardingStrate
import org.apache.shardingsphere.sharding.api.config.strategy.StandardShardingStrategyConfiguration;
import org.apache.shardingsphere.sharding.strategy.algorithm.keygen.fixture.IncrementKeyGenerateAlgorithm;
import org.apache.shardingsphere.sharding.strategy.algorithm.sharding.inline.InlineShardingAlgorithm;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sharding.spi.keygen.KeyGenerateAlgorithm;
import org.apache.shardingsphere.sharding.spi.type.TypedSPIRegistry;
import org.apache.shardingsphere.underlying.common.spi.type.TypedSPIRegistry;
import org.apache.shardingsphere.underlying.common.config.exception.ShardingSphereConfigurationException;
import org.apache.shardingsphere.underlying.common.datanode.DataNode;
import org.junit.BeforeClass;
......
......@@ -20,7 +20,7 @@ package org.apache.shardingsphere.sharding.yaml.swapper;
import org.apache.shardingsphere.sharding.api.config.KeyGeneratorConfiguration;
import org.apache.shardingsphere.sharding.yaml.config.YamlKeyGeneratorConfiguration;
import org.apache.shardingsphere.sharding.spi.keygen.KeyGenerateAlgorithm;
import org.apache.shardingsphere.sharding.spi.type.TypedSPIRegistry;
import org.apache.shardingsphere.underlying.common.spi.type.TypedSPIRegistry;
import org.junit.Test;
import java.util.Properties;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sharding.route.spi;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import java.util.Collection;
import java.util.Date;
......
......@@ -21,8 +21,8 @@ import org.apache.shardingsphere.shardingjdbc.executor.callback.RuleExecuteExecu
import org.apache.shardingsphere.shardingjdbc.executor.callback.RuleExecuteQueryExecutorCallback;
import org.apache.shardingsphere.shardingjdbc.executor.callback.RuleExecuteUpdateExecutorCallback;
import org.apache.shardingsphere.shardingjdbc.jdbc.core.context.RuntimeContext;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPIRegistry;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPIRegistry;
import org.apache.shardingsphere.sql.parser.binder.statement.SQLStatementContext;
import org.apache.shardingsphere.underlying.common.metadata.refresh.MetaDataRefreshStrategy;
import org.apache.shardingsphere.underlying.common.metadata.refresh.MetaDataRefreshStrategyFactory;
......
......@@ -21,8 +21,8 @@ import org.apache.shardingsphere.shardingjdbc.executor.callback.RuleExecuteExecu
import org.apache.shardingsphere.shardingjdbc.executor.callback.RuleExecuteQueryExecutorCallback;
import org.apache.shardingsphere.shardingjdbc.executor.callback.RuleExecuteUpdateExecutorCallback;
import org.apache.shardingsphere.shardingjdbc.jdbc.core.context.RuntimeContext;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPIRegistry;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPIRegistry;
import org.apache.shardingsphere.sql.parser.binder.statement.SQLStatementContext;
import org.apache.shardingsphere.underlying.common.metadata.refresh.MetaDataRefreshStrategy;
import org.apache.shardingsphere.underlying.common.metadata.refresh.MetaDataRefreshStrategyFactory;
......
......@@ -21,8 +21,8 @@ import com.google.common.base.Preconditions;
import lombok.Getter;
import org.apache.shardingsphere.shardingjdbc.executor.callback.RuleExecuteBatchExecutorCallback;
import org.apache.shardingsphere.shardingjdbc.jdbc.core.context.RuntimeContext;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPIRegistry;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPIRegistry;
import org.apache.shardingsphere.sql.parser.binder.statement.SQLStatementContext;
import org.apache.shardingsphere.underlying.common.rule.ShardingSphereRule;
import org.apache.shardingsphere.underlying.common.rule.DataNodeRoutedRule;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.shardingjdbc.executor.callback;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.rule.ShardingSphereRule;
import org.apache.shardingsphere.underlying.executor.sql.execute.jdbc.executor.SQLExecutorCallback;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.shardingjdbc.executor.callback;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.rule.ShardingSphereRule;
import org.apache.shardingsphere.underlying.executor.sql.execute.jdbc.executor.SQLExecutorCallback;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.shardingjdbc.executor.callback;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.rule.ShardingSphereRule;
import org.apache.shardingsphere.underlying.executor.sql.QueryResult;
import org.apache.shardingsphere.underlying.executor.sql.execute.jdbc.executor.SQLExecutorCallback;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.shardingjdbc.executor.callback;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.rule.ShardingSphereRule;
import org.apache.shardingsphere.underlying.executor.sql.execute.jdbc.executor.SQLExecutorCallback;
......
......@@ -25,15 +25,10 @@
<version>5.0.0-RC1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>sharding-metrics-spi</artifactId>
<dependencies>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-spi</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>sharding-metrics-configuration</artifactId>
......
......@@ -19,7 +19,7 @@ package org.apache.shardingsphere.metrics.spi;
import org.apache.shardingsphere.metrics.api.MetricsTrackerFactory;
import org.apache.shardingsphere.metrics.configuration.config.MetricsConfiguration;
import org.apache.shardingsphere.sharding.spi.type.TypedSPI;
import org.apache.shardingsphere.underlying.common.spi.type.TypedSPI;
/**
* Metrics tracker manager.
......
......@@ -20,7 +20,7 @@ package org.apache.shardingsphere.opentracing.hook;
import io.opentracing.mock.MockSpan;
import io.opentracing.tag.Tags;
import org.apache.shardingsphere.opentracing.constant.ShardingTags;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sql.parser.hook.ParsingHook;
import org.apache.shardingsphere.sql.parser.hook.ParsingHookRegistry;
import org.apache.shardingsphere.sql.parser.sql.statement.SQLStatement;
......
......@@ -20,7 +20,7 @@ package org.apache.shardingsphere.opentracing.hook;
import org.apache.shardingsphere.underlying.executor.kernel.ExecutorDataMap;
import org.apache.shardingsphere.underlying.common.hook.RootInvokeHook;
import org.apache.shardingsphere.underlying.common.hook.SPIRootInvokeHook;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.junit.BeforeClass;
import org.junit.Test;
......
......@@ -24,7 +24,7 @@ import io.opentracing.tag.Tags;
import org.apache.shardingsphere.opentracing.constant.ShardingTags;
import org.apache.shardingsphere.underlying.executor.sql.hook.SPISQLExecutionHook;
import org.apache.shardingsphere.underlying.executor.sql.hook.SQLExecutionHook;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.database.metadata.DataSourceMetaData;
import org.apache.shardingsphere.underlying.executor.kernel.ExecutorDataMap;
import org.junit.After;
......
......@@ -18,7 +18,7 @@
package org.apache.shardingsphere.orchestration.center;
import org.apache.shardingsphere.orchestration.center.listener.DataChangedEventListener;
import org.apache.shardingsphere.sharding.spi.type.TypedSPI;
import org.apache.shardingsphere.underlying.common.spi.type.TypedSPI;
import org.apache.shardingsphere.orchestration.center.config.CenterConfiguration;
import java.util.List;
......
......@@ -33,8 +33,8 @@ import org.apache.shardingsphere.orchestration.core.facade.properties.Orchestrat
import org.apache.shardingsphere.orchestration.core.facade.properties.OrchestrationPropertyKey;
import org.apache.shardingsphere.orchestration.core.metadatacenter.MetaDataCenter;
import org.apache.shardingsphere.orchestration.core.registrycenter.RegistryCenter;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sharding.spi.type.TypedSPIRegistry;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.type.TypedSPIRegistry;
import org.apache.shardingsphere.underlying.common.config.DataSourceConfiguration;
import org.apache.shardingsphere.underlying.common.config.RuleConfiguration;
......
......@@ -32,8 +32,8 @@ import org.apache.shardingsphere.shardingproxy.backend.response.BackendResponse;
import org.apache.shardingsphere.shardingproxy.backend.response.query.QueryHeader;
import org.apache.shardingsphere.shardingproxy.backend.response.query.QueryResponse;
import org.apache.shardingsphere.shardingproxy.backend.response.update.UpdateResponse;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPIRegistry;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPIRegistry;
import org.apache.shardingsphere.sql.parser.binder.statement.SQLStatementContext;
import org.apache.shardingsphere.sql.parser.sql.statement.dml.DeleteStatement;
import org.apache.shardingsphere.sql.parser.sql.statement.dml.InsertStatement;
......
......@@ -24,7 +24,7 @@ import org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.execut
import org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.wrapper.JDBCExecutorWrapper;
import org.apache.shardingsphere.shardingproxy.backend.response.query.QueryHeader;
import org.apache.shardingsphere.shardingproxy.backend.schema.ShardingSphereSchemas;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sql.parser.binder.segment.select.projection.ProjectionsContext;
import org.apache.shardingsphere.sql.parser.binder.statement.SQLStatementContext;
import org.apache.shardingsphere.sql.parser.binder.statement.dml.SelectStatementContext;
......
......@@ -18,7 +18,7 @@
package org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.execute.callback;
import org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.execute.response.ExecuteResponse;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.rule.ShardingSphereRule;
import org.apache.shardingsphere.underlying.executor.sql.execute.jdbc.executor.SQLExecutorCallback;
......
......@@ -20,7 +20,7 @@ package org.apache.shardingsphere.shardingproxy.frontend;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.apache.shardingsphere.underlying.common.database.type.DatabaseTypes;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.shardingproxy.frontend.spi.DatabaseProtocolFrontendEngine;
import org.apache.shardingsphere.underlying.common.database.type.DatabaseType;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.shardingscaling.core.spi;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import java.util.Map;
import java.util.TreeMap;
......
......@@ -21,9 +21,9 @@ import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
import java.util.Properties;
import lombok.Getter;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sharding.spi.keygen.KeyGenerateAlgorithm;
import org.apache.shardingsphere.sharding.spi.type.TypedSPIRegistry;
import org.apache.shardingsphere.underlying.common.spi.type.TypedSPIRegistry;
import org.springframework.beans.factory.FactoryBean;
/**
......
......@@ -20,9 +20,9 @@ package org.apache.shardingsphere.shardingjdbc.spring.namespace.factorybean;
import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
import lombok.Getter;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sharding.spi.algorithm.ShardingAlgorithm;
import org.apache.shardingsphere.sharding.spi.type.TypedSPIRegistry;
import org.apache.shardingsphere.underlying.common.spi.type.TypedSPIRegistry;
import org.springframework.beans.factory.FactoryBean;
import java.util.Properties;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.spring.boot.datasource;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import java.util.HashMap;
import java.util.Map;
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~ The ASF licenses this file to You under the Apache License, Version 2.0
~ (the "License"); you may not use this file except in compliance with
~ the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere</artifactId>
<version>5.0.0-RC1-SNAPSHOT</version>
</parent>
<artifactId>shardingsphere-spi</artifactId>
<name>${project.artifactId}</name>
</project>
......@@ -29,11 +29,6 @@
<name>${project.artifactId}</name>
<dependencies>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-spi</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-sql-parser-binder</artifactId>
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.underlying.common.hook;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import java.util.Collection;
......
......@@ -19,8 +19,8 @@ package org.apache.shardingsphere.underlying.common.metadata.schema;
import com.google.common.util.concurrent.ListeningExecutorService;
import lombok.RequiredArgsConstructor;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPIRegistry;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPIRegistry;
import org.apache.shardingsphere.sql.parser.binder.metadata.schema.SchemaMetaData;
import org.apache.shardingsphere.sql.parser.binder.metadata.schema.SchemaMetaDataLoader;
import org.apache.shardingsphere.sql.parser.binder.metadata.table.TableMetaData;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.underlying.common.metadata.schema.spi;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPI;
import org.apache.shardingsphere.sql.parser.binder.metadata.table.TableMetaData;
import org.apache.shardingsphere.underlying.common.rule.ShardingSphereRule;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.underlying.common.metadata.schema.spi;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPI;
import org.apache.shardingsphere.sql.parser.binder.metadata.schema.SchemaMetaData;
import org.apache.shardingsphere.sql.parser.binder.metadata.table.TableMetaData;
import org.apache.shardingsphere.underlying.common.config.properties.ConfigurationProperties;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.underlying.common.rule;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.config.RuleConfiguration;
import java.util.Collection;
......
......@@ -19,8 +19,8 @@ package org.apache.shardingsphere.underlying.common.rule;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPIRegistry;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPIRegistry;
import org.apache.shardingsphere.underlying.common.config.RuleConfiguration;
import java.util.Collection;
......
......@@ -15,11 +15,11 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.spi;
package org.apache.shardingsphere.underlying.common.spi;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.apache.shardingsphere.sharding.spi.exception.ServiceLoaderInstantiationException;
import org.apache.shardingsphere.underlying.common.spi.exception.ServiceLoaderInstantiationException;
import java.util.Collection;
import java.util.Collections;
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.spi.exception;
package org.apache.shardingsphere.underlying.common.spi.exception;
/**
* Service loader instantiation exception.
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.spi.exception;
package org.apache.shardingsphere.underlying.common.spi.exception;
/**
* Service provider not found exception.
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.spi.order;
package org.apache.shardingsphere.underlying.common.spi.order;
/**
* Ordered SPI.
......
......@@ -15,9 +15,9 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.spi.order;
package org.apache.shardingsphere.underlying.common.spi.order;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import java.util.Collection;
import java.util.LinkedHashMap;
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.spi.type;
package org.apache.shardingsphere.underlying.common.spi.type;
import java.util.Properties;
......
......@@ -15,10 +15,10 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.spi.type;
package org.apache.shardingsphere.underlying.common.spi.type;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sharding.spi.exception.ServiceProviderNotFoundException;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.exception.ServiceProviderNotFoundException;
import java.util.Optional;
import java.util.Properties;
......
......@@ -18,7 +18,7 @@
package org.apache.shardingsphere.underlying.common.yaml.engine.constructor;
import lombok.SneakyThrows;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.yaml.swapper.YamlRuleConfigurationSwapperEngine;
import org.yaml.snakeyaml.TypeDescription;
import org.yaml.snakeyaml.constructor.Construct;
......
......@@ -18,7 +18,7 @@
package org.apache.shardingsphere.underlying.common.yaml.engine.representer;
import lombok.SneakyThrows;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.yaml.engine.representer.processor.DefaultYamlTupleProcessor;
import org.apache.shardingsphere.underlying.common.yaml.engine.representer.processor.ShardingSphereYamlTupleProcessor;
import org.apache.shardingsphere.underlying.common.yaml.swapper.YamlRuleConfigurationSwapperEngine;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.underlying.common.yaml.swapper;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.config.RuleConfiguration;
import org.apache.shardingsphere.underlying.common.yaml.config.YamlRuleConfiguration;
......
......@@ -18,8 +18,8 @@
package org.apache.shardingsphere.underlying.common.yaml.swapper;
import lombok.SneakyThrows;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPIRegistry;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPIRegistry;
import org.apache.shardingsphere.underlying.common.config.RuleConfiguration;
import org.apache.shardingsphere.underlying.common.yaml.config.YamlRuleConfiguration;
......
......@@ -15,9 +15,9 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.spi;
package org.apache.shardingsphere.underlying.common.spi;
import org.apache.shardingsphere.sharding.spi.fixture.TypedSPIFixture;
import org.apache.shardingsphere.underlying.common.spi.fixture.TypedSPIFixture;
import org.junit.Test;
import java.util.Collection;
......
......@@ -15,9 +15,9 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.spi.fixture;
package org.apache.shardingsphere.underlying.common.spi.fixture;
import org.apache.shardingsphere.sharding.spi.type.TypedSPI;
import org.apache.shardingsphere.underlying.common.spi.type.TypedSPI;
public interface TypedSPIFixture extends TypedSPI {
}
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.spi.fixture;
package org.apache.shardingsphere.underlying.common.spi.fixture;
import lombok.Getter;
import lombok.Setter;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.underlying.executor.sql.group;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.executor.kernel.InputGroup;
import java.util.Collection;
......
......@@ -18,8 +18,8 @@
package org.apache.shardingsphere.underlying.executor.sql.group;
import com.google.common.collect.Lists;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPIRegistry;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPIRegistry;
import org.apache.shardingsphere.underlying.common.rule.ShardingSphereRule;
import org.apache.shardingsphere.underlying.executor.kernel.InputGroup;
import org.apache.shardingsphere.underlying.executor.sql.ConnectionMode;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.underlying.executor.sql.hook;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.database.metadata.DataSourceMetaData;
import java.util.Collection;
......
......@@ -17,8 +17,8 @@
package org.apache.shardingsphere.underlying.merge;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPIRegistry;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPIRegistry;
import org.apache.shardingsphere.sql.parser.binder.metadata.schema.SchemaMetaData;
import org.apache.shardingsphere.sql.parser.binder.statement.SQLStatementContext;
import org.apache.shardingsphere.underlying.common.config.properties.ConfigurationProperties;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.underlying.merge.engine;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.rule.ShardingSphereRule;
/**
......
......@@ -17,8 +17,8 @@
package org.apache.shardingsphere.underlying.rewrite;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPIRegistry;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPIRegistry;
import org.apache.shardingsphere.sql.parser.binder.metadata.schema.SchemaMetaData;
import org.apache.shardingsphere.sql.parser.binder.statement.SQLStatementContext;
import org.apache.shardingsphere.underlying.common.config.properties.ConfigurationProperties;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.underlying.rewrite.context;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.config.properties.ConfigurationProperties;
import org.apache.shardingsphere.underlying.common.rule.ShardingSphereRule;
import org.apache.shardingsphere.underlying.route.context.RouteContext;
......
......@@ -17,8 +17,8 @@
package org.apache.shardingsphere.underlying.route;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPIRegistry;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPIRegistry;
import org.apache.shardingsphere.sql.parser.binder.SQLStatementContextFactory;
import org.apache.shardingsphere.sql.parser.binder.statement.CommonSQLStatementContext;
import org.apache.shardingsphere.sql.parser.binder.statement.SQLStatementContext;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.underlying.route.decorator;
import org.apache.shardingsphere.sharding.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.spi.order.OrderedSPI;
import org.apache.shardingsphere.underlying.common.config.properties.ConfigurationProperties;
import org.apache.shardingsphere.underlying.common.metadata.ShardingSphereMetaData;
import org.apache.shardingsphere.underlying.common.rule.ShardingSphereRule;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.underlying.route.hook;
import org.apache.shardingsphere.sharding.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.underlying.common.spi.ShardingSphereServiceLoader;
import org.apache.shardingsphere.sql.parser.binder.metadata.schema.SchemaMetaData;
import org.apache.shardingsphere.underlying.route.context.RouteContext;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册