CAMEL-11817: cluster-service : camel-atomix spring boot support should have 
better bean names


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/3bed414f
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/3bed414f
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/3bed414f

Branch: refs/heads/master
Commit: 3bed414f7a824188b710fd3ea4ac15f150723687
Parents: ce2b783
Author: lburgazzoli <lburgazz...@gmail.com>
Authored: Sat Sep 23 17:16:56 2017 +0200
Committer: lburgazzoli <lburgazz...@gmail.com>
Committed: Mon Sep 25 14:21:00 2017 +0200

----------------------------------------------------------------------
 .../ha/springboot/AtomixClusterServiceAutoConfiguration.java    | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/3bed414f/platforms/spring-boot/components-starter/camel-atomix-starter/src/main/java/org/apache/camel/component/atomix/ha/springboot/AtomixClusterServiceAutoConfiguration.java
----------------------------------------------------------------------
diff --git 
a/platforms/spring-boot/components-starter/camel-atomix-starter/src/main/java/org/apache/camel/component/atomix/ha/springboot/AtomixClusterServiceAutoConfiguration.java
 
b/platforms/spring-boot/components-starter/camel-atomix-starter/src/main/java/org/apache/camel/component/atomix/ha/springboot/AtomixClusterServiceAutoConfiguration.java
index 8bb7ab5..a6e1e6b 100644
--- 
a/platforms/spring-boot/components-starter/camel-atomix-starter/src/main/java/org/apache/camel/component/atomix/ha/springboot/AtomixClusterServiceAutoConfiguration.java
+++ 
b/platforms/spring-boot/components-starter/camel-atomix-starter/src/main/java/org/apache/camel/component/atomix/ha/springboot/AtomixClusterServiceAutoConfiguration.java
@@ -48,7 +48,7 @@ public class AtomixClusterServiceAutoConfiguration {
     @Bean(initMethod = "start", destroyMethod = "stop")
     @Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)
     @ConditionalOnProperty(prefix = "camel.clustered.service.atomix", name = 
"mode", havingValue = "node")
-    public CamelClusterService clusterNode() {
+    public CamelClusterService atomixClusterService() {
         AtomixClusterService service = new AtomixClusterService();
         
service.setNodes(configuration.getNodes().stream().map(Address::new).collect(Collectors.toList()));
 
@@ -65,7 +65,7 @@ public class AtomixClusterServiceAutoConfiguration {
     @Bean(initMethod = "start", destroyMethod = "stop")
     @Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)
     @ConditionalOnProperty(prefix = "camel.clustered.service.atomix", name = 
"mode", havingValue = "client")
-    public CamelClusterService clusterClient() {
+    public CamelClusterService atomixClusterClientService() {
         AtomixClusterClientService service = new AtomixClusterClientService();
         
service.setNodes(configuration.getNodes().stream().map(Address::new).collect(Collectors.toList()));
 
@@ -88,7 +88,6 @@ public class AtomixClusterServiceAutoConfiguration {
         static class IfEnabled {
         }
 
-
         @ConditionalOnProperty(prefix = "camel.clustered.service.atomix", name 
= "mode")
         static class WithMode {
         }

Reply via email to