camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [3/3] camel git commit: CAMEL-10747: Pojo @Consume should have CamelContext injected/started its lifecycle. Thanks to Christopher Harris for reporting and the patch.
Date Sun, 29 Jan 2017 12:21:04 GMT
CAMEL-10747: Pojo @Consume should have CamelContext injected/started its lifecycle. Thanks
to Christopher Harris for reporting and the patch.


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

Branch: refs/heads/camel-2.17.x
Commit: a46b89019a9efc131ea824d57b3eefb0848b836d
Parents: 00be849
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sun Jan 29 13:20:42 2017 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sun Jan 29 13:20:42 2017 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/spring/CamelBeanPostProcessor.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/a46b8901/components/camel-spring/src/main/java/org/apache/camel/spring/CamelBeanPostProcessor.java
----------------------------------------------------------------------
diff --git a/components/camel-spring/src/main/java/org/apache/camel/spring/CamelBeanPostProcessor.java
b/components/camel-spring/src/main/java/org/apache/camel/spring/CamelBeanPostProcessor.java
index 50b5ceb..8bdf577 100644
--- a/components/camel-spring/src/main/java/org/apache/camel/spring/CamelBeanPostProcessor.java
+++ b/components/camel-spring/src/main/java/org/apache/camel/spring/CamelBeanPostProcessor.java
@@ -111,6 +111,7 @@ public class CamelBeanPostProcessor implements BeanPostProcessor, ApplicationCon
                         return new BeanInstantiationException(type, "Could not instantiate
proxy of type " + type.getName() + " on endpoint " + endpoint, e);
                     }
 
+                    @Override
                     protected boolean isSingleton(Object bean, String beanName) {
                         // no application context has been injected which means the bean
                         // has not been enlisted in Spring application context
@@ -121,7 +122,8 @@ public class CamelBeanPostProcessor implements BeanPostProcessor, ApplicationCon
                         }
                     }
 
-                    protected void startService(Service service, Object bean, String beanName)
throws Exception {
+                    @Override
+                    protected void startService(Service service, CamelContext camelContext,
Object bean, String beanName) throws Exception {
                         if (isSingleton(bean, beanName)) {
                             getCamelContext().addService(service);
                         } else {


Mime
View raw message