You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2016/12/19 15:42:44 UTC
camel git commit: CAMEL-10599: Add ReloadStrategy to allow watching
for file changes and reload routes on the fly.
Repository: camel
Updated Branches:
refs/heads/master 82dbe00cf -> 424dcdad3
CAMEL-10599: Add ReloadStrategy to allow watching for file changes and reload routes on the fly.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/424dcdad
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/424dcdad
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/424dcdad
Branch: refs/heads/master
Commit: 424dcdad388f43bd9d74d02f8e16fb159bcafa3b
Parents: 82dbe00
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Dec 19 16:42:36 2016 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Dec 19 16:42:36 2016 +0100
----------------------------------------------------------------------
.../src/main/java/org/apache/camel/main/MainSupport.java | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/424dcdad/camel-core/src/main/java/org/apache/camel/main/MainSupport.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/main/MainSupport.java b/camel-core/src/main/java/org/apache/camel/main/MainSupport.java
index cb77814..03b65d8 100644
--- a/camel-core/src/main/java/org/apache/camel/main/MainSupport.java
+++ b/camel-core/src/main/java/org/apache/camel/main/MainSupport.java
@@ -358,6 +358,11 @@ public abstract class MainSupport extends ServiceSupport {
return fileWatchDirectory;
}
+ /**
+ * Sets the directory name to watch XML file changes to trigger live reload of Camel routes.
+ * <p/>
+ * Notice you cannot set this value and a custom {@link ReloadStrategy} as well.
+ */
public void setFileWatchDirectory(String fileWatchDirectory) {
this.fileWatchDirectory = fileWatchDirectory;
}
@@ -370,6 +375,11 @@ public abstract class MainSupport extends ServiceSupport {
return reloadStrategy;
}
+ /**
+ * Sets a custom {@link ReloadStrategy} to be used.
+ * <p/>
+ * Notice you cannot set this value and the fileWatchDirectory as well.
+ */
public void setReloadStrategy(ReloadStrategy reloadStrategy) {
this.reloadStrategy = reloadStrategy;
}