This is an automated email from the ASF dual-hosted git repository. acosentino 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 c8fea7d [create-pull-request] automated change c8fea7d is described below commit c8fea7d9600503c2dbf3f7b10f6cc6ab45f50c45 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> AuthorDate: Wed May 12 01:27:32 2021 +0000 [create-pull-request] automated change --- .../apache/camel/springboot/catalog/components/kamelet.json | 1 + .../camel-kamelet-starter/src/main/docs/kamelet-starter.adoc | 5 ++--- .../kamelet/springboot/KameletComponentConfiguration.java | 12 ++++++++++++ docs/modules/ROOT/pages/kamelet-starter.adoc | 5 ++--- 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/kamelet.json b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/kamelet.json index b3140dd..6e6f2c9 100644 --- a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/kamelet.json +++ b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/kamelet.json @@ -22,6 +22,7 @@ "lenientProperties": true }, "componentProperties": { + "location": { "kind": "property", "displayName": "Location", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "classpath:\/kamelets", "description": "The location of the Kamelets on the file system." }, "routeProperties": { "kind": "property", "displayName": "Route Properties", "group": "common", "label": "", "required": false, "type": "object", "javaType": "java.util.Map<java.lang.String, java.util.Properties>", "deprecated": false, "autowired": false, "secret": false, "description": "Set route local parameters." }, "templateProperties": { "kind": "property", "displayName": "Template Properties", "group": "common", "label": "", "required": false, "type": "object", "javaType": "java.util.Map<java.lang.String, java.util.Properties>", "deprecated": false, "autowired": false, "secret": false, "description": "Set template local parameters." }, "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a me [...] diff --git a/components-starter/camel-kamelet-starter/src/main/docs/kamelet-starter.adoc b/components-starter/camel-kamelet-starter/src/main/docs/kamelet-starter.adoc index 5165962..1b0e8ea 100644 --- a/components-starter/camel-kamelet-starter/src/main/docs/kamelet-starter.adoc +++ b/components-starter/camel-kamelet-starter/src/main/docs/kamelet-starter.adoc @@ -17,7 +17,7 @@ When using kamelet with Spring Boot make sure to use the following Maven depende ---- -The component supports 8 options, which are listed below. +The component supports 9 options, which are listed below. @@ -29,10 +29,9 @@ The component supports 8 options, which are listed below. | *camel.component.kamelet.bridge-error-handler* | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | Boolean | *camel.component.kamelet.enabled* | Whether to enable auto configuration of the kamelet component. This is enabled by default. | | Boolean | *camel.component.kamelet.lazy-start-producer* | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed th [...] +| *camel.component.kamelet.location* | The location of the Kamelets on the file system. | classpath:/kamelets | String | *camel.component.kamelet.route-properties* | Set route local parameters. | | Map | *camel.component.kamelet.template-properties* | Set template local parameters. | | Map | *camel.component.kamelet.timeout* | The timeout value to use if block is enabled. | 30000 | Long |=== - - // spring-boot-auto-configure options: END diff --git a/components-starter/camel-kamelet-starter/src/main/java/org/apache/camel/component/kamelet/springboot/KameletComponentConfiguration.java b/components-starter/camel-kamelet-starter/src/main/java/org/apache/camel/component/kamelet/springboot/KameletComponentConfiguration.java index e70df1b..562a956 100644 --- a/components-starter/camel-kamelet-starter/src/main/java/org/apache/camel/component/kamelet/springboot/KameletComponentConfiguration.java +++ b/components-starter/camel-kamelet-starter/src/main/java/org/apache/camel/component/kamelet/springboot/KameletComponentConfiguration.java @@ -39,6 +39,10 @@ public class KameletComponentConfiguration */ private Boolean enabled; /** + * The location of the Kamelets on the file system. + */ + private String location = "classpath:/kamelets"; + /** * Set route local parameters. */ private Map<String, Properties> routeProperties; @@ -86,6 +90,14 @@ public class KameletComponentConfiguration */ private Boolean autowiredEnabled = true; + public String getLocation() { + return location; + } + + public void setLocation(String location) { + this.location = location; + } + public Map<String, Properties> getRouteProperties() { return routeProperties; } diff --git a/docs/modules/ROOT/pages/kamelet-starter.adoc b/docs/modules/ROOT/pages/kamelet-starter.adoc index 5165962..1b0e8ea 100644 --- a/docs/modules/ROOT/pages/kamelet-starter.adoc +++ b/docs/modules/ROOT/pages/kamelet-starter.adoc @@ -17,7 +17,7 @@ When using kamelet with Spring Boot make sure to use the following Maven depende ---- -The component supports 8 options, which are listed below. +The component supports 9 options, which are listed below. @@ -29,10 +29,9 @@ The component supports 8 options, which are listed below. | *camel.component.kamelet.bridge-error-handler* | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | Boolean | *camel.component.kamelet.enabled* | Whether to enable auto configuration of the kamelet component. This is enabled by default. | | Boolean | *camel.component.kamelet.lazy-start-producer* | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed th [...] +| *camel.component.kamelet.location* | The location of the Kamelets on the file system. | classpath:/kamelets | String | *camel.component.kamelet.route-properties* | Set route local parameters. | | Map | *camel.component.kamelet.template-properties* | Set template local parameters. | | Map | *camel.component.kamelet.timeout* | The timeout value to use if block is enabled. | 30000 | Long |=== - - // spring-boot-auto-configure options: END