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.git


The following commit(s) were added to refs/heads/main by this push:
     new b9e790ade98 Regen for commit ab02e0bfebb289213a6dbbd4fb4f35068b4c96f8
b9e790ade98 is described below

commit b9e790ade98c9b2acb20eb2dd49c94f9bf9f2bb3
Author: davsclaus <[email protected]>
AuthorDate: Tue May 10 09:45:35 2022 +0000

    Regen for commit ab02e0bfebb289213a6dbbd4fb4f35068b4c96f8
    
    Signed-off-by: GitHub <[email protected]>
---
 .../apache/camel/component/stub/StubComponent.java    |  7 ++-----
 .../component/dsl/StubComponentBuilderFactory.java    | 19 +++++++++++++++++++
 .../main/java/org/apache/camel/main/KameletMain.java  |  4 ++--
 3 files changed, 23 insertions(+), 7 deletions(-)

diff --git 
a/components/camel-stub/src/main/java/org/apache/camel/component/stub/StubComponent.java
 
b/components/camel-stub/src/main/java/org/apache/camel/component/stub/StubComponent.java
index 0c29225f3dc..cba364f49eb 100644
--- 
a/components/camel-stub/src/main/java/org/apache/camel/component/stub/StubComponent.java
+++ 
b/components/camel-stub/src/main/java/org/apache/camel/component/stub/StubComponent.java
@@ -20,13 +20,11 @@ import java.util.Map;
 import java.util.concurrent.BlockingQueue;
 
 import org.apache.camel.Component;
-import org.apache.camel.Endpoint;
 import org.apache.camel.Exchange;
 import org.apache.camel.ExtendedCamelContext;
 import org.apache.camel.component.seda.BlockingQueueFactory;
 import org.apache.camel.component.vm.VmComponent;
 import org.apache.camel.spi.EndpointRegistry;
-import org.apache.camel.spi.EndpointStrategy;
 import org.apache.camel.spi.Metadata;
 import org.apache.camel.support.NormalizedUri;
 
@@ -85,9 +83,8 @@ public class StubComponent extends VmComponent {
     }
 
     /**
-     * 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.
+     * 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.
      */
     public void setShadow(boolean shadow) {
         this.shadow = shadow;
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/StubComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/StubComponentBuilderFactory.java
index 9cd85b406c9..e675690c3ed 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/StubComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/StubComponentBuilderFactory.java
@@ -48,6 +48,24 @@ public interface StubComponentBuilderFactory {
      * Builder for the Stub component.
      */
     interface StubComponentBuilder extends ComponentBuilder<StubComponent> {
+        /**
+         * 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.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: false
+         * Group: common
+         * 
+         * @param shadow the value to set
+         * @return the dsl builder
+         */
+        default StubComponentBuilder shadow(boolean shadow) {
+            doSetProperty("shadow", shadow);
+            return this;
+        }
         /**
          * Allows for bridging the consumer to the Camel routing Error Handler,
          * which mean any exceptions occurred while the consumer is trying to
@@ -255,6 +273,7 @@ public interface StubComponentBuilderFactory {
                 String name,
                 Object value) {
             switch (name) {
+            case "shadow": ((StubComponent) component).setShadow((boolean) 
value); return true;
             case "bridgeErrorHandler": ((StubComponent) 
component).setBridgeErrorHandler((boolean) value); return true;
             case "concurrentConsumers": ((StubComponent) 
component).setConcurrentConsumers((int) value); return true;
             case "defaultPollTimeout": ((StubComponent) 
component).setDefaultPollTimeout((int) value); return true;
diff --git 
a/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/KameletMain.java 
b/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/KameletMain.java
index 4d4f4345aaa..d6188a09392 100644
--- 
a/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/KameletMain.java
+++ 
b/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/KameletMain.java
@@ -122,8 +122,8 @@ public class KameletMain extends MainCommandLineSupport {
     }
 
     /**
-     * Whether to use stub endpoints instead of creating the actual endpoints.
-     * This allows to simulate using real components but run without them on 
the classpath.
+     * Whether to use stub endpoints instead of creating the actual endpoints. 
This allows to simulate using real
+     * components but run without them on the classpath.
      */
     public void setStub(boolean stub) {
         this.stub = stub;

Reply via email to