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 2a41bdc3234 CAMEL-18267: ContextReloadStrategy to reload all routes after external changes such as properties/vault updated. 2a41bdc3234 is described below commit 2a41bdc32343ab39fdfc2e7a7394600af69707e5 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Thu Sep 1 17:40:40 2022 +0200 CAMEL-18267: ContextReloadStrategy to reload all routes after external changes such as properties/vault updated. --- core/camel-spring-boot/src/main/docs/spring-boot.json | 7 +++++++ .../org/apache/camel/spring/boot/CamelConfigurationProperties.java | 7 +++++++ 2 files changed, 14 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 d3967bb076d..e6b5c98e9ac 100644 --- a/core/camel-spring-boot/src/main/docs/spring-boot.json +++ b/core/camel-spring-boot/src/main/docs/spring-boot.json @@ -547,6 +547,13 @@ "sourceType": "org.apache.camel.spring.boot.CamelConfigurationProperties", "defaultValue": 1000 }, + { + "name": "camel.springboot.context-reload-enabled", + "type": "java.lang.Boolean", + "description": "Used for enabling context reloading. If enabled then Camel allow external systems such as security vaults (AWS secrets manager, etc.) to trigger refreshing Camel by updating property placeholders and reload all existing routes to take changes into effect.", + "sourceType": "org.apache.camel.spring.boot.CamelConfigurationProperties", + "defaultValue": false + }, { "name": "camel.springboot.debugging", "type": "java.lang.Boolean", 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 a5ac4bf2a55..b41cbf17e6b 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 @@ -653,6 +653,13 @@ public class CamelConfigurationProperties extends DefaultConfigurationProperties */ private boolean beanIntrospectionExtendedStatistics; + /** + * Used for enabling context reloading. If enabled then Camel allow external systems such as + * security vaults (AWS secrets manager, etc.) to trigger refreshing Camel by updating + * property placeholders and reload all existing routes to take changes into effect. + */ + private boolean contextReloadEnabled; + /** * Sets the logging level used by bean introspection, logging activity of its usage. * The default is TRACE.