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
The following commit(s) were added to refs/heads/main by this push:
new 56babf28dcc Regen
56babf28dcc is described below
commit 56babf28dcc4f52677ce4d118728abdc3603d770
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Aug 16 06:32:36 2023 +0200
Regen
---
.../camel/springboot/catalog/components/stub.json | 21 +++++++++++----------
.../camel-stub-starter/src/main/docs/stub.json | 6 ++++++
.../stub/springboot/StubComponentConfiguration.java | 13 +++++++++++++
3 files changed, 30 insertions(+), 10 deletions(-)
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 0648590e3f9..25f3f00a8c5 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
@@ -23,16 +23,17 @@
},
"componentProperties": {
"shadow": { "index": 0, "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": { "index": 1, "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 proce [...]
- "concurrentConsumers": { "index": 2, "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": { "index": 3, "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 consume [...]
- "defaultBlockWhenFull": { "index": 4, "kind": "property", "displayName":
"Default Block When Full", "group": "producer", "label": "producer",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": false,
"description": "Whether a thread that sends messages to a full SEDA queue will
block until the queue's capacity is no longer exhausted. By default, an
exception will be thrown stating that the queue is fu [...]
- "defaultDiscardWhenFull": { "index": 5, "kind": "property", "displayName":
"Default Discard When Full", "group": "producer", "label": "producer",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": false,
"description": "Whether a thread that sends messages to a full SEDA queue will
be discarded. By default, an exception will be thrown stating that the queue is
full. By enabling this option, the callin [...]
- "defaultOfferTimeout": { "index": 6, "kind": "property", "displayName":
"Default Offer Timeout", "group": "producer", "label": "producer", "required":
false, "type": "integer", "javaType": "long", "deprecated": false, "autowired":
false, "secret": false, "description": "Whether a thread that sends messages to
a full SEDA queue will block until the queue's capacity is no longer exhausted.
By default, an exception will be thrown stating that the queue is full. By
enabling this option, [...]
- "lazyStartProducer": { "index": 7, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"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 [...]
- "autowiredEnabled": { "index": 8, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching t [...]
- "defaultQueueFactory": { "index": 9, "kind": "property", "displayName":
"Default Queue Factory", "group": "advanced", "label": "advanced", "required":
false, "type": "object", "javaType":
"org.apache.camel.component.seda.BlockingQueueFactory<org.apache.camel.Exchange>",
"deprecated": false, "autowired": false, "secret": false, "description": "Sets
the default queue factory." },
- "queueSize": { "index": 10, "kind": "property", "displayName": "Queue
Size", "group": "advanced", "label": "advanced", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 1000, "description": "Sets the default maximum
capacity of the SEDA queue (i.e., the number of messages it can hold)." }
+ "shadowPattern": { "index": 1, "kind": "property", "displayName": "Shadow
Pattern", "group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "If shadow is enabled then this pattern can be
used to filter which components to match. Multiple patterns can be separated by
comma." },
+ "bridgeErrorHandler": { "index": 2, "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 proce [...]
+ "concurrentConsumers": { "index": 3, "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": { "index": 4, "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 consume [...]
+ "defaultBlockWhenFull": { "index": 5, "kind": "property", "displayName":
"Default Block When Full", "group": "producer", "label": "producer",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": false,
"description": "Whether a thread that sends messages to a full SEDA queue will
block until the queue's capacity is no longer exhausted. By default, an
exception will be thrown stating that the queue is fu [...]
+ "defaultDiscardWhenFull": { "index": 6, "kind": "property", "displayName":
"Default Discard When Full", "group": "producer", "label": "producer",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": false,
"description": "Whether a thread that sends messages to a full SEDA queue will
be discarded. By default, an exception will be thrown stating that the queue is
full. By enabling this option, the callin [...]
+ "defaultOfferTimeout": { "index": 7, "kind": "property", "displayName":
"Default Offer Timeout", "group": "producer", "label": "producer", "required":
false, "type": "integer", "javaType": "long", "deprecated": false, "autowired":
false, "secret": false, "description": "Whether a thread that sends messages to
a full SEDA queue will block until the queue's capacity is no longer exhausted.
By default, an exception will be thrown stating that the queue is full. By
enabling this option, [...]
+ "lazyStartProducer": { "index": 8, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"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 [...]
+ "autowiredEnabled": { "index": 9, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching t [...]
+ "defaultQueueFactory": { "index": 10, "kind": "property", "displayName":
"Default Queue Factory", "group": "advanced", "label": "advanced", "required":
false, "type": "object", "javaType":
"org.apache.camel.component.seda.BlockingQueueFactory<org.apache.camel.Exchange>",
"deprecated": false, "autowired": false, "secret": false, "description": "Sets
the default queue factory." },
+ "queueSize": { "index": 11, "kind": "property", "displayName": "Queue
Size", "group": "advanced", "label": "advanced", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 1000, "description": "Sets the default maximum
capacity of the SEDA queue (i.e., the number of messages it can hold)." }
},
"properties": {
"name": { "index": 0, "kind": "path", "displayName": "Name", "group":
"common", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Name of queue" },
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 bd7f83a4fdd..afd0a25ecb5 100644
--- a/components-starter/camel-stub-starter/src/main/docs/stub.json
+++ b/components-starter/camel-stub-starter/src/main/docs/stub.json
@@ -98,6 +98,12 @@
"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
+ },
+ {
+ "name": "camel.component.stub.shadow-pattern",
+ "type": "java.lang.String",
+ "description": "If shadow is enabled then this pattern can be used to
filter which components to match. Multiple patterns can be separated by comma.",
+ "sourceType":
"org.apache.camel.component.stub.springboot.StubComponentConfiguration"
}
],
"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 f86e6ed34f6..f2ca50c7f5b 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
@@ -42,6 +42,11 @@ public class StubComponentConfiguration
* you can lookup the endpoint via both stub:kafka:cheese and kafka:cheese.
*/
private Boolean shadow = false;
+ /**
+ * If shadow is enabled then this pattern can be used to filter which
+ * components to match. Multiple patterns can be separated by comma.
+ */
+ private String shadowPattern;
/**
* Allows for bridging the consumer to the Camel routing Error Handler,
* which mean any exceptions occurred while the consumer is trying to
pickup
@@ -123,6 +128,14 @@ public class StubComponentConfiguration
this.shadow = shadow;
}
+ public String getShadowPattern() {
+ return shadowPattern;
+ }
+
+ public void setShadowPattern(String shadowPattern) {
+ this.shadowPattern = shadowPattern;
+ }
+
public Boolean getBridgeErrorHandler() {
return bridgeErrorHandler;
}