|
@@ -1,3 +1,6 @@
|
|
|
|
+/**
|
|
|
|
+ * DBSyncer Copyright 2020-2024 All Rights Reserved.
|
|
|
|
+ */
|
|
package org.dbsyncer.manager;
|
|
package org.dbsyncer.manager;
|
|
|
|
|
|
import org.dbsyncer.manager.deployment.StandaloneProvider;
|
|
import org.dbsyncer.manager.deployment.StandaloneProvider;
|
|
@@ -6,6 +9,8 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Configuration;
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
|
|
|
+import java.util.ServiceLoader;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* @author AE86
|
|
* @author AE86
|
|
* @version 1.0.0
|
|
* @version 1.0.0
|
|
@@ -17,6 +22,10 @@ public class ManagerSupportConfiguration {
|
|
@Bean
|
|
@Bean
|
|
@ConditionalOnMissingBean
|
|
@ConditionalOnMissingBean
|
|
public DeploymentService deploymentService() {
|
|
public DeploymentService deploymentService() {
|
|
|
|
+ ServiceLoader<DeploymentService> services = ServiceLoader.load(DeploymentService.class, Thread.currentThread().getContextClassLoader());
|
|
|
|
+ for (DeploymentService s : services) {
|
|
|
|
+ return s;
|
|
|
|
+ }
|
|
return new StandaloneProvider();
|
|
return new StandaloneProvider();
|
|
}
|
|
}
|
|
|
|
|