tristaZero edited a comment on issue #5196: Provide SPI spring namespace 
configuration for all the Sharding algorithms
URL: 
https://github.com/apache/incubator-shardingsphere/issues/5196#issuecomment-613883574
 
 
   ### Background
   All the sharding algorithms are loading by SPI currently, which you can 
refer to #5017 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 #5190 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