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 37f28b6b596708fd425340e93f4801771e7920d1 Author: Claus Ibsen <[email protected]> AuthorDate: Tue Nov 30 21:11:59 2021 +0100 CAMEL-15133: camel-health - Resolve health-checks from classpath and make it friendlier to provide custom health checks. --- core/camel-spring-boot/src/main/docs/spring-boot.json | 4 +++- .../org/apache/camel/spring/boot/CamelConfigurationProperties.java | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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 8a2890b..a602406 100644 --- a/core/camel-spring-boot/src/main/docs/spring-boot.json +++ b/core/camel-spring-boot/src/main/docs/spring-boot.json @@ -688,7 +688,9 @@ { "name": "camel.springboot.load-health-checks", "type": "java.lang.Boolean", - "sourceType": "org.apache.camel.spring.boot.CamelConfigurationProperties" + "description": "Whether to load custom health checks by scanning classpath.", + "sourceType": "org.apache.camel.spring.boot.CamelConfigurationProperties", + "defaultValue": false }, { "name": "camel.springboot.load-type-converters", 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 e8e4d74..2898af9 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 @@ -137,6 +137,11 @@ public class CamelConfigurationProperties extends DefaultConfigurationProperties private boolean loadTypeConverters = true; /** + * Whether to load custom health checks by scanning classpath. + */ + private boolean loadHealthChecks; + + /** * Directory to load additional configuration files that contains * configuration values that takes precedence over any other configuration. * This can be used to refer to files that may have secret configuration that
