You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by on...@apache.org on 2017/06/25 16:24:03 UTC
camel git commit: CAMEL-11441: Main - setPropertyPlaceholderLocations
should be public
Repository: camel
Updated Branches:
refs/heads/camel-2.19.x ba4689296 -> d759b51d2
CAMEL-11441: Main - setPropertyPlaceholderLocations should be public
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/d759b51d
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d759b51d
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d759b51d
Branch: refs/heads/camel-2.19.x
Commit: d759b51d26de32a8266f22ea26b5428194426fda
Parents: ba46892
Author: Claus Ibsen <da...@apache.org>
Authored: Fri Jun 23 15:58:37 2017 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Fri Jun 23 16:02:05 2017 +0200
----------------------------------------------------------------------
.../main/java/org/apache/camel/main/Main.java | 21 ++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/d759b51d/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 0c12d6d..f19b567 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
@@ -116,7 +116,17 @@ public class Main extends MainSupport {
throw new IllegalStateException("Error creating CamelContext");
}
}
-
+
+ /**
+ * A list of locations to load properties. You can use comma to separate multiple locations.
+ * This option will override any default locations and only use the locations from this option.
+ */
+ public void setPropertyPlaceholderLocations(String location) {
+ PropertiesComponent pc = new PropertiesComponent();
+ pc.setLocation(location);
+ bind("properties", pc);
+ }
+
// Implementation methods
// -------------------------------------------------------------------------
@@ -175,13 +185,4 @@ public class Main extends MainSupport {
return new DefaultCamelContext();
}
- /**
- * A list of locations to load properties. You can use comma to separate multiple locations.
- * This option will override any default locations and only use the locations from this option.
- */
- protected void setPropertyPlaceholderLocations(String location) {
- PropertiesComponent pc = new PropertiesComponent();
- pc.setLocation(location);
- bind("properties", pc);
- }
}