This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/main by this push: new 6628636 CAMEL-16656: camel-core - ResourceReloader SPI - Allow to reload on changes 6628636 is described below commit 662863636ee2a4fcc2417c01f9d5826d86a148ee Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Sun Nov 21 16:58:17 2021 +0100 CAMEL-16656: camel-core - ResourceReloader SPI - Allow to reload on changes --- core/camel-spring-boot/src/main/docs/spring-boot.json | 7 +++++++ .../apache/camel/spring/boot/CamelConfigurationProperties.java | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/core/camel-spring-boot/src/main/docs/spring-boot.json b/core/camel-spring-boot/src/main/docs/spring-boot.json index ee02d3d..6453476 100644 --- a/core/camel-spring-boot/src/main/docs/spring-boot.json +++ b/core/camel-spring-boot/src/main/docs/spring-boot.json @@ -854,6 +854,13 @@ "defaultValue": "src\/main\/resources" }, { + "name": "camel.springboot.routes-reload-directory-recursive", + "type": "java.lang.Boolean", + "description": "Whether the directory to scan should include sub directories. Depending on the number of sub directories, then this can cause the JVM to startup slower as Camel uses the JDK file-watch service to scan for file changes.", + "sourceType": "org.apache.camel.spring.boot.CamelConfigurationProperties", + "defaultValue": false + }, + { "name": "camel.springboot.routes-reload-enabled", "type": "java.lang.Boolean", "description": "Used for enabling automatic routes reloading. If enabled then Camel will watch for file changes in the given reload directory, and trigger reloading routes if files are changed.", diff --git a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java index cf6e2fa..0c9fdac 100644 --- a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java +++ b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java @@ -196,6 +196,14 @@ public class CamelConfigurationProperties extends DefaultConfigurationProperties private String routesReloadDirectory = "src/main/resources"; /** + * Whether the directory to scan should include sub directories. + * + * Depending on the number of sub directories, then this can cause the JVM to startup slower as Camel uses the JDK + * file-watch service to scan for file changes. + */ + private boolean routesReloadDirectoryRecursive; + + /** * Used for inclusive filtering of routes from directories. * * Typical used for specifying to accept routes in XML or YAML files.