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 b8653a0181abcc67d52704f317094a2734538db6
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Sun May 2 13:13:42 2021 +0200

    CAMEL-16568: camel-activemq - Add destination options to endpoint options
---
 .../maven/packaging/EndpointSchemaGeneratorMojo.java     | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git 
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java
 
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java
index 4f67567..d12c4b8 100644
--- 
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java
+++ 
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java
@@ -251,6 +251,22 @@ public class EndpointSchemaGeneratorMojo extends 
AbstractGeneratorMojo {
         // endpoint options
         findClassProperties(componentModel, classElement, new HashSet<>(), "", 
null, null, false);
 
+        // special for activemq
+        if ("activemq".equals(componentModel.getScheme())) {
+            EndpointOptionModel option = new EndpointOptionModel();
+            option.setName("destinationOptions");
+            option.setKind("parameter");
+            option.setDisplayName("Destination Options");
+            option.setGroup("consumer (advanced)");
+            option.setLabel("consumer,advanced");
+            option.setType("object");
+            option.setJavaType("java.util.Map<java.lang.String, 
java.lang.String>");
+            option.setPrefix("destination.");
+            option.setMultiValue(true);
+            option.setDescription("Destination options are a way to provide 
extended configuration options to a JMS consumer without having to extend the 
JMS API. The options are encoded using URL query syntax in the destination name 
that the consumer is created on. See more details at 
https://activemq.apache.org/destination-options.";);
+            componentModel.addEndpointOption(option);
+        }
+
         String excludedEndpointProperties = "";
         Metadata endpointMetadata = classElement.getAnnotation(Metadata.class);
         if (endpointMetadata != null) {

Reply via email to