You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2013/12/09 03:11:40 UTC

[36/50] [abbrv] git commit: CAMEL-7038: Polished.

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/camel-gora
Commit: 33d7c49cb2c124f2b102f0b0221cfaf089b88915
Parents: 4ca3621
Author: Babak Vahdat <bv...@apache.org>
Authored: Wed Dec 4 13:27:36 2013 +0100
Committer: Babak Vahdat <bv...@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() {