This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new d5dacc6f825 Add @SingletonSPI for SupportedSQLChecker and 
SupportedSQLCheckersBuilder (#36296)
d5dacc6f825 is described below

commit d5dacc6f825795bf3467185709729a453b4b1971
Author: Liang Zhang <[email protected]>
AuthorDate: Thu Aug 14 11:47:59 2025 +0800

    Add @SingletonSPI for SupportedSQLChecker and SupportedSQLCheckersBuilder 
(#36296)
    
    * Update docs
    
    * Add @SingletonSPI for SupportedSQLChecker and SupportedSQLCheckersBuilder
    
    * Add @SingletonSPI for SupportedSQLChecker and SupportedSQLCheckersBuilder
---
 infra/algorithm/type/cryptographic/type/aes/pom.xml                   | 1 +
 .../org/apache/shardingsphere/infra/checker/SupportedSQLChecker.java  | 4 +++-
 .../shardingsphere/infra/checker/SupportedSQLCheckersBuilder.java     | 4 ++--
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/infra/algorithm/type/cryptographic/type/aes/pom.xml 
b/infra/algorithm/type/cryptographic/type/aes/pom.xml
index a6ed87db113..13129f1bf5e 100644
--- a/infra/algorithm/type/cryptographic/type/aes/pom.xml
+++ b/infra/algorithm/type/cryptographic/type/aes/pom.xml
@@ -33,6 +33,7 @@
             
<artifactId>shardingsphere-infra-algorithm-cryptographic-spi</artifactId>
             <version>${project.version}</version>
         </dependency>
+        
         <dependency>
             <groupId>commons-codec</groupId>
             <artifactId>commons-codec</artifactId>
diff --git 
a/infra/checker/src/main/java/org/apache/shardingsphere/infra/checker/SupportedSQLChecker.java
 
b/infra/checker/src/main/java/org/apache/shardingsphere/infra/checker/SupportedSQLChecker.java
index c3c0a6cf6e5..f63f554ca14 100644
--- 
a/infra/checker/src/main/java/org/apache/shardingsphere/infra/checker/SupportedSQLChecker.java
+++ 
b/infra/checker/src/main/java/org/apache/shardingsphere/infra/checker/SupportedSQLChecker.java
@@ -21,13 +21,15 @@ import 
org.apache.shardingsphere.infra.binder.context.statement.SQLStatementCont
 import 
org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase;
 import 
org.apache.shardingsphere.infra.metadata.database.schema.model.ShardingSphereSchema;
 import org.apache.shardingsphere.infra.rule.ShardingSphereRule;
+import org.apache.shardingsphere.infra.spi.annotation.SingletonSPI;
 
 /**
  * Supported SQL checker.
- * 
+ *
  * @param <T> type of SQL statement context
  * @param <R> type of ShardingSphere rule
  */
+@SingletonSPI
 public interface SupportedSQLChecker<T extends SQLStatementContext, R extends 
ShardingSphereRule> {
     
     /**
diff --git 
a/infra/checker/src/main/java/org/apache/shardingsphere/infra/checker/SupportedSQLCheckersBuilder.java
 
b/infra/checker/src/main/java/org/apache/shardingsphere/infra/checker/SupportedSQLCheckersBuilder.java
index 45439634120..de53d2a8367 100644
--- 
a/infra/checker/src/main/java/org/apache/shardingsphere/infra/checker/SupportedSQLCheckersBuilder.java
+++ 
b/infra/checker/src/main/java/org/apache/shardingsphere/infra/checker/SupportedSQLCheckersBuilder.java
@@ -17,8 +17,8 @@
 
 package org.apache.shardingsphere.infra.checker;
 
-import groovy.lang.Singleton;
 import org.apache.shardingsphere.infra.rule.ShardingSphereRule;
+import org.apache.shardingsphere.infra.spi.annotation.SingletonSPI;
 import org.apache.shardingsphere.infra.spi.type.ordered.OrderedSPI;
 
 import java.util.Collection;
@@ -28,7 +28,7 @@ import java.util.Collection;
  * 
  * @param <T> type of rule
  */
-@Singleton
+@SingletonSPI
 public interface SupportedSQLCheckersBuilder<T extends ShardingSphereRule> 
extends OrderedSPI<T> {
     
     /**

Reply via email to