camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bvah...@apache.org
Subject git commit: CAMEL-7038: Polished.
Date Wed, 04 Dec 2013 12:27:40 GMT
Updated Branches:
  refs/heads/master 4ca362155 -> 33d7c49cb


CAMEL-7038: Polished.

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

Branch: refs/heads/master
Commit: 33d7c49cb2c124f2b102f0b0221cfaf089b88915
Parents: 4ca3621
Author: Babak Vahdat <bvahdat@apache.org>
Authored: Wed Dec 4 13:27:36 2013 +0100
Committer: Babak Vahdat <bvahdat@apache.org>
Committed: Wed Dec 4 13:27:36 2013 +0100

----------------------------------------------------------------------
 .../camel-guice/src/main/java/org/apache/camel/guice/Main.java  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/33d7c49c/components/camel-guice/src/main/java/org/apache/camel/guice/Main.java
----------------------------------------------------------------------
diff --git a/components/camel-guice/src/main/java/org/apache/camel/guice/Main.java b/components/camel-guice/src/main/java/org/apache/camel/guice/Main.java
index 1d6d375..4966bd0 100644
--- a/components/camel-guice/src/main/java/org/apache/camel/guice/Main.java
+++ b/components/camel-guice/src/main/java/org/apache/camel/guice/Main.java
@@ -33,6 +33,7 @@ import com.google.common.collect.Maps;
 import com.google.inject.Binding;
 import com.google.inject.Injector;
 import com.google.inject.Key;
+
 import org.apache.camel.CamelContext;
 import org.apache.camel.ProducerTemplate;
 import org.apache.camel.guice.inject.Injectors;
@@ -130,7 +131,7 @@ public class Main extends MainSupport {
     }
 
     protected void doStop() throws Exception {
-        LOG.info("Apache Camel stopping");
+        super.doStop();
 
         if (injector != null) {
             Injectors.close(injector);
@@ -148,7 +149,7 @@ public class Main extends MainSupport {
         for (CamelContext camelContext : getCamelContexts()) {
             return camelContext.createProducerTemplate();
         }
-        throw new IllegalArgumentException("No CamelContexts are available so cannot create
a ProducerTemplate!");
+        throw new IllegalArgumentException("No CamelContext is available so cannot create
a ProducerTemplate!");
     }
 
     protected Map<String, CamelContext> getCamelContextMap() {


Mime
View raw message