You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2016/03/28 14:37:05 UTC

[1/5] camel git commit: Remove noisy logging

Repository: camel
Updated Branches:
  refs/heads/camel-2.16.x b60796a7a -> 8ff5709fa
  refs/heads/camel-2.17.x a1a81ddd7 -> e7ca81ba3
  refs/heads/master 7e4eb9674 -> 3343aec81


Remove noisy logging


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

Branch: refs/heads/master
Commit: 74748d9f9bda7a1fb2d43b10fab0f0435ac43d0d
Parents: 7e4eb96
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Mar 28 14:29:10 2016 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Mar 28 14:29:10 2016 +0200

----------------------------------------------------------------------
 .../camel/test/spring/CamelSpringDelegatingTestContextLoader.java  | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/74748d9f/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringDelegatingTestContextLoader.java
----------------------------------------------------------------------
diff --git a/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringDelegatingTestContextLoader.java b/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringDelegatingTestContextLoader.java
index c7511ff..5f6c5e7 100644
--- a/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringDelegatingTestContextLoader.java
+++ b/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringDelegatingTestContextLoader.java
@@ -91,8 +91,6 @@ public class CamelSpringDelegatingTestContextLoader extends DelegatingSmartConte
             
         AnnotationConfigUtils.registerAnnotationConfigProcessors((BeanDefinitionRegistry) context);
 
-        logger.info(">>>> I was here <<<<<");
-
         // Post CamelContext(s) instantiation but pre CamelContext(s) start setup
         handleProvidesBreakpoint(context, testClass);
         handleShutdownTimeout(context, testClass);


[5/5] camel git commit: Remove noisy logging

Posted by da...@apache.org.
Remove noisy logging


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

Branch: refs/heads/camel-2.16.x
Commit: 8ff5709fa45acfdc3c2df637896ebae9bc9a0579
Parents: b60796a
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Mar 28 14:29:10 2016 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Mar 28 14:36:43 2016 +0200

----------------------------------------------------------------------
 .../camel/test/spring/CamelSpringDelegatingTestContextLoader.java  | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/8ff5709f/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringDelegatingTestContextLoader.java
----------------------------------------------------------------------
diff --git a/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringDelegatingTestContextLoader.java b/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringDelegatingTestContextLoader.java
index c7511ff..5f6c5e7 100644
--- a/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringDelegatingTestContextLoader.java
+++ b/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringDelegatingTestContextLoader.java
@@ -91,8 +91,6 @@ public class CamelSpringDelegatingTestContextLoader extends DelegatingSmartConte
             
         AnnotationConfigUtils.registerAnnotationConfigProcessors((BeanDefinitionRegistry) context);
 
-        logger.info(">>>> I was here <<<<<");
-
         // Post CamelContext(s) instantiation but pre CamelContext(s) start setup
         handleProvidesBreakpoint(context, testClass);
         handleShutdownTimeout(context, testClass);


[4/5] camel git commit: Camel Spring Javaconfig should also ioc producer/consumer template as spring-boot does.

Posted by da...@apache.org.
Camel Spring Javaconfig should also ioc producer/consumer template as spring-boot does.


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

Branch: refs/heads/camel-2.17.x
Commit: e7ca81ba3f7a1f97f22a28ae3dfc9a4dcc792e82
Parents: bfbceb3
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Mar 28 14:35:48 2016 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Mar 28 14:36:22 2016 +0200

----------------------------------------------------------------------
 .../spring/javaconfig/CamelConfiguration.java   | 21 ++++++++++++++++++++
 1 file changed, 21 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/e7ca81ba/components/camel-spring-javaconfig/src/main/java/org/apache/camel/spring/javaconfig/CamelConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-spring-javaconfig/src/main/java/org/apache/camel/spring/javaconfig/CamelConfiguration.java b/components/camel-spring-javaconfig/src/main/java/org/apache/camel/spring/javaconfig/CamelConfiguration.java
index d8aaf23..2df05da 100644
--- a/components/camel-spring-javaconfig/src/main/java/org/apache/camel/spring/javaconfig/CamelConfiguration.java
+++ b/components/camel-spring-javaconfig/src/main/java/org/apache/camel/spring/javaconfig/CamelConfiguration.java
@@ -19,9 +19,12 @@ package org.apache.camel.spring.javaconfig;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
+
 import static java.util.Collections.emptyList;
 
 import org.apache.camel.CamelContext;
+import org.apache.camel.ConsumerTemplate;
+import org.apache.camel.ProducerTemplate;
 import org.apache.camel.RoutesBuilder;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.spring.CamelBeanPostProcessor;
@@ -123,6 +126,24 @@ public abstract class CamelConfiguration implements BeanFactoryAware, Applicatio
         return configuredObject;
     }
 
+    /**
+     * Get's the {@link ProducerTemplate} to be used.
+     */
+    @Bean(initMethod = "", destroyMethod = "")
+    // Camel handles the lifecycle of this bean
+    public ProducerTemplate producerTemplate(CamelContext camelContext) throws Exception {
+        return camelContext.createProducerTemplate();
+    }
+
+    /**
+     * Get's the {@link ConsumerTemplate} to be used.
+     */
+    @Bean(initMethod = "", destroyMethod = "")
+    // Camel handles the lifecycle of this bean
+    public ConsumerTemplate consumerTemplate(CamelContext camelContext) throws Exception {
+        return camelContext.createConsumerTemplate();
+    }
+
     @Bean
     public CamelBeanPostProcessor camelBeanPostProcessor() throws Exception {
         CamelBeanPostProcessor answer = new CamelBeanPostProcessor();


[2/5] camel git commit: Camel Spring Javaconfig should also ioc producer/consumer template as spring-boot does.

Posted by da...@apache.org.
Camel Spring Javaconfig should also ioc producer/consumer template as spring-boot does.


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

Branch: refs/heads/master
Commit: 3343aec81a45763bbd3b46ec3646b217948689eb
Parents: 74748d9
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Mar 28 14:35:48 2016 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Mar 28 14:35:48 2016 +0200

----------------------------------------------------------------------
 .../spring/javaconfig/CamelConfiguration.java   | 21 ++++++++++++++++++++
 1 file changed, 21 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/3343aec8/components/camel-spring-javaconfig/src/main/java/org/apache/camel/spring/javaconfig/CamelConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-spring-javaconfig/src/main/java/org/apache/camel/spring/javaconfig/CamelConfiguration.java b/components/camel-spring-javaconfig/src/main/java/org/apache/camel/spring/javaconfig/CamelConfiguration.java
index d8aaf23..2df05da 100644
--- a/components/camel-spring-javaconfig/src/main/java/org/apache/camel/spring/javaconfig/CamelConfiguration.java
+++ b/components/camel-spring-javaconfig/src/main/java/org/apache/camel/spring/javaconfig/CamelConfiguration.java
@@ -19,9 +19,12 @@ package org.apache.camel.spring.javaconfig;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
+
 import static java.util.Collections.emptyList;
 
 import org.apache.camel.CamelContext;
+import org.apache.camel.ConsumerTemplate;
+import org.apache.camel.ProducerTemplate;
 import org.apache.camel.RoutesBuilder;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.spring.CamelBeanPostProcessor;
@@ -123,6 +126,24 @@ public abstract class CamelConfiguration implements BeanFactoryAware, Applicatio
         return configuredObject;
     }
 
+    /**
+     * Get's the {@link ProducerTemplate} to be used.
+     */
+    @Bean(initMethod = "", destroyMethod = "")
+    // Camel handles the lifecycle of this bean
+    public ProducerTemplate producerTemplate(CamelContext camelContext) throws Exception {
+        return camelContext.createProducerTemplate();
+    }
+
+    /**
+     * Get's the {@link ConsumerTemplate} to be used.
+     */
+    @Bean(initMethod = "", destroyMethod = "")
+    // Camel handles the lifecycle of this bean
+    public ConsumerTemplate consumerTemplate(CamelContext camelContext) throws Exception {
+        return camelContext.createConsumerTemplate();
+    }
+
     @Bean
     public CamelBeanPostProcessor camelBeanPostProcessor() throws Exception {
         CamelBeanPostProcessor answer = new CamelBeanPostProcessor();


[3/5] camel git commit: Remove noisy logging

Posted by da...@apache.org.
Remove noisy logging


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

Branch: refs/heads/camel-2.17.x
Commit: bfbceb3c56832997dd95519813224dd70ec4fc94
Parents: a1a81dd
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Mar 28 14:29:10 2016 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Mar 28 14:36:16 2016 +0200

----------------------------------------------------------------------
 .../camel/test/spring/CamelSpringDelegatingTestContextLoader.java  | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/bfbceb3c/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringDelegatingTestContextLoader.java
----------------------------------------------------------------------
diff --git a/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringDelegatingTestContextLoader.java b/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringDelegatingTestContextLoader.java
index c7511ff..5f6c5e7 100644
--- a/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringDelegatingTestContextLoader.java
+++ b/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringDelegatingTestContextLoader.java
@@ -91,8 +91,6 @@ public class CamelSpringDelegatingTestContextLoader extends DelegatingSmartConte
             
         AnnotationConfigUtils.registerAnnotationConfigProcessors((BeanDefinitionRegistry) context);
 
-        logger.info(">>>> I was here <<<<<");
-
         // Post CamelContext(s) instantiation but pre CamelContext(s) start setup
         handleProvidesBreakpoint(context, testClass);
         handleShutdownTimeout(context, testClass);