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 40f772430d72ec8009aea9126b254b56db3ed75e
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Tue May 10 11:22:04 2022 +0200

    Regen
---
 .../apache/camel/springboot/catalog/components/stub.json   |  1 +
 .../camel-stub-starter/src/main/docs/stub.json             |  7 +++++++
 .../stub/springboot/StubComponentConfiguration.java        | 14 ++++++++++++++
 3 files changed, 22 insertions(+)

diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/stub.json
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/stub.json
index 172fe2e8d77..6afc14ed3ab 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/stub.json
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/stub.json
@@ -22,6 +22,7 @@
     "lenientProperties": true
   },
   "componentProperties": {
+    "shadow": { "kind": "property", "displayName": "Shadow", "group": 
"common", "label": "", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "If shadow is enabled then the stub 
component will register a shadow endpoint with the actual uri that refers to 
the stub endpoint, meaning you can lookup the endpoint via both 
stub:kafka:cheese and kafka:cheese." },
     "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 [...]
     "concurrentConsumers": { "kind": "property", "displayName": "Concurrent 
Consumers", "group": "consumer", "label": "consumer", "required": false, 
"type": "integer", "javaType": "int", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": 1, "description": "Sets the default number of 
concurrent threads processing exchanges." },
     "defaultPollTimeout": { "kind": "property", "displayName": "Default Poll 
Timeout", "group": "consumer (advanced)", "label": "consumer,advanced", 
"required": false, "type": "integer", "javaType": "int", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": 1000, "description": "The 
timeout (in milliseconds) used when polling. When a timeout occurs, the 
consumer can check whether it is allowed to continue running. Setting a lower 
value allows the consumer to react m [...]
diff --git a/components-starter/camel-stub-starter/src/main/docs/stub.json 
b/components-starter/camel-stub-starter/src/main/docs/stub.json
index 716ad3a97ee..bd7f83a4fdd 100644
--- a/components-starter/camel-stub-starter/src/main/docs/stub.json
+++ b/components-starter/camel-stub-starter/src/main/docs/stub.json
@@ -91,6 +91,13 @@
       "description": "Sets the default maximum capacity of the SEDA queue 
(i.e., the number of messages it can hold).",
       "sourceType": 
"org.apache.camel.component.stub.springboot.StubComponentConfiguration",
       "defaultValue": 1000
+    },
+    {
+      "name": "camel.component.stub.shadow",
+      "type": "java.lang.Boolean",
+      "description": "If shadow is enabled then the stub component will 
register a shadow endpoint with the actual uri that refers to the stub 
endpoint, meaning you can lookup the endpoint via both stub:kafka:cheese and 
kafka:cheese.",
+      "sourceType": 
"org.apache.camel.component.stub.springboot.StubComponentConfiguration",
+      "defaultValue": false
     }
   ],
   "hints": []
diff --git 
a/components-starter/camel-stub-starter/src/main/java/org/apache/camel/component/stub/springboot/StubComponentConfiguration.java
 
b/components-starter/camel-stub-starter/src/main/java/org/apache/camel/component/stub/springboot/StubComponentConfiguration.java
index fa21ba6abf9..ff9cb916cc6 100644
--- 
a/components-starter/camel-stub-starter/src/main/java/org/apache/camel/component/stub/springboot/StubComponentConfiguration.java
+++ 
b/components-starter/camel-stub-starter/src/main/java/org/apache/camel/component/stub/springboot/StubComponentConfiguration.java
@@ -38,6 +38,12 @@ public class StubComponentConfiguration
      * enabled by default.
      */
     private Boolean enabled;
+    /**
+     * If shadow is enabled then the stub component will register a shadow
+     * endpoint with the actual uri that refers to the stub endpoint, meaning
+     * you can lookup the endpoint via both stub:kafka:cheese and kafka:cheese.
+     */
+    private Boolean shadow = false;
     /**
      * Allows for bridging the consumer to the Camel routing Error Handler,
      * which mean any exceptions occurred while the consumer is trying to 
pickup
@@ -111,6 +117,14 @@ public class StubComponentConfiguration
      */
     private Integer queueSize = 1000;
 
+    public Boolean getShadow() {
+        return shadow;
+    }
+
+    public void setShadow(Boolean shadow) {
+        this.shadow = shadow;
+    }
+
     public Boolean getBridgeErrorHandler() {
         return bridgeErrorHandler;
     }

Reply via email to