This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-4.10.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-4.10.x by this push:
     new 99c06f2ffc8 CAMEL-21942: camel-stub - Should not configure additional 
parameters as the stub component do not have any and they are not in use, but 
being stubbed. This makes camel-jbang export more roboust.
99c06f2ffc8 is described below

commit 99c06f2ffc8b402301486764c2d24ffe73eee808
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Tue Apr 8 15:31:45 2025 +0200

    CAMEL-21942: camel-stub - Should not configure additional parameters as the 
stub component do not have any and they are not in use, but being stubbed. This 
makes camel-jbang export more roboust.
---
 .../src/main/java/org/apache/camel/component/stub/StubComponent.java | 5 +++++
 1 file changed, 5 insertions(+)

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 a79b81e6cfa..b9850e8ea16 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
@@ -21,6 +21,7 @@ import java.util.concurrent.BlockingQueue;
 
 import org.apache.camel.CamelContext;
 import org.apache.camel.Component;
+import org.apache.camel.Endpoint;
 import org.apache.camel.Exchange;
 import org.apache.camel.component.seda.BlockingQueueFactory;
 import org.apache.camel.component.seda.SedaComponent;
@@ -56,6 +57,10 @@ public class StubComponent extends SedaComponent {
         // Don't validate so we can stub any URI
     }
 
+    protected void setProperties(Endpoint endpoint, Map<String, Object> 
parameters) throws Exception {
+        // Don't configure extra properties
+    }
+
     @Override
     protected StubEndpoint createEndpoint(
             String endpointUri, Component component, 
BlockingQueueFactory<Exchange> queueFactory, int concurrentConsumers) {

Reply via email to