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 2015/04/02 09:48:45 UTC

[4/4] camel git commit: Added a comment for the Main.getOrCreateCamelContext()

Added a comment for the Main.getOrCreateCamelContext()


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

Branch: refs/heads/master
Commit: 0d9928a23e3b2c89638b3ec15dd0e3bb3dc35aa6
Parents: 2d9b777
Author: Willem Jiang <wi...@gmail.com>
Authored: Thu Apr 2 13:46:41 2015 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Thu Apr 2 15:48:04 2015 +0800

----------------------------------------------------------------------
 camel-core/src/main/java/org/apache/camel/main/Main.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/0d9928a2/camel-core/src/main/java/org/apache/camel/main/Main.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/main/Main.java b/camel-core/src/main/java/org/apache/camel/main/Main.java
index 7a50785..1a7d74f 100644
--- a/camel-core/src/main/java/org/apache/camel/main/Main.java
+++ b/camel-core/src/main/java/org/apache/camel/main/Main.java
@@ -99,7 +99,11 @@ public class Main extends MainSupport {
     }
 
     /**
+     * 
      * Gets or creates the {@link org.apache.camel.CamelContext} this main class is using.
+     * 
+     * It just create a new CamelContextMap per call, please don't use it to access the camel context that will be ran by main.
+     * If you want to setup the CamelContext please use MainListener to get the new created camel context.
      */
     public CamelContext getOrCreateCamelContext() {
         // force init