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

commit 77be28b856388c5fd0cc73753e1575391d4e1a54
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Aug 21 15:06:37 2023 +0200

    CAMEL-19765: camel-core - SPI for DumpRouteStrategy.
---
 .../src/main/docs/spring-boot.json                 | 34 ++++++++++++++++++++++
 .../spring/boot/CamelConfigurationProperties.java  | 29 ++++++++++++++++++
 2 files changed, 63 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 9531e5fa046..b1f825a0f72 100644
--- a/core/camel-spring-boot/src/main/docs/spring-boot.json
+++ b/core/camel-spring-boot/src/main/docs/spring-boot.json
@@ -607,6 +607,40 @@
       "description": "If dumping is enabled then Camel will during startup 
dump all loaded routes (incl rests and route templates) represented as 
XML\/YAML DSL into the log. This is intended for trouble shooting or to assist 
during development. Sensitive information that may be configured in the route 
endpoints could potentially be included in the dump output and is therefore not 
recommended being used for production usage. This requires to have 
camel-xml-io\/camel-yaml-io on the classpa [...]
       "sourceType": "org.apache.camel.spring.boot.CamelConfigurationProperties"
     },
+    {
+      "name": "camel.springboot.dump-routes-directory",
+      "type": "java.lang.String",
+      "description": "Whether to save route dumps to files in the given 
directory. The name of the files are based on original loaded resource, or an 
autogenerated name.",
+      "sourceType": "org.apache.camel.spring.boot.CamelConfigurationProperties"
+    },
+    {
+      "name": "camel.springboot.dump-routes-include",
+      "type": "java.lang.String",
+      "description": "Controls what to include in output for route dumping. 
Possible values: routes, rests, routeTemplates. Multiple values can be 
separated by comma. Default is routes.",
+      "sourceType": 
"org.apache.camel.spring.boot.CamelConfigurationProperties",
+      "defaultValue": "routes"
+    },
+    {
+      "name": "camel.springboot.dump-routes-log",
+      "type": "java.lang.Boolean",
+      "description": "Whether to log route dumps to Logger",
+      "sourceType": 
"org.apache.camel.spring.boot.CamelConfigurationProperties",
+      "defaultValue": true
+    },
+    {
+      "name": "camel.springboot.dump-routes-resolve-placeholders",
+      "type": "java.lang.Boolean",
+      "description": "Whether to resolve property placeholders in the dumped 
output. Default is true.",
+      "sourceType": 
"org.apache.camel.spring.boot.CamelConfigurationProperties",
+      "defaultValue": true
+    },
+    {
+      "name": "camel.springboot.dump-routes-uri-as-parameters",
+      "type": "java.lang.Boolean",
+      "description": "When dumping routes to YAML format, then this option 
controls whether endpoint URIs should be expanded into a key\/value 
parameters.",
+      "sourceType": 
"org.apache.camel.spring.boot.CamelConfigurationProperties",
+      "defaultValue": false
+    },
     {
       "name": "camel.springboot.duration-max-action",
       "type": "java.lang.String",
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 3bf4fda6a70..46088321bd7 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
@@ -644,6 +644,35 @@ public class CamelConfigurationProperties extends 
DefaultConfigurationProperties
      */
     private String dumpRoutes;
 
+    /**
+     * Controls what to include in output for route dumping.
+     *
+     * Possible values: routes, rests, routeTemplates. Multiple values can be 
separated by comma. Default is routes.
+     */
+    private String dumpRoutesInclude = "routes";
+
+    /**
+     * Whether to log route dumps to Logger
+     */
+    private boolean dumpRoutesLog = true;
+
+    /**
+     * Whether to resolve property placeholders in the dumped output. Default 
is true.
+     */
+    private boolean dumpRoutesResolvePlaceholders = true;
+
+    /**
+     * When dumping routes to YAML format, then this option controls whether 
endpoint URIs should be expanded into a
+     * key/value parameters.
+     */
+    private boolean dumpRoutesUriAsParameters;
+
+    /**
+     * Whether to save route dumps to files in the given directory. The name 
of the files are based on original loaded
+     * resource, or an autogenerated name.
+     */
+    private String dumpRoutesDirectory;
+
     /**
      * Sets global options that can be referenced in the camel context
      *

Reply via email to