This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git


The following commit(s) were added to refs/heads/master by this push:
     new ea04bb2  CAMEL-14963: Route Template
ea04bb2 is described below

commit ea04bb2c2d9f7b85861ae28e234700fc6be0089f
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Jul 3 14:51:51 2020 +0200

    CAMEL-14963: Route Template
---
 core/camel-spring-boot/src/main/docs/spring-boot.adoc     |  2 +-
 .../camel/spring/boot/CamelConfigurationProperties.java   | 15 +++++++++++++++
 docs/modules/ROOT/pages/spring-boot.adoc                  |  2 +-
 3 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/core/camel-spring-boot/src/main/docs/spring-boot.adoc 
b/core/camel-spring-boot/src/main/docs/spring-boot.adoc
index df7e8c6..93d00c7 100644
--- a/core/camel-spring-boot/src/main/docs/spring-boot.adoc
+++ b/core/camel-spring-boot/src/main/docs/spring-boot.adoc
@@ -224,7 +224,7 @@ The component supports 149 options, which are listed below.
 | *camel.springboot.use-mdc-logging* | To turn on MDC logging | false | Boolean
 | *camel.springboot.warn-on-early-shutdown* | Whether to log a WARN if Camel 
on Spring Boot was immediately shutdown after starting which very likely is 
because there is no JVM thread to keep the application running. | true | Boolean
 | *camel.springboot.xml-rests* | Directory to scan for adding additional XML 
rests. You can turn this off by setting the value to false. Files can be loaded 
from either classpath or file by prefixing with classpath: or file: Wildcards 
is supported using a ANT pattern style paths, such as 
classpath:&#42;&#42;/&#42;camel&#42;.xml Multiple directories can be specified 
and separated by comma, such as: 
file:/myapp/mycamel/&#42;.xml,file:/myapp/myothercamel/&#42;.xml | 
classpath:camel-rest/*.x [...]
-| *camel.springboot.xml-route-templates* |  |  | String
+| *camel.springboot.xml-route-templates* | Directory to scan for adding 
additional XML route templates. You can turn this off by setting the value to 
false. Files can be loaded from either classpath or file by prefixing with 
classpath: or file: Wildcards is supported using a ANT pattern style paths, 
such as classpath:&#42;&#42;/&#42;template-&#42;.xml Notice when using 
wildcards, then there is additional overhead as the classpath is scanned, where 
as if you specific the exact name for ea [...]
 | *camel.springboot.xml-routes* | Directory to scan for adding additional XML 
routes. You can turn this off by setting the value to false. Files can be 
loaded from either classpath or file by prefixing with classpath: or file: 
Wildcards is supported using a ANT pattern style paths, such as 
classpath:&#42;&#42;/&#42;camel&#42;.xml Multiple directories can be specified 
and separated by comma, such as: 
file:/myapp/mycamel/&#42;.xml,file:/myapp/myothercamel/&#42;.xml | 
classpath:camel/*.xml  [...]
 | *camel.ssl.cert-alias* | An optional certificate alias to use. This is 
useful when the keystore has multiple certificates. |  | String
 | *camel.ssl.cipher-suites* | The optional explicitly configured cipher suites 
for this configuration. |  | CipherSuitesParameters
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 85926da..4dd0f35 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
@@ -509,6 +509,21 @@ public class CamelConfigurationProperties extends 
DefaultConfigurationProperties
     private String xmlRoutes = "classpath:camel/*.xml";
 
     /**
+     * Directory to scan for adding additional XML route templates.
+     * You can turn this off by setting the value to false.
+     *
+     * Files can be loaded from either classpath or file by prefixing with 
classpath: or file:
+     * Wildcards is supported using a ANT pattern style paths, such as 
classpath:&#42;&#42;/&#42;template-&#42;.xml
+     *
+     * Notice when using wildcards, then there is additional overhead as the 
classpath is scanned, where
+     * as if you specific the exact name for each XML file is faster as no 
classpath scanning is needed.
+     *
+     * Multiple directories can be specified and separated by comma, such as:
+     * file:/myapp/mycamel/&#42;.xml,file:/myapp/myothercamel/&#42;.xml
+     */
+    private String xmlRouteTemplates = "classpath:camel-template/*.xml";
+
+    /**
      * Directory to scan for adding additional XML rests.
      * You can turn this off by setting the value to false.
      *
diff --git a/docs/modules/ROOT/pages/spring-boot.adoc 
b/docs/modules/ROOT/pages/spring-boot.adoc
index df7e8c6..93d00c7 100644
--- a/docs/modules/ROOT/pages/spring-boot.adoc
+++ b/docs/modules/ROOT/pages/spring-boot.adoc
@@ -224,7 +224,7 @@ The component supports 149 options, which are listed below.
 | *camel.springboot.use-mdc-logging* | To turn on MDC logging | false | Boolean
 | *camel.springboot.warn-on-early-shutdown* | Whether to log a WARN if Camel 
on Spring Boot was immediately shutdown after starting which very likely is 
because there is no JVM thread to keep the application running. | true | Boolean
 | *camel.springboot.xml-rests* | Directory to scan for adding additional XML 
rests. You can turn this off by setting the value to false. Files can be loaded 
from either classpath or file by prefixing with classpath: or file: Wildcards 
is supported using a ANT pattern style paths, such as 
classpath:&#42;&#42;/&#42;camel&#42;.xml Multiple directories can be specified 
and separated by comma, such as: 
file:/myapp/mycamel/&#42;.xml,file:/myapp/myothercamel/&#42;.xml | 
classpath:camel-rest/*.x [...]
-| *camel.springboot.xml-route-templates* |  |  | String
+| *camel.springboot.xml-route-templates* | Directory to scan for adding 
additional XML route templates. You can turn this off by setting the value to 
false. Files can be loaded from either classpath or file by prefixing with 
classpath: or file: Wildcards is supported using a ANT pattern style paths, 
such as classpath:&#42;&#42;/&#42;template-&#42;.xml Notice when using 
wildcards, then there is additional overhead as the classpath is scanned, where 
as if you specific the exact name for ea [...]
 | *camel.springboot.xml-routes* | Directory to scan for adding additional XML 
routes. You can turn this off by setting the value to false. Files can be 
loaded from either classpath or file by prefixing with classpath: or file: 
Wildcards is supported using a ANT pattern style paths, such as 
classpath:&#42;&#42;/&#42;camel&#42;.xml Multiple directories can be specified 
and separated by comma, such as: 
file:/myapp/mycamel/&#42;.xml,file:/myapp/myothercamel/&#42;.xml | 
classpath:camel/*.xml  [...]
 | *camel.ssl.cert-alias* | An optional certificate alias to use. This is 
useful when the keystore has multiple certificates. |  | String
 | *camel.ssl.cipher-suites* | The optional explicitly configured cipher suites 
for this configuration. |  | CipherSuitesParameters

Reply via email to