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

commit f8f194bb916e0873103ae63f9be2c85e020f4182
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 27 18:23:10 2026 +0100

    CAMEL-23832: camel-ref - improve the component and option descriptions
    
    Rewrote the component description and 1 option (name); there are no headers.
    The component description now covers both sides (the old text only spoke of
    routing to the endpoint), and the name option says when the lookup happens,
    that startup fails without a bound Endpoint, and that the found endpoint
    creates the producer and consumer.
    
    Documentation only, no behavior change. The component JSON, the catalog 
copy, the doc page header and the DSL are
    regenerated. camel-ref is marked as done in tasks/component-descriptions.md.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 .../org/apache/camel/catalog/components/ref.json   |  4 ++--
 .../apache/camel/catalog/docs/ref-component.adoc   |  2 +-
 .../org/apache/camel/component/ref/ref.json        |  4 ++--
 .../camel-ref/src/main/docs/ref-component.adoc     |  2 +-
 .../apache/camel/component/ref/RefEndpoint.java    | 10 ++++-----
 .../component/ComponentsBuilderFactory.java        |  4 ++--
 .../component/dsl/RefComponentBuilderFactory.java  |  8 ++++----
 .../builder/endpoint/StaticEndpointBuilders.java   | 18 ++++++++++------
 .../endpoint/dsl/RefEndpointBuilderFactory.java    | 24 ++++++++++++++--------
 tasks/component-descriptions.md                    |  2 +-
 10 files changed, 46 insertions(+), 32 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ref.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ref.json
index 173a88130ae6..e1675373a2f0 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ref.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ref.json
@@ -3,7 +3,7 @@
     "kind": "component",
     "name": "ref",
     "title": "Ref",
-    "description": "Route messages to an endpoint looked up dynamically by 
name in the Camel Registry.",
+    "description": "Send messages to, or receive messages from, an endpoint 
that is looked up by name in the Camel registry.",
     "deprecated": false,
     "firstVersion": "1.2.0",
     "label": "core",
@@ -34,7 +34,7 @@
     "producerOut": { "carriers": [ "unknown" ], "description": "The body the 
producer of the endpoint in the registry leaves" }
   },
   "properties": {
-    "name": { "index": 0, "kind": "path", "displayName": "Name", "group": 
"common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Name of endpoint to lookup in the registry." },
+    "name": { "index": 0, "kind": "path", "displayName": "Name", "group": 
"common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the Endpoint bound in the Camel registry that this 
endpoint delegates to. The endpoint is looked up once, when this endpoint is 
initialized, and startup fails if no Endpoint is bound under this name. The 
producer and the consumer are created [...]
     "bridgeErrorHandler": { "index": 1, "kind": "parameter", "displayName": 
"Bridge Error Handler", "group": "consumer (advanced)", "label": 
"consumer,advanced", "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 (if possible) occurred 
while the Camel consumer is trying to pickup incoming  [...]
     "exceptionHandler": { "index": 2, "kind": "parameter", "displayName": 
"Exception Handler", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "object", "javaType": 
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", 
"deprecated": false, "autowired": false, "secret": false, "description": "To 
let the consumer use a custom ExceptionHandler. Notice if the option 
bridgeErrorHandler is enabled then this option is not in use. By def [...]
     "exchangePattern": { "index": 3, "kind": "parameter", "displayName": 
"Exchange Pattern", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "enum", "javaType": 
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ], 
"deprecated": false, "autowired": false, "secret": false, "description": "Sets 
the exchange pattern when the consumer creates an exchange." },
diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/ref-component.adoc
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/ref-component.adoc
index 539dfaf01d1a..5f1a4e9c1434 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/ref-component.adoc
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/ref-component.adoc
@@ -2,7 +2,7 @@
 :doctitle: Ref
 :shortname: ref
 :artifactid: camel-ref
-:description: Route messages to an endpoint looked up dynamically by name in 
the Camel Registry.
+:description: Send messages to, or receive messages from, an endpoint that is 
looked up by name in the Camel registry.
 :since: 1.2
 :supportlevel: Stable
 :tabs-sync-option:
diff --git 
a/components/camel-ref/src/generated/resources/META-INF/org/apache/camel/component/ref/ref.json
 
b/components/camel-ref/src/generated/resources/META-INF/org/apache/camel/component/ref/ref.json
index 173a88130ae6..e1675373a2f0 100644
--- 
a/components/camel-ref/src/generated/resources/META-INF/org/apache/camel/component/ref/ref.json
+++ 
b/components/camel-ref/src/generated/resources/META-INF/org/apache/camel/component/ref/ref.json
@@ -3,7 +3,7 @@
     "kind": "component",
     "name": "ref",
     "title": "Ref",
-    "description": "Route messages to an endpoint looked up dynamically by 
name in the Camel Registry.",
+    "description": "Send messages to, or receive messages from, an endpoint 
that is looked up by name in the Camel registry.",
     "deprecated": false,
     "firstVersion": "1.2.0",
     "label": "core",
@@ -34,7 +34,7 @@
     "producerOut": { "carriers": [ "unknown" ], "description": "The body the 
producer of the endpoint in the registry leaves" }
   },
   "properties": {
-    "name": { "index": 0, "kind": "path", "displayName": "Name", "group": 
"common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Name of endpoint to lookup in the registry." },
+    "name": { "index": 0, "kind": "path", "displayName": "Name", "group": 
"common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the Endpoint bound in the Camel registry that this 
endpoint delegates to. The endpoint is looked up once, when this endpoint is 
initialized, and startup fails if no Endpoint is bound under this name. The 
producer and the consumer are created [...]
     "bridgeErrorHandler": { "index": 1, "kind": "parameter", "displayName": 
"Bridge Error Handler", "group": "consumer (advanced)", "label": 
"consumer,advanced", "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 (if possible) occurred 
while the Camel consumer is trying to pickup incoming  [...]
     "exceptionHandler": { "index": 2, "kind": "parameter", "displayName": 
"Exception Handler", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "object", "javaType": 
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", 
"deprecated": false, "autowired": false, "secret": false, "description": "To 
let the consumer use a custom ExceptionHandler. Notice if the option 
bridgeErrorHandler is enabled then this option is not in use. By def [...]
     "exchangePattern": { "index": 3, "kind": "parameter", "displayName": 
"Exchange Pattern", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "enum", "javaType": 
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ], 
"deprecated": false, "autowired": false, "secret": false, "description": "Sets 
the exchange pattern when the consumer creates an exchange." },
diff --git a/components/camel-ref/src/main/docs/ref-component.adoc 
b/components/camel-ref/src/main/docs/ref-component.adoc
index 539dfaf01d1a..5f1a4e9c1434 100644
--- a/components/camel-ref/src/main/docs/ref-component.adoc
+++ b/components/camel-ref/src/main/docs/ref-component.adoc
@@ -2,7 +2,7 @@
 :doctitle: Ref
 :shortname: ref
 :artifactid: camel-ref
-:description: Route messages to an endpoint looked up dynamically by name in 
the Camel Registry.
+:description: Send messages to, or receive messages from, an endpoint that is 
looked up by name in the Camel registry.
 :since: 1.2
 :supportlevel: Stable
 :tabs-sync-option:
diff --git 
a/components/camel-ref/src/main/java/org/apache/camel/component/ref/RefEndpoint.java
 
b/components/camel-ref/src/main/java/org/apache/camel/component/ref/RefEndpoint.java
index d2f0410e051b..f3c1659cebce 100644
--- 
a/components/camel-ref/src/main/java/org/apache/camel/component/ref/RefEndpoint.java
+++ 
b/components/camel-ref/src/main/java/org/apache/camel/component/ref/RefEndpoint.java
@@ -33,7 +33,7 @@ import org.apache.camel.support.CamelContextHelper;
 import org.apache.camel.support.DefaultEndpoint;
 
 /**
- * Route messages to an endpoint looked up dynamically by name in the Camel 
Registry.
+ * Send messages to, or receive messages from, an endpoint that is looked up 
by name in the Camel registry.
  */
 @UriEndpoint(firstVersion = "1.2.0", scheme = "ref", title = "Ref", syntax = 
"ref:name",
              remote = false, category = { Category.CORE })
@@ -47,7 +47,10 @@ public class RefEndpoint extends DefaultEndpoint implements 
DelegateEndpoint {
 
     private volatile Endpoint endpoint;
 
-    @UriPath
+    @UriPath(description = "The name of the Endpoint bound in the Camel 
registry that this endpoint delegates to."
+                           + " The endpoint is looked up once, when this 
endpoint is initialized, and startup fails if no"
+                           + " Endpoint is bound under this name. The producer 
and the consumer are created by the endpoint"
+                           + " that is found.")
     @Metadata(required = true)
     private String name;
 
@@ -64,9 +67,6 @@ public class RefEndpoint extends DefaultEndpoint implements 
DelegateEndpoint {
         return name;
     }
 
-    /**
-     * Name of endpoint to lookup in the registry.
-     */
     public void setName(String name) {
         this.name = name;
     }
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index da4b34aa7207..940c6c86a2e3 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -4483,8 +4483,8 @@ public interface ComponentsBuilderFactory {
     }
     /**
      * Ref (camel-ref)
-     * Route messages to an endpoint looked up dynamically by name in the Camel
-     * Registry.
+     * Send messages to, or receive messages from, an endpoint that is looked 
up
+     * by name in the Camel registry.
      * 
      * Category: core
      * Since: 1.2
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/RefComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/RefComponentBuilderFactory.java
index dc15aacc4860..ddb05f70eed5 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/RefComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/RefComponentBuilderFactory.java
@@ -24,8 +24,8 @@ import org.apache.camel.builder.component.ComponentBuilder;
 import org.apache.camel.component.ref.RefComponent;
 
 /**
- * Route messages to an endpoint looked up dynamically by name in the Camel
- * Registry.
+ * Send messages to, or receive messages from, an endpoint that is looked up by
+ * name in the Camel registry.
  * 
  * Generated by camel build tools - do NOT edit this file!
  */
@@ -34,8 +34,8 @@ public interface RefComponentBuilderFactory {
 
     /**
      * Ref (camel-ref)
-     * Route messages to an endpoint looked up dynamically by name in the Camel
-     * Registry.
+     * Send messages to, or receive messages from, an endpoint that is looked 
up
+     * by name in the Camel registry.
      * 
      * Category: core
      * Since: 1.2
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 90ab3ecd7c58..ea19dee5e6de 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -15259,8 +15259,8 @@ public class StaticEndpointBuilders {
     }
     /**
      * Ref (camel-ref)
-     * Route messages to an endpoint looked up dynamically by name in the Camel
-     * Registry.
+     * Send messages to, or receive messages from, an endpoint that is looked 
up
+     * by name in the Camel registry.
      * 
      * Category: core
      * Since: 1.2
@@ -15269,7 +15269,10 @@ public class StaticEndpointBuilders {
      * Syntax: <code>ref:name</code>
      * 
      * Path parameter: name (required)
-     * Name of endpoint to lookup in the registry.
+     * The name of the Endpoint bound in the Camel registry that this endpoint
+     * delegates to. The endpoint is looked up once, when this endpoint is
+     * initialized, and startup fails if no Endpoint is bound under this name.
+     * The producer and the consumer are created by the endpoint that is found.
      * 
      * @param path name
      * @return the dsl builder
@@ -15279,8 +15282,8 @@ public class StaticEndpointBuilders {
     }
     /**
      * Ref (camel-ref)
-     * Route messages to an endpoint looked up dynamically by name in the Camel
-     * Registry.
+     * Send messages to, or receive messages from, an endpoint that is looked 
up
+     * by name in the Camel registry.
      * 
      * Category: core
      * Since: 1.2
@@ -15289,7 +15292,10 @@ public class StaticEndpointBuilders {
      * Syntax: <code>ref:name</code>
      * 
      * Path parameter: name (required)
-     * Name of endpoint to lookup in the registry.
+     * The name of the Endpoint bound in the Camel registry that this endpoint
+     * delegates to. The endpoint is looked up once, when this endpoint is
+     * initialized, and startup fails if no Endpoint is bound under this name.
+     * The producer and the consumer are created by the endpoint that is found.
      * 
      * @param componentName to use a custom component name for the endpoint
      * instead of the default name
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/RefEndpointBuilderFactory.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/RefEndpointBuilderFactory.java
index 9f7a095c28d1..903fe3cc609f 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/RefEndpointBuilderFactory.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/RefEndpointBuilderFactory.java
@@ -27,8 +27,8 @@ import org.apache.camel.builder.EndpointProducerBuilder;
 import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
 
 /**
- * Route messages to an endpoint looked up dynamically by name in the Camel
- * Registry.
+ * Send messages to, or receive messages from, an endpoint that is looked up by
+ * name in the Camel registry.
  * 
  * Generated by camel build tools - do NOT edit this file!
  */
@@ -271,8 +271,8 @@ public interface RefEndpointBuilderFactory {
     public interface RefBuilders {
         /**
          * Ref (camel-ref)
-         * Route messages to an endpoint looked up dynamically by name in the
-         * Camel Registry.
+         * Send messages to, or receive messages from, an endpoint that is
+         * looked up by name in the Camel registry.
          * 
          * Category: core
          * Since: 1.2
@@ -281,7 +281,11 @@ public interface RefEndpointBuilderFactory {
          * Syntax: <code>ref:name</code>
          * 
          * Path parameter: name (required)
-         * Name of endpoint to lookup in the registry.
+         * The name of the Endpoint bound in the Camel registry that this
+         * endpoint delegates to. The endpoint is looked up once, when this
+         * endpoint is initialized, and startup fails if no Endpoint is bound
+         * under this name. The producer and the consumer are created by the
+         * endpoint that is found.
          * 
          * @param path name
          * @return the dsl builder
@@ -291,8 +295,8 @@ public interface RefEndpointBuilderFactory {
         }
         /**
          * Ref (camel-ref)
-         * Route messages to an endpoint looked up dynamically by name in the
-         * Camel Registry.
+         * Send messages to, or receive messages from, an endpoint that is
+         * looked up by name in the Camel registry.
          * 
          * Category: core
          * Since: 1.2
@@ -301,7 +305,11 @@ public interface RefEndpointBuilderFactory {
          * Syntax: <code>ref:name</code>
          * 
          * Path parameter: name (required)
-         * Name of endpoint to lookup in the registry.
+         * The name of the Endpoint bound in the Camel registry that this
+         * endpoint delegates to. The endpoint is looked up once, when this
+         * endpoint is initialized, and startup fails if no Endpoint is bound
+         * under this name. The producer and the consumer are created by the
+         * endpoint that is found.
          * 
          * @param componentName to use a custom component name for the endpoint
          * instead of the default name
diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md
index f3e31263d6bb..351c106a3da0 100644
--- a/tasks/component-descriptions.md
+++ b/tasks/component-descriptions.md
@@ -316,7 +316,7 @@ or removes its row.
 | camel-quartz | quartz |  |
 | camel-quickfix | quickfix |  |
 | camel-reactive-streams | reactive-streams |  |
-| camel-ref | ref |  |
+| camel-ref | ref | yes |
 | camel-rest | rest, rest-api | yes |
 | camel-rest-openapi | rest-openapi |  |
 | camel-rest-postman | rest-postman |  |

Reply via email to