tristaZero opened a new issue #5196: Provide SPI spring namespace configuration 
for all the Sharding algorithms
URL: https://github.com/apache/incubator-shardingsphere/issues/5196
 
 
   Hi 
   **Content:** This issue is to provide SPI spring namespace configuration for 
Sharding algorithms. 
   **Difficulty rating:** ★★☆☆☆
   
   
   Background
   All the sharding algorithms are loading by SPI, which you can refer to[1] to 
learn more. Now, we need to provide SPI spring namespace configuration for all 
the sharding algorithms.
   
   What is wanted
   Use the following configuration format
   > <spi:sharding-algorithm id="standardModuloDatabaseShardingAlgorithm" 
type="STANDARD_TEST_DB" />
   
   instead of
   > <bean id="standardModuloDatabaseShardingAlgorithm" 
class="org.apache.shardingsphere.shardingjdbc.spring.algorithm.StandardModuloDatabaseShardingAlgorithm"
 />
   
   How
   1.Refer to [2] to learn how to use `beanFactory` to call `TypedSPIRegistry`
   2.Provide `spi:sharding-algorithm` for users to configure.
   3.Modify all the bean configurations of `shardingAlgorithm`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to