This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new 8ecebc5 CAMEL-14622: Component options use @Metadata to markup the options 8ecebc5 is described below commit 8ecebc562e7ba8c0f189dd46d9f65819f7247732 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Tue Jun 16 13:53:03 2020 +0200 CAMEL-14622: Component options use @Metadata to markup the options --- .../org/apache/camel/component/amqp/amqp.json | 2 +- .../apache/camel/component/amqp/AMQPComponent.java | 2 ++ .../org/apache/camel/component/as2/as2.json | 4 +-- .../src/main/docs/as2-component.adoc | 2 +- .../apache/camel/component/as2/AS2Component.java | 8 ----- .../component/atomix/client/map/atomix-map.json | 6 ++-- .../atomix/client/messaging/atomix-messaging.json | 6 ++-- .../atomix/client/multimap/atomix-multimap.json | 6 ++-- .../atomix/client/queue/atomix-queue.json | 6 ++-- .../component/atomix/client/set/atomix-set.json | 6 ++-- .../atomix/client/value/atomix-value.json | 6 ++-- .../client/AbstractAtomixClientComponent.java | 5 +++- .../atomix/client/map/AtomixMapComponent.java | 2 ++ .../client/messaging/AtomixMessagingComponent.java | 2 ++ .../client/multimap/AtomixMultiMapComponent.java | 2 ++ .../atomix/client/queue/AtomixQueueComponent.java | 2 ++ .../atomix/client/set/AtomixSetComponent.java | 2 ++ .../atomix/client/value/AtomixValueComponent.java | 2 ++ .../camel/component/beanstalk/beanstalk.json | 4 +-- .../src/main/docs/beanstalk-component.adoc | 2 +- .../component/beanstalk/BeanstalkComponent.java | 2 ++ .../org/apache/camel/component/cmis/cmis.json | 4 +-- .../camel-cmis/src/main/docs/cmis-component.adoc | 2 +- .../apache/camel/component/cmis/CMISComponent.java | 2 ++ .../component/debezium/DebeziumComponent.java | 2 ++ .../camel/component/debezium/debezium-mongodb.json | 2 +- .../debezium/DebeziumMongodbComponent.java | 2 ++ .../camel/component/debezium/debezium-mysql.json | 2 +- .../component/debezium/DebeziumMySqlComponent.java | 2 ++ .../component/debezium/debezium-postgres.json | 2 +- .../debezium/DebeziumPostgresComponent.java | 2 ++ .../component/debezium/debezium-sqlserver.json | 2 +- .../debezium/DebeziumSqlserverComponent.java | 2 ++ .../component/dsl/As2ComponentBuilderFactory.java | 28 +++++++++--------- .../dsl/BeanstalkComponentBuilderFactory.java | 34 +++++++++++----------- .../component/dsl/CmisComponentBuilderFactory.java | 32 ++++++++++---------- 36 files changed, 111 insertions(+), 88 deletions(-) diff --git a/components/camel-amqp/src/generated/resources/org/apache/camel/component/amqp/amqp.json b/components/camel-amqp/src/generated/resources/org/apache/camel/component/amqp/amqp.json index f99405b..6a98203 100644 --- a/components/camel-amqp/src/generated/resources/org/apache/camel/component/amqp/amqp.json +++ b/components/camel-amqp/src/generated/resources/org/apache/camel/component/amqp/amqp.json @@ -25,7 +25,7 @@ "connectionFactory": { "kind": "property", "displayName": "Connection Factory", "group": "common", "label": "", "required": false, "type": "object", "javaType": "javax.jms.ConnectionFactory", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "The connection factory to be use. A connection factory must be configured either on the component or endpoint." }, "disableReplyTo": { "kind": "property", "displayName": "Disable Reply To", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Specifies whether Camel ignores the JMSReplyTo header in messages. If true, Camel does not send a reply back to the destination spe [...] "durableSubscriptionName": { "kind": "property", "displayName": "Durable Subscription Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "The durable subscriber name for specifying durable topic subscriptions. The clientId option must be configured as well." }, - "includeAmqpAnnotations": { "kind": "property", "displayName": "Include Amqp Annotations", "group": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether to include AMQP annotations when mapping from AMQP to Camel Message. Setting this to true maps AMQP message annotations that contain a JMS_AMQP_MA_ prefix to message headers. Due to limitations in Apache Qpid JMS API, currently deli [...] + "includeAmqpAnnotations": { "kind": "property", "displayName": "Include AMQP Annotations", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "deprecationNote": "", "secret": false, "defaultValue": false, "description": "Whether to include AMQP annotations when mapping from AMQP to Camel Message. Setting this to true maps AMQP message annotations that contain a JMS_AMQP_MA_ prefix to message headers. Due to limitations in [...] "jmsMessageType": { "kind": "property", "displayName": "Jms Message Type", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.jms.JmsMessageType", "enum": [ "Bytes", "Map", "Object", "Stream", "Text" ], "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Allows you to force the use of a specific javax.jms.Message i [...] "testConnectionOnStartup": { "kind": "property", "displayName": "Test Connection On Startup", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Specifies whether to test the connection on startup. This ensures that when Camel starts that all the JMS consum [...] "acknowledgementModeName": { "kind": "property", "displayName": "Acknowledgement Mode Name", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "enum": [ "SESSION_TRANSACTED", "CLIENT_ACKNOWLEDGE", "AUTO_ACKNOWLEDGE", "DUPS_OK_ACKNOWLEDGE" ], "deprecated": false, "secret": false, "defaultValue": "AUTO_ACKNOWLEDGE", "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", [...] diff --git a/components/camel-amqp/src/main/java/org/apache/camel/component/amqp/AMQPComponent.java b/components/camel-amqp/src/main/java/org/apache/camel/component/amqp/AMQPComponent.java index 84613fc..611d6de 100644 --- a/components/camel-amqp/src/main/java/org/apache/camel/component/amqp/AMQPComponent.java +++ b/components/camel-amqp/src/main/java/org/apache/camel/component/amqp/AMQPComponent.java @@ -26,6 +26,7 @@ import org.apache.camel.Endpoint; import org.apache.camel.component.jms.JmsComponent; import org.apache.camel.component.jms.JmsConfiguration; import org.apache.camel.component.jms.JmsEndpoint; +import org.apache.camel.spi.Metadata; import org.apache.camel.spi.annotations.Component; import org.apache.camel.support.component.PropertyConfigurerSupport; import org.apache.qpid.jms.JmsConnectionFactory; @@ -110,6 +111,7 @@ public class AMQPComponent extends JmsComponent { * Due to limitations in Apache Qpid JMS API, currently delivery annotations * are ignored. */ + @Metadata(displayName = "Include AMQP Annotations") public void setIncludeAmqpAnnotations(boolean includeAmqpAnnotations) { if (getConfiguration() instanceof AMQPConfiguration) { ((AMQPConfiguration) getConfiguration()).setIncludeAmqpAnnotations(includeAmqpAnnotations); diff --git a/components/camel-as2/camel-as2-component/src/generated/resources/org/apache/camel/component/as2/as2.json b/components/camel-as2/camel-as2-component/src/generated/resources/org/apache/camel/component/as2/as2.json index af14f68..d5b8701 100644 --- a/components/camel-as2/camel-as2-component/src/generated/resources/org/apache/camel/component/as2/as2.json +++ b/components/camel-as2/camel-as2-component/src/generated/resources/org/apache/camel/component/as2/as2.json @@ -21,10 +21,10 @@ "lenientProperties": false }, "componentProperties": { - "configuration": { "kind": "property", "displayName": "Configuration", "group": "common", "required": false, "type": "object", "javaType": "org.apache.camel.component.as2.AS2Configuration", "deprecated": false, "secret": false, "description": "To use the shared configuration" }, "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 processed as a message and handled by [...] "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 during starting and cause the r [...] - "basicPropertyBinding": { "kind": "property", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" } + "basicPropertyBinding": { "kind": "property", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" }, + "configuration": { "kind": "property", "displayName": "Configuration", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.as2.AS2Configuration", "deprecated": false, "secret": false, "description": "Component configuration" } }, "properties": { "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.as2.internal.AS2ApiName", "enum": [ "CLIENT", "SERVER" ], "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "What kind of operation to perform" }, diff --git a/components/camel-as2/camel-as2-component/src/main/docs/as2-component.adoc b/components/camel-as2/camel-as2-component/src/main/docs/as2-component.adoc index 3c23066..1c5591d 100644 --- a/components/camel-as2/camel-as2-component/src/main/docs/as2-component.adoc +++ b/components/camel-as2/camel-as2-component/src/main/docs/as2-component.adoc @@ -56,10 +56,10 @@ The AS2 component supports 4 options, which are listed below. [width="100%",cols="2,5,^1,2",options="header"] |=== | Name | Description | Default | Type -| *configuration* (common) | To use the shared configuration | | AS2Configuration | *bridgeErrorHandler* (consumer) | 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 processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean | *lazyStartProducer* (producer) | 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 during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and [...] | *basicPropertyBinding* (advanced) | Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean +| *configuration* (advanced) | Component configuration | | AS2Configuration |=== // component options: END diff --git a/components/camel-as2/camel-as2-component/src/main/java/org/apache/camel/component/as2/AS2Component.java b/components/camel-as2/camel-as2-component/src/main/java/org/apache/camel/component/as2/AS2Component.java index 48ca689..6cbc3f5 100644 --- a/components/camel-as2/camel-as2-component/src/main/java/org/apache/camel/component/as2/AS2Component.java +++ b/components/camel-as2/camel-as2-component/src/main/java/org/apache/camel/component/as2/AS2Component.java @@ -57,14 +57,6 @@ public class AS2Component extends AbstractApiComponent<AS2ApiName, AS2Configurat return new AS2Endpoint(uri, this, apiName, methodName, endpointConfiguration); } - /** - * To use the shared configuration - */ - @Override - public void setConfiguration(AS2Configuration configuration) { - super.setConfiguration(configuration); - } - @Override protected void doStart() throws Exception { super.doStart(); diff --git a/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/map/atomix-map.json b/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/map/atomix-map.json index 0ea9c23..994a0fe 100644 --- a/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/map/atomix-map.json +++ b/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/map/atomix-map.json @@ -22,11 +22,11 @@ }, "componentProperties": { "atomix": { "kind": "property", "displayName": "Atomix", "group": "common", "label": "", "required": false, "type": "object", "javaType": "io.atomix.Atomix", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.atomix.client.map.AtomixMapConfiguration", "configurationField": "configuration", "description": "The Atomix instance to use" }, - "configuration": { "kind": "property", "displayName": "Configuration", "group": "common", "required": false, "type": "object", "javaType": "org.apache.camel.component.atomix.client.map.AtomixMapConfiguration", "deprecated": false, "secret": false, "description": "The shared component configuration" }, - "configurationUri": { "kind": "property", "displayName": "Configuration Uri", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The path to the AtomixClient configuration" }, + "configuration": { "kind": "property", "displayName": "Configuration", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.atomix.client.map.AtomixMapConfiguration", "deprecated": false, "secret": false, "description": "The shared component configuration" }, + "configurationUri": { "kind": "property", "displayName": "Configuration Uri", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "secret": false, "description": "The path to the AtomixClient configuration" }, "defaultAction": { "kind": "property", "displayName": "Default Action", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.atomix.client.map.AtomixMap.Action", "enum": [ "PUT", "PUT_IF_ABSENT", "GET", "CLEAR", "SIZE", "CONTAINS_KEY", "CONTAINS_VALUE", "IS_EMPTY", "ENTRY_SET", "REMOVE", "REPLACE", "VALUES" ], "deprecated": false, "secret": false, "defaultValue": "PUT", "configurationClass": "org.apache.camel.component.atomix.cl [...] "key": { "kind": "property", "displayName": "Key", "group": "common", "label": "", "required": false, "type": "object", "javaType": "java.lang.Object", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.atomix.client.map.AtomixMapConfiguration", "configurationField": "configuration", "description": "The key to use if none is set in the header or to listen for events for a specific key." }, - "nodes": { "kind": "property", "displayName": "Nodes", "group": "common", "required": false, "type": "array", "javaType": "java.util.List<io.atomix.catalyst.transport.Address>", "deprecated": false, "secret": false, "description": "The nodes the AtomixClient should connect to" }, + "nodes": { "kind": "property", "displayName": "Nodes", "group": "common", "label": "", "required": false, "type": "array", "javaType": "java.util.List<io.atomix.catalyst.transport.Address>", "deprecated": false, "deprecationNote": "", "secret": false, "description": "The nodes the AtomixClient should connect to" }, "resultHeader": { "kind": "property", "displayName": "Result Header", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.atomix.client.map.AtomixMapConfiguration", "configurationField": "configuration", "description": "The header that wil carry the result." }, "transportClassName": { "kind": "property", "displayName": "Transport Class Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "io.atomix.catalyst.transport.netty.NettyTransport", "configurationClass": "org.apache.camel.component.atomix.client.map.AtomixMapConfiguration", "configurationField": "configuration", "description": "The class name (fqn) of the Atomix transport" }, "ttl": { "kind": "property", "displayName": "Ttl", "group": "common", "label": "", "required": false, "type": "duration", "javaType": "long", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.atomix.client.map.AtomixMapConfiguration", "configurationField": "configuration", "description": "The resource ttl." }, diff --git a/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/messaging/atomix-messaging.json b/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/messaging/atomix-messaging.json index ce38253..fe9416d 100644 --- a/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/messaging/atomix-messaging.json +++ b/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/messaging/atomix-messaging.json @@ -24,11 +24,11 @@ "atomix": { "kind": "property", "displayName": "Atomix", "group": "common", "label": "", "required": false, "type": "object", "javaType": "io.atomix.Atomix", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.atomix.client.messaging.AtomixMessagingConfiguration", "configurationField": "configuration", "description": "The Atomix instance to use" }, "broadcastType": { "kind": "property", "displayName": "Broadcast Type", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.atomix.client.messaging.AtomixMessaging.BroadcastType", "enum": [ "ALL", "RANDOM" ], "deprecated": false, "secret": false, "defaultValue": "ALL", "configurationClass": "org.apache.camel.component.atomix.client.messaging.AtomixMessagingConfiguration", "configurationField": "configuration", "description": "T [...] "channelName": { "kind": "property", "displayName": "Channel Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.atomix.client.messaging.AtomixMessagingConfiguration", "configurationField": "configuration", "description": "The messaging channel name" }, - "configuration": { "kind": "property", "displayName": "Configuration", "group": "common", "required": false, "type": "object", "javaType": "org.apache.camel.component.atomix.client.messaging.AtomixMessagingConfiguration", "deprecated": false, "secret": false, "description": "The shared component configuration" }, - "configurationUri": { "kind": "property", "displayName": "Configuration Uri", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The path to the AtomixClient configuration" }, + "configuration": { "kind": "property", "displayName": "Configuration", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.atomix.client.messaging.AtomixMessagingConfiguration", "deprecated": false, "secret": false, "description": "The shared component configuration" }, + "configurationUri": { "kind": "property", "displayName": "Configuration Uri", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "secret": false, "description": "The path to the AtomixClient configuration" }, "defaultAction": { "kind": "property", "displayName": "Default Action", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.atomix.client.messaging.AtomixMessaging.Action", "enum": [ "DIRECT", "BROADCAST" ], "deprecated": false, "secret": false, "defaultValue": "DIRECT", "configurationClass": "org.apache.camel.component.atomix.client.messaging.AtomixMessagingConfiguration", "configurationField": "configuration", "description": [...] "memberName": { "kind": "property", "displayName": "Member Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.atomix.client.messaging.AtomixMessagingConfiguration", "configurationField": "configuration", "description": "The Atomix Group member name" }, - "nodes": { "kind": "property", "displayName": "Nodes", "group": "common", "required": false, "type": "array", "javaType": "java.util.List<io.atomix.catalyst.transport.Address>", "deprecated": false, "secret": false, "description": "The nodes the AtomixClient should connect to" }, + "nodes": { "kind": "property", "displayName": "Nodes", "group": "common", "label": "", "required": false, "type": "array", "javaType": "java.util.List<io.atomix.catalyst.transport.Address>", "deprecated": false, "deprecationNote": "", "secret": false, "description": "The nodes the AtomixClient should connect to" }, "resultHeader": { "kind": "property", "displayName": "Result Header", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.atomix.client.messaging.AtomixMessagingConfiguration", "configurationField": "configuration", "description": "The header that wil carry the result." }, "transportClassName": { "kind": "property", "displayName": "Transport Class Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "io.atomix.catalyst.transport.netty.NettyTransport", "configurationClass": "org.apache.camel.component.atomix.client.messaging.AtomixMessagingConfiguration", "configurationField": "configuration", "description": "The class name (fqn) of the Atomix tr [...] "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 processed as a message and handled by [...] diff --git a/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/multimap/atomix-multimap.json b/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/multimap/atomix-multimap.json index 8c58d09..449b7b3 100644 --- a/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/multimap/atomix-multimap.json +++ b/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/multimap/atomix-multimap.json @@ -22,12 +22,12 @@ }, "componentProperties": { "atomix": { "kind": "property", "displayName": "Atomix", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "io.atomix.Atomix", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.atomix.client.multimap.AtomixMultiMapConfiguration", "configurationField": "configuration", "description": "The Atomix instance to use" }, - "configuration": { "kind": "property", "displayName": "Configuration", "group": "producer", "required": false, "type": "object", "javaType": "org.apache.camel.component.atomix.client.multimap.AtomixMultiMapConfiguration", "deprecated": false, "secret": false, "description": "The shared component configuration" }, - "configurationUri": { "kind": "property", "displayName": "Configuration Uri", "group": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The path to the AtomixClient configuration" }, + "configuration": { "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.atomix.client.multimap.AtomixMultiMapConfiguration", "deprecated": false, "secret": false, "description": "The shared component configuration" }, + "configurationUri": { "kind": "property", "displayName": "Configuration Uri", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "secret": false, "description": "The path to the AtomixClient configuration" }, "defaultAction": { "kind": "property", "displayName": "Default Action", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.atomix.client.multimap.AtomixMultiMap.Action", "enum": [ "PUT", "GET", "CLEAR", "SIZE", "CONTAINS_KEY", "IS_EMPTY", "REMOVE", "REMOVE_VALUE" ], "deprecated": false, "secret": false, "defaultValue": "PUT", "configurationClass": "org.apache.camel.component.atomix.client.multimap.AtomixMultiMapConfiguration [...] "key": { "kind": "property", "displayName": "Key", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "java.lang.Object", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.atomix.client.multimap.AtomixMultiMapConfiguration", "configurationField": "configuration", "description": "The key to use if none is set in the header or to listen for events for a specific key." }, "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 during starting and cause the r [...] - "nodes": { "kind": "property", "displayName": "Nodes", "group": "producer", "required": false, "type": "array", "javaType": "java.util.List<io.atomix.catalyst.transport.Address>", "deprecated": false, "secret": false, "description": "The nodes the AtomixClient should connect to" }, + "nodes": { "kind": "property", "displayName": "Nodes", "group": "producer", "label": "", "required": false, "type": "array", "javaType": "java.util.List<io.atomix.catalyst.transport.Address>", "deprecated": false, "deprecationNote": "", "secret": false, "description": "The nodes the AtomixClient should connect to" }, "resultHeader": { "kind": "property", "displayName": "Result Header", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.atomix.client.multimap.AtomixMultiMapConfiguration", "configurationField": "configuration", "description": "The header that wil carry the result." }, "transportClassName": { "kind": "property", "displayName": "Transport Class Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "io.atomix.catalyst.transport.netty.NettyTransport", "configurationClass": "org.apache.camel.component.atomix.client.multimap.AtomixMultiMapConfiguration", "configurationField": "configuration", "description": "The class name (fqn) of the Atomix tr [...] "ttl": { "kind": "property", "displayName": "Ttl", "group": "producer", "label": "", "required": false, "type": "duration", "javaType": "long", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.atomix.client.multimap.AtomixMultiMapConfiguration", "configurationField": "configuration", "description": "The resource ttl." }, diff --git a/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/queue/atomix-queue.json b/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/queue/atomix-queue.json index c231d78..636a26a 100644 --- a/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/queue/atomix-queue.json +++ b/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/queue/atomix-queue.json @@ -22,10 +22,10 @@ }, "componentProperties": { "atomix": { "kind": "property", "displayName": "Atomix", "group": "common", "label": "", "required": false, "type": "object", "javaType": "io.atomix.Atomix", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.atomix.client.queue.AtomixQueueConfiguration", "configurationField": "configuration", "description": "The Atomix instance to use" }, - "configuration": { "kind": "property", "displayName": "Configuration", "group": "common", "required": false, "type": "object", "javaType": "org.apache.camel.component.atomix.client.queue.AtomixQueueConfiguration", "deprecated": false, "secret": false, "description": "The shared component configuration" }, - "configurationUri": { "kind": "property", "displayName": "Configuration Uri", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The path to the AtomixClient configuration" }, + "configuration": { "kind": "property", "displayName": "Configuration", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.atomix.client.queue.AtomixQueueConfiguration", "deprecated": false, "secret": false, "description": "The shared component configuration" }, + "configurationUri": { "kind": "property", "displayName": "Configuration Uri", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "secret": false, "description": "The path to the AtomixClient configuration" }, "defaultAction": { "kind": "property", "displayName": "Default Action", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.atomix.client.queue.AtomixQueue.Action", "enum": [ "ADD", "OFFER", "PEEK", "POLL", "CLEAR", "CONTAINS", "IS_EMPTY", "REMOVE", "SIZE" ], "deprecated": false, "secret": false, "defaultValue": "ADD", "configurationClass": "org.apache.camel.component.atomix.client.queue.AtomixQueueConfiguration", "configuratio [...] - "nodes": { "kind": "property", "displayName": "Nodes", "group": "common", "required": false, "type": "array", "javaType": "java.util.List<io.atomix.catalyst.transport.Address>", "deprecated": false, "secret": false, "description": "The nodes the AtomixClient should connect to" }, + "nodes": { "kind": "property", "displayName": "Nodes", "group": "common", "label": "", "required": false, "type": "array", "javaType": "java.util.List<io.atomix.catalyst.transport.Address>", "deprecated": false, "deprecationNote": "", "secret": false, "description": "The nodes the AtomixClient should connect to" }, "resultHeader": { "kind": "property", "displayName": "Result Header", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.atomix.client.queue.AtomixQueueConfiguration", "configurationField": "configuration", "description": "The header that wil carry the result." }, "transportClassName": { "kind": "property", "displayName": "Transport Class Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "io.atomix.catalyst.transport.netty.NettyTransport", "configurationClass": "org.apache.camel.component.atomix.client.queue.AtomixQueueConfiguration", "configurationField": "configuration", "description": "The class name (fqn) of the Atomix transport" }, "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 processed as a message and handled by [...] diff --git a/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/set/atomix-set.json b/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/set/atomix-set.json index 5169e53..35e63fa 100644 --- a/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/set/atomix-set.json +++ b/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/set/atomix-set.json @@ -22,10 +22,10 @@ }, "componentProperties": { "atomix": { "kind": "property", "displayName": "Atomix", "group": "common", "label": "", "required": false, "type": "object", "javaType": "io.atomix.Atomix", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.atomix.client.set.AtomixSetConfiguration", "configurationField": "configuration", "description": "The Atomix instance to use" }, - "configuration": { "kind": "property", "displayName": "Configuration", "group": "common", "required": false, "type": "object", "javaType": "org.apache.camel.component.atomix.client.set.AtomixSetConfiguration", "deprecated": false, "secret": false, "description": "The shared component configuration" }, - "configurationUri": { "kind": "property", "displayName": "Configuration Uri", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The path to the AtomixClient configuration" }, + "configuration": { "kind": "property", "displayName": "Configuration", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.atomix.client.set.AtomixSetConfiguration", "deprecated": false, "secret": false, "description": "The shared component configuration" }, + "configurationUri": { "kind": "property", "displayName": "Configuration Uri", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "secret": false, "description": "The path to the AtomixClient configuration" }, "defaultAction": { "kind": "property", "displayName": "Default Action", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.atomix.client.set.AtomixSet.Action", "enum": [ "ADD", "CLEAR", "CONTAINS", "IS_EMPTY", "REMOVE", "SIZE" ], "deprecated": false, "secret": false, "defaultValue": "ADD", "configurationClass": "org.apache.camel.component.atomix.client.set.AtomixSetConfiguration", "configurationField": "configuration", "descri [...] - "nodes": { "kind": "property", "displayName": "Nodes", "group": "common", "required": false, "type": "array", "javaType": "java.util.List<io.atomix.catalyst.transport.Address>", "deprecated": false, "secret": false, "description": "The nodes the AtomixClient should connect to" }, + "nodes": { "kind": "property", "displayName": "Nodes", "group": "common", "label": "", "required": false, "type": "array", "javaType": "java.util.List<io.atomix.catalyst.transport.Address>", "deprecated": false, "deprecationNote": "", "secret": false, "description": "The nodes the AtomixClient should connect to" }, "resultHeader": { "kind": "property", "displayName": "Result Header", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.atomix.client.set.AtomixSetConfiguration", "configurationField": "configuration", "description": "The header that wil carry the result." }, "transportClassName": { "kind": "property", "displayName": "Transport Class Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "io.atomix.catalyst.transport.netty.NettyTransport", "configurationClass": "org.apache.camel.component.atomix.client.set.AtomixSetConfiguration", "configurationField": "configuration", "description": "The class name (fqn) of the Atomix transport" }, "ttl": { "kind": "property", "displayName": "Ttl", "group": "common", "label": "", "required": false, "type": "duration", "javaType": "long", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.atomix.client.set.AtomixSetConfiguration", "configurationField": "configuration", "description": "The resource ttl." }, diff --git a/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/value/atomix-value.json b/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/value/atomix-value.json index 7cb03c4..c206359 100644 --- a/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/value/atomix-value.json +++ b/components/camel-atomix/src/generated/resources/org/apache/camel/component/atomix/client/value/atomix-value.json @@ -22,10 +22,10 @@ }, "componentProperties": { "atomix": { "kind": "property", "displayName": "Atomix", "group": "common", "label": "", "required": false, "type": "object", "javaType": "io.atomix.Atomix", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.atomix.client.value.AtomixValueConfiguration", "configurationField": "configuration", "description": "The Atomix instance to use" }, - "configuration": { "kind": "property", "displayName": "Configuration", "group": "common", "required": false, "type": "object", "javaType": "org.apache.camel.component.atomix.client.value.AtomixValueConfiguration", "deprecated": false, "secret": false, "description": "The shared component configuration" }, - "configurationUri": { "kind": "property", "displayName": "Configuration Uri", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The path to the AtomixClient configuration" }, + "configuration": { "kind": "property", "displayName": "Configuration", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.atomix.client.value.AtomixValueConfiguration", "deprecated": false, "secret": false, "description": "The shared component configuration" }, + "configurationUri": { "kind": "property", "displayName": "Configuration Uri", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "secret": false, "description": "The path to the AtomixClient configuration" }, "defaultAction": { "kind": "property", "displayName": "Default Action", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.atomix.client.value.AtomixValue.Action", "enum": [ "SET", "GET", "GET_AND_SET", "COMPARE_AND_SET" ], "deprecated": false, "secret": false, "defaultValue": "SET", "configurationClass": "org.apache.camel.component.atomix.client.value.AtomixValueConfiguration", "configurationField": "configuration", "descript [...] - "nodes": { "kind": "property", "displayName": "Nodes", "group": "common", "required": false, "type": "array", "javaType": "java.util.List<io.atomix.catalyst.transport.Address>", "deprecated": false, "secret": false, "description": "The nodes the AtomixClient should connect to" }, + "nodes": { "kind": "property", "displayName": "Nodes", "group": "common", "label": "", "required": false, "type": "array", "javaType": "java.util.List<io.atomix.catalyst.transport.Address>", "deprecated": false, "deprecationNote": "", "secret": false, "description": "The nodes the AtomixClient should connect to" }, "resultHeader": { "kind": "property", "displayName": "Result Header", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.atomix.client.value.AtomixValueConfiguration", "configurationField": "configuration", "description": "The header that wil carry the result." }, "transportClassName": { "kind": "property", "displayName": "Transport Class Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "io.atomix.catalyst.transport.netty.NettyTransport", "configurationClass": "org.apache.camel.component.atomix.client.value.AtomixValueConfiguration", "configurationField": "configuration", "description": "The class name (fqn) of the Atomix transport" }, "ttl": { "kind": "property", "displayName": "Ttl", "group": "common", "label": "", "required": false, "type": "duration", "javaType": "long", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.atomix.client.value.AtomixValueConfiguration", "configurationField": "configuration", "description": "The resource ttl." }, diff --git a/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/AbstractAtomixClientComponent.java b/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/AbstractAtomixClientComponent.java index a57f39b..c38ee83 100644 --- a/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/AbstractAtomixClientComponent.java +++ b/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/AbstractAtomixClientComponent.java @@ -23,6 +23,7 @@ import java.util.Properties; import io.atomix.AtomixClient; import io.atomix.catalyst.transport.Address; import org.apache.camel.CamelContext; +import org.apache.camel.spi.Metadata; import org.apache.camel.support.DefaultComponent; import org.apache.camel.support.EndpointHelper; import org.apache.camel.util.PropertiesHelper; @@ -46,6 +47,7 @@ public abstract class AbstractAtomixClientComponent<C extends AtomixClientConfig /** * The shared AtomixClient instance */ + @Metadata public void setAtomix(AtomixClient client) { getComponentConfiguration().setAtomix(client); } @@ -57,6 +59,7 @@ public abstract class AbstractAtomixClientComponent<C extends AtomixClientConfig /** * The nodes the AtomixClient should connect to */ + @Metadata public void setNodes(List<Address> nodes) { getComponentConfiguration().setNodes(nodes); } @@ -72,11 +75,11 @@ public abstract class AbstractAtomixClientComponent<C extends AtomixClientConfig /** * The path to the AtomixClient configuration */ + @Metadata public void setConfigurationUri(String configurationUri) { getComponentConfiguration().setConfigurationUri(configurationUri); } - // ***************************************** // Properties // ***************************************** diff --git a/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/map/AtomixMapComponent.java b/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/map/AtomixMapComponent.java index 40921c7..551990a 100644 --- a/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/map/AtomixMapComponent.java +++ b/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/map/AtomixMapComponent.java @@ -21,10 +21,12 @@ import java.util.Map; import org.apache.camel.CamelContext; import org.apache.camel.Endpoint; import org.apache.camel.component.atomix.client.AbstractAtomixClientComponent; +import org.apache.camel.spi.Metadata; import org.apache.camel.spi.annotations.Component; @Component("atomix-map") public final class AtomixMapComponent extends AbstractAtomixClientComponent<AtomixMapConfiguration> { + @Metadata private AtomixMapConfiguration configuration = new AtomixMapConfiguration(); public AtomixMapComponent() { diff --git a/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/messaging/AtomixMessagingComponent.java b/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/messaging/AtomixMessagingComponent.java index 7b99a65..037b08c 100644 --- a/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/messaging/AtomixMessagingComponent.java +++ b/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/messaging/AtomixMessagingComponent.java @@ -21,10 +21,12 @@ import java.util.Map; import org.apache.camel.CamelContext; import org.apache.camel.Endpoint; import org.apache.camel.component.atomix.client.AbstractAtomixClientComponent; +import org.apache.camel.spi.Metadata; import org.apache.camel.spi.annotations.Component; @Component("atomix-messaging") public final class AtomixMessagingComponent extends AbstractAtomixClientComponent<AtomixMessagingConfiguration> { + @Metadata private AtomixMessagingConfiguration configuration = new AtomixMessagingConfiguration(); public AtomixMessagingComponent() { diff --git a/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/multimap/AtomixMultiMapComponent.java b/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/multimap/AtomixMultiMapComponent.java index 3998a11..d3505a6 100644 --- a/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/multimap/AtomixMultiMapComponent.java +++ b/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/multimap/AtomixMultiMapComponent.java @@ -21,10 +21,12 @@ import java.util.Map; import org.apache.camel.CamelContext; import org.apache.camel.Endpoint; import org.apache.camel.component.atomix.client.AbstractAtomixClientComponent; +import org.apache.camel.spi.Metadata; import org.apache.camel.spi.annotations.Component; @Component("atomix-multimap") public final class AtomixMultiMapComponent extends AbstractAtomixClientComponent<AtomixMultiMapConfiguration> { + @Metadata private AtomixMultiMapConfiguration configuration = new AtomixMultiMapConfiguration(); public AtomixMultiMapComponent() { diff --git a/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/queue/AtomixQueueComponent.java b/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/queue/AtomixQueueComponent.java index 9744ac8..9cea913 100644 --- a/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/queue/AtomixQueueComponent.java +++ b/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/queue/AtomixQueueComponent.java @@ -21,10 +21,12 @@ import java.util.Map; import org.apache.camel.CamelContext; import org.apache.camel.Endpoint; import org.apache.camel.component.atomix.client.AbstractAtomixClientComponent; +import org.apache.camel.spi.Metadata; import org.apache.camel.spi.annotations.Component; @Component("atomix-queue") public final class AtomixQueueComponent extends AbstractAtomixClientComponent<AtomixQueueConfiguration> { + @Metadata private AtomixQueueConfiguration configuration = new AtomixQueueConfiguration(); public AtomixQueueComponent() { diff --git a/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/set/AtomixSetComponent.java b/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/set/AtomixSetComponent.java index 5b1a5e4..ba1ac7f 100644 --- a/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/set/AtomixSetComponent.java +++ b/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/set/AtomixSetComponent.java @@ -21,10 +21,12 @@ import java.util.Map; import org.apache.camel.CamelContext; import org.apache.camel.Endpoint; import org.apache.camel.component.atomix.client.AbstractAtomixClientComponent; +import org.apache.camel.spi.Metadata; import org.apache.camel.spi.annotations.Component; @Component("atomix-set") public final class AtomixSetComponent extends AbstractAtomixClientComponent<AtomixSetConfiguration> { + @Metadata private AtomixSetConfiguration configuration = new AtomixSetConfiguration(); public AtomixSetComponent() { diff --git a/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/value/AtomixValueComponent.java b/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/value/AtomixValueComponent.java index f32e4d6..ea0fb9d 100644 --- a/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/value/AtomixValueComponent.java +++ b/components/camel-atomix/src/main/java/org/apache/camel/component/atomix/client/value/AtomixValueComponent.java @@ -21,10 +21,12 @@ import java.util.Map; import org.apache.camel.CamelContext; import org.apache.camel.Endpoint; import org.apache.camel.component.atomix.client.AbstractAtomixClientComponent; +import org.apache.camel.spi.Metadata; import org.apache.camel.spi.annotations.Component; @Component("atomix-value") public final class AtomixValueComponent extends AbstractAtomixClientComponent<AtomixValueConfiguration> { + @Metadata private AtomixValueConfiguration configuration = new AtomixValueConfiguration(); public AtomixValueComponent() { diff --git a/components/camel-beanstalk/src/generated/resources/org/apache/camel/component/beanstalk/beanstalk.json b/components/camel-beanstalk/src/generated/resources/org/apache/camel/component/beanstalk/beanstalk.json index 64fd5ea..c2a5ca0 100644 --- a/components/camel-beanstalk/src/generated/resources/org/apache/camel/component/beanstalk/beanstalk.json +++ b/components/camel-beanstalk/src/generated/resources/org/apache/camel/component/beanstalk/beanstalk.json @@ -21,10 +21,10 @@ "lenientProperties": false }, "componentProperties": { - "connectionSettingsFactory": { "kind": "property", "displayName": "Connection Settings Factory", "group": "common", "required": false, "type": "object", "javaType": "org.apache.camel.component.beanstalk.ConnectionSettingsFactory", "deprecated": false, "secret": false, "description": "Custom ConnectionSettingsFactory. Specify which ConnectionSettingsFactory to use to make connections to Beanstalkd. Especially useful for unit testing without beanstalkd daemon (you can mock ConnectionSe [...] "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 processed as a message and handled by [...] "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 during starting and cause the r [...] - "basicPropertyBinding": { "kind": "property", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" } + "basicPropertyBinding": { "kind": "property", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" }, + "connectionSettingsFactory": { "kind": "property", "displayName": "Connection Settings Factory", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.beanstalk.ConnectionSettingsFactory", "deprecated": false, "deprecationNote": "", "secret": false, "description": "Custom ConnectionSettingsFactory. Specify which ConnectionSettingsFactory to use to make connections to Beanstalkd. Especially useful for unit testing withou [...] }, "properties": { "connectionSettings": { "kind": "path", "displayName": "Connection Settings", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "Connection settings host:port\/tube" }, diff --git a/components/camel-beanstalk/src/main/docs/beanstalk-component.adoc b/components/camel-beanstalk/src/main/docs/beanstalk-component.adoc index f79cb4e..98225c5 100644 --- a/components/camel-beanstalk/src/main/docs/beanstalk-component.adoc +++ b/components/camel-beanstalk/src/main/docs/beanstalk-component.adoc @@ -72,10 +72,10 @@ The Beanstalk component supports 4 options, which are listed below. [width="100%",cols="2,5,^1,2",options="header"] |=== | Name | Description | Default | Type -| *connectionSettingsFactory* (common) | Custom ConnectionSettingsFactory. Specify which ConnectionSettingsFactory to use to make connections to Beanstalkd. Especially useful for unit testing without beanstalkd daemon (you can mock ConnectionSettings) | | ConnectionSettingsFactory | *bridgeErrorHandler* (consumer) | 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 processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean | *lazyStartProducer* (producer) | 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 during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and [...] | *basicPropertyBinding* (advanced) | Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean +| *connectionSettingsFactory* (advanced) | Custom ConnectionSettingsFactory. Specify which ConnectionSettingsFactory to use to make connections to Beanstalkd. Especially useful for unit testing without beanstalkd daemon (you can mock ConnectionSettings) | | ConnectionSettingsFactory |=== // component options: END diff --git a/components/camel-beanstalk/src/main/java/org/apache/camel/component/beanstalk/BeanstalkComponent.java b/components/camel-beanstalk/src/main/java/org/apache/camel/component/beanstalk/BeanstalkComponent.java index 66485e7..da9ecd9 100644 --- a/components/camel-beanstalk/src/main/java/org/apache/camel/component/beanstalk/BeanstalkComponent.java +++ b/components/camel-beanstalk/src/main/java/org/apache/camel/component/beanstalk/BeanstalkComponent.java @@ -19,6 +19,7 @@ package org.apache.camel.component.beanstalk; import java.util.Map; import org.apache.camel.Endpoint; +import org.apache.camel.spi.Metadata; import org.apache.camel.spi.annotations.Component; import org.apache.camel.support.DefaultComponent; @@ -79,6 +80,7 @@ public class BeanstalkComponent extends DefaultComponent { * @param connFactory the connection factory * @see ConnectionSettingsFactory */ + @Metadata(label = "advanced") public static void setConnectionSettingsFactory(ConnectionSettingsFactory connFactory) { BeanstalkComponent.connectionSettingsFactory = connFactory; } diff --git a/components/camel-cmis/src/generated/resources/org/apache/camel/component/cmis/cmis.json b/components/camel-cmis/src/generated/resources/org/apache/camel/component/cmis/cmis.json index 63716e0..f6f058b 100644 --- a/components/camel-cmis/src/generated/resources/org/apache/camel/component/cmis/cmis.json +++ b/components/camel-cmis/src/generated/resources/org/apache/camel/component/cmis/cmis.json @@ -21,10 +21,10 @@ "lenientProperties": false }, "componentProperties": { - "sessionFacadeFactory": { "kind": "property", "displayName": "Session Facade Factory", "group": "common", "required": false, "type": "object", "javaType": "org.apache.camel.component.cmis.CMISSessionFacadeFactory", "deprecated": false, "secret": false, "description": "To use a custom CMISSessionFacadeFactory to create the CMISSessionFacade instances" }, "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 processed as a message and handled by [...] "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 during starting and cause the r [...] - "basicPropertyBinding": { "kind": "property", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" } + "basicPropertyBinding": { "kind": "property", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" }, + "sessionFacadeFactory": { "kind": "property", "displayName": "Session Facade Factory", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.cmis.CMISSessionFacadeFactory", "deprecated": false, "deprecationNote": "", "secret": false, "description": "To use a custom CMISSessionFacadeFactory to create the CMISSessionFacade instances" } }, "properties": { "cmsUrl": { "kind": "path", "displayName": "Cms Url", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "secret": false, "description": "URL to the cmis repository" }, diff --git a/components/camel-cmis/src/main/docs/cmis-component.adoc b/components/camel-cmis/src/main/docs/cmis-component.adoc index f048783..c90e62e 100644 --- a/components/camel-cmis/src/main/docs/cmis-component.adoc +++ b/components/camel-cmis/src/main/docs/cmis-component.adoc @@ -37,10 +37,10 @@ The CMIS component supports 4 options, which are listed below. [width="100%",cols="2,5,^1,2",options="header"] |=== | Name | Description | Default | Type -| *sessionFacadeFactory* (common) | To use a custom CMISSessionFacadeFactory to create the CMISSessionFacade instances | | CMISSessionFacadeFactory | *bridgeErrorHandler* (consumer) | 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 processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean | *lazyStartProducer* (producer) | 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 during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and [...] | *basicPropertyBinding* (advanced) | Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean +| *sessionFacadeFactory* (advanced) | To use a custom CMISSessionFacadeFactory to create the CMISSessionFacade instances | | CMISSessionFacadeFactory |=== // component options: END diff --git a/components/camel-cmis/src/main/java/org/apache/camel/component/cmis/CMISComponent.java b/components/camel-cmis/src/main/java/org/apache/camel/component/cmis/CMISComponent.java index 78e2d0f..1ea45095 100644 --- a/components/camel-cmis/src/main/java/org/apache/camel/component/cmis/CMISComponent.java +++ b/components/camel-cmis/src/main/java/org/apache/camel/component/cmis/CMISComponent.java @@ -20,6 +20,7 @@ import java.util.HashMap; import java.util.Map; import org.apache.camel.Endpoint; +import org.apache.camel.spi.Metadata; import org.apache.camel.spi.annotations.Component; import org.apache.camel.support.DefaultComponent; @@ -63,6 +64,7 @@ public class CMISComponent extends DefaultComponent { /** * To use a custom CMISSessionFacadeFactory to create the CMISSessionFacade instances */ + @Metadata(label = "advanced") public void setSessionFacadeFactory(CMISSessionFacadeFactory sessionFacadeFactory) { this.sessionFacadeFactory = sessionFacadeFactory; } diff --git a/components/camel-debezium-common/camel-debezium-common-component/src/main/java/org/apache/camel/component/debezium/DebeziumComponent.java b/components/camel-debezium-common/camel-debezium-common-component/src/main/java/org/apache/camel/component/debezium/DebeziumComponent.java index 1647c0a..8bcaecd 100644 --- a/components/camel-debezium-common/camel-debezium-common-component/src/main/java/org/apache/camel/component/debezium/DebeziumComponent.java +++ b/components/camel-debezium-common/camel-debezium-common-component/src/main/java/org/apache/camel/component/debezium/DebeziumComponent.java @@ -21,6 +21,7 @@ import java.util.Map; import org.apache.camel.CamelContext; import org.apache.camel.component.debezium.configuration.ConfigurationValidation; import org.apache.camel.component.debezium.configuration.EmbeddedDebeziumConfiguration; +import org.apache.camel.spi.Metadata; import org.apache.camel.support.DefaultComponent; import org.apache.camel.util.ObjectHelper; import org.apache.camel.util.PropertiesHelper; @@ -76,5 +77,6 @@ public abstract class DebeziumComponent<C extends EmbeddedDebeziumConfiguration> public abstract C getConfiguration(); + @Metadata(description = "Component configuration") public abstract void setConfiguration(C configuration); } diff --git a/components/camel-debezium-mongodb/src/generated/resources/org/apache/camel/component/debezium/debezium-mongodb.json b/components/camel-debezium-mongodb/src/generated/resources/org/apache/camel/component/debezium/debezium-mongodb.json index f2a4151..a9fdc0c 100644 --- a/components/camel-debezium-mongodb/src/generated/resources/org/apache/camel/component/debezium/debezium-mongodb.json +++ b/components/camel-debezium-mongodb/src/generated/resources/org/apache/camel/component/debezium/debezium-mongodb.json @@ -23,7 +23,7 @@ "componentProperties": { "additionalProperties": { "kind": "property", "displayName": "Additional Properties", "group": "common", "label": "common", "required": false, "type": "object", "javaType": "java.util.Map<java.lang.String, java.lang.Object>", "prefix": "additionalProperties.", "multiValue": true, "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.debezium.configuration.MongoDbConnectorEmbeddedDebeziumConfiguration", "configurationField": "configuration", "descript [...] "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 processed as a message and handled by [...] - "configuration": { "kind": "property", "displayName": "Configuration", "group": "consumer", "required": false, "type": "object", "javaType": "org.apache.camel.component.debezium.configuration.MongoDbConnectorEmbeddedDebeziumConfiguration", "deprecated": false, "secret": false, "description": "Allow pre-configured Configurations to be set." }, + "configuration": { "kind": "property", "displayName": "Configuration", "group": "consumer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.debezium.configuration.MongoDbConnectorEmbeddedDebeziumConfiguration", "deprecated": false, "secret": false, "description": "Allow pre-configured Configurations to be set." }, "internalKeyConverter": { "kind": "property", "displayName": "Internal Key Converter", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "org.apache.kafka.connect.json.JsonConverter", "configurationClass": "org.apache.camel.component.debezium.configuration.MongoDbConnectorEmbeddedDebeziumConfiguration", "configurationField": "configuration", "description": "The Converter [...] "internalValueConverter": { "kind": "property", "displayName": "Internal Value Converter", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "org.apache.kafka.connect.json.JsonConverter", "configurationClass": "org.apache.camel.component.debezium.configuration.MongoDbConnectorEmbeddedDebeziumConfiguration", "configurationField": "configuration", "description": "The Conve [...] "offsetCommitPolicy": { "kind": "property", "displayName": "Offset Commit Policy", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "io.debezium.embedded.spi.OffsetCommitPolicy.PeriodicCommitOffsetPolicy", "configurationClass": "org.apache.camel.component.debezium.configuration.MongoDbConnectorEmbeddedDebeziumConfiguration", "configurationField": "configuration", "descr [...] diff --git a/components/camel-debezium-mongodb/src/main/java/org/apache/camel/component/debezium/DebeziumMongodbComponent.java b/components/camel-debezium-mongodb/src/main/java/org/apache/camel/component/debezium/DebeziumMongodbComponent.java index e291846..b586323 100644 --- a/components/camel-debezium-mongodb/src/main/java/org/apache/camel/component/debezium/DebeziumMongodbComponent.java +++ b/components/camel-debezium-mongodb/src/main/java/org/apache/camel/component/debezium/DebeziumMongodbComponent.java @@ -18,11 +18,13 @@ package org.apache.camel.component.debezium; import org.apache.camel.CamelContext; import org.apache.camel.component.debezium.configuration.MongoDbConnectorEmbeddedDebeziumConfiguration; +import org.apache.camel.spi.Metadata; import org.apache.camel.spi.annotations.Component; @Component("debezium-mongodb") public final class DebeziumMongodbComponent extends DebeziumComponent<MongoDbConnectorEmbeddedDebeziumConfiguration> { + @Metadata private MongoDbConnectorEmbeddedDebeziumConfiguration configuration; public DebeziumMongodbComponent() { diff --git a/components/camel-debezium-mysql/src/generated/resources/org/apache/camel/component/debezium/debezium-mysql.json b/components/camel-debezium-mysql/src/generated/resources/org/apache/camel/component/debezium/debezium-mysql.json index ba9ec79..e196b4b 100644 --- a/components/camel-debezium-mysql/src/generated/resources/org/apache/camel/component/debezium/debezium-mysql.json +++ b/components/camel-debezium-mysql/src/generated/resources/org/apache/camel/component/debezium/debezium-mysql.json @@ -23,7 +23,7 @@ "componentProperties": { "additionalProperties": { "kind": "property", "displayName": "Additional Properties", "group": "common", "label": "common", "required": false, "type": "object", "javaType": "java.util.Map<java.lang.String, java.lang.Object>", "prefix": "additionalProperties.", "multiValue": true, "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.debezium.configuration.MySqlConnectorEmbeddedDebeziumConfiguration", "configurationField": "configuration", "descriptio [...] "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 processed as a message and handled by [...] - "configuration": { "kind": "property", "displayName": "Configuration", "group": "consumer", "required": false, "type": "object", "javaType": "org.apache.camel.component.debezium.configuration.MySqlConnectorEmbeddedDebeziumConfiguration", "deprecated": false, "secret": false, "description": "Allow pre-configured Configurations to be set." }, + "configuration": { "kind": "property", "displayName": "Configuration", "group": "consumer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.debezium.configuration.MySqlConnectorEmbeddedDebeziumConfiguration", "deprecated": false, "secret": false, "description": "Allow pre-configured Configurations to be set." }, "internalKeyConverter": { "kind": "property", "displayName": "Internal Key Converter", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "org.apache.kafka.connect.json.JsonConverter", "configurationClass": "org.apache.camel.component.debezium.configuration.MySqlConnectorEmbeddedDebeziumConfiguration", "configurationField": "configuration", "description": "The Converter c [...] "internalValueConverter": { "kind": "property", "displayName": "Internal Value Converter", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "org.apache.kafka.connect.json.JsonConverter", "configurationClass": "org.apache.camel.component.debezium.configuration.MySqlConnectorEmbeddedDebeziumConfiguration", "configurationField": "configuration", "description": "The Convert [...] "offsetCommitPolicy": { "kind": "property", "displayName": "Offset Commit Policy", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "io.debezium.embedded.spi.OffsetCommitPolicy.PeriodicCommitOffsetPolicy", "configurationClass": "org.apache.camel.component.debezium.configuration.MySqlConnectorEmbeddedDebeziumConfiguration", "configurationField": "configuration", "descrip [...] diff --git a/components/camel-debezium-mysql/src/main/java/org/apache/camel/component/debezium/DebeziumMySqlComponent.java b/components/camel-debezium-mysql/src/main/java/org/apache/camel/component/debezium/DebeziumMySqlComponent.java index 1fbcddb..61a84e3 100644 --- a/components/camel-debezium-mysql/src/main/java/org/apache/camel/component/debezium/DebeziumMySqlComponent.java +++ b/components/camel-debezium-mysql/src/main/java/org/apache/camel/component/debezium/DebeziumMySqlComponent.java @@ -18,11 +18,13 @@ package org.apache.camel.component.debezium; import org.apache.camel.CamelContext; import org.apache.camel.component.debezium.configuration.MySqlConnectorEmbeddedDebeziumConfiguration; +import org.apache.camel.spi.Metadata; import org.apache.camel.spi.annotations.Component; @Component("debezium-mysql") public final class DebeziumMySqlComponent extends DebeziumComponent<MySqlConnectorEmbeddedDebeziumConfiguration> { + @Metadata private MySqlConnectorEmbeddedDebeziumConfiguration configuration; public DebeziumMySqlComponent() { diff --git a/components/camel-debezium-postgres/src/generated/resources/org/apache/camel/component/debezium/debezium-postgres.json b/components/camel-debezium-postgres/src/generated/resources/org/apache/camel/component/debezium/debezium-postgres.json index 5a34edc..b270db3 100644 --- a/components/camel-debezium-postgres/src/generated/resources/org/apache/camel/component/debezium/debezium-postgres.json +++ b/components/camel-debezium-postgres/src/generated/resources/org/apache/camel/component/debezium/debezium-postgres.json @@ -23,7 +23,7 @@ "componentProperties": { "additionalProperties": { "kind": "property", "displayName": "Additional Properties", "group": "common", "label": "common", "required": false, "type": "object", "javaType": "java.util.Map<java.lang.String, java.lang.Object>", "prefix": "additionalProperties.", "multiValue": true, "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.debezium.configuration.PostgresConnectorEmbeddedDebeziumConfiguration", "configurationField": "configuration", "descrip [...] "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 processed as a message and handled by [...] - "configuration": { "kind": "property", "displayName": "Configuration", "group": "consumer", "required": false, "type": "object", "javaType": "org.apache.camel.component.debezium.configuration.PostgresConnectorEmbeddedDebeziumConfiguration", "deprecated": false, "secret": false, "description": "Allow pre-configured Configurations to be set." }, + "configuration": { "kind": "property", "displayName": "Configuration", "group": "consumer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.debezium.configuration.PostgresConnectorEmbeddedDebeziumConfiguration", "deprecated": false, "secret": false, "description": "Allow pre-configured Configurations to be set." }, "internalKeyConverter": { "kind": "property", "displayName": "Internal Key Converter", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "org.apache.kafka.connect.json.JsonConverter", "configurationClass": "org.apache.camel.component.debezium.configuration.PostgresConnectorEmbeddedDebeziumConfiguration", "configurationField": "configuration", "description": "The Converte [...] "internalValueConverter": { "kind": "property", "displayName": "Internal Value Converter", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "org.apache.kafka.connect.json.JsonConverter", "configurationClass": "org.apache.camel.component.debezium.configuration.PostgresConnectorEmbeddedDebeziumConfiguration", "configurationField": "configuration", "description": "The Conv [...] "offsetCommitPolicy": { "kind": "property", "displayName": "Offset Commit Policy", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "io.debezium.embedded.spi.OffsetCommitPolicy.PeriodicCommitOffsetPolicy", "configurationClass": "org.apache.camel.component.debezium.configuration.PostgresConnectorEmbeddedDebeziumConfiguration", "configurationField": "configuration", "desc [...] diff --git a/components/camel-debezium-postgres/src/main/java/org/apache/camel/component/debezium/DebeziumPostgresComponent.java b/components/camel-debezium-postgres/src/main/java/org/apache/camel/component/debezium/DebeziumPostgresComponent.java index b3ba44d..f4d5f8d 100644 --- a/components/camel-debezium-postgres/src/main/java/org/apache/camel/component/debezium/DebeziumPostgresComponent.java +++ b/components/camel-debezium-postgres/src/main/java/org/apache/camel/component/debezium/DebeziumPostgresComponent.java @@ -18,11 +18,13 @@ package org.apache.camel.component.debezium; import org.apache.camel.CamelContext; import org.apache.camel.component.debezium.configuration.PostgresConnectorEmbeddedDebeziumConfiguration; +import org.apache.camel.spi.Metadata; import org.apache.camel.spi.annotations.Component; @Component("debezium-postgres") public final class DebeziumPostgresComponent extends DebeziumComponent<PostgresConnectorEmbeddedDebeziumConfiguration> { + @Metadata private PostgresConnectorEmbeddedDebeziumConfiguration configuration; public DebeziumPostgresComponent() { diff --git a/components/camel-debezium-sqlserver/src/generated/resources/org/apache/camel/component/debezium/debezium-sqlserver.json b/components/camel-debezium-sqlserver/src/generated/resources/org/apache/camel/component/debezium/debezium-sqlserver.json index 6c4d6f8..904bdc6 100644 --- a/components/camel-debezium-sqlserver/src/generated/resources/org/apache/camel/component/debezium/debezium-sqlserver.json +++ b/components/camel-debezium-sqlserver/src/generated/resources/org/apache/camel/component/debezium/debezium-sqlserver.json @@ -23,7 +23,7 @@ "componentProperties": { "additionalProperties": { "kind": "property", "displayName": "Additional Properties", "group": "common", "label": "common", "required": false, "type": "object", "javaType": "java.util.Map<java.lang.String, java.lang.Object>", "prefix": "additionalProperties.", "multiValue": true, "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.debezium.configuration.SqlServerConnectorEmbeddedDebeziumConfiguration", "configurationField": "configuration", "descri [...] "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 processed as a message and handled by [...] - "configuration": { "kind": "property", "displayName": "Configuration", "group": "consumer", "required": false, "type": "object", "javaType": "org.apache.camel.component.debezium.configuration.SqlServerConnectorEmbeddedDebeziumConfiguration", "deprecated": false, "secret": false, "description": "Allow pre-configured Configurations to be set." }, + "configuration": { "kind": "property", "displayName": "Configuration", "group": "consumer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.debezium.configuration.SqlServerConnectorEmbeddedDebeziumConfiguration", "deprecated": false, "secret": false, "description": "Allow pre-configured Configurations to be set." }, "internalKeyConverter": { "kind": "property", "displayName": "Internal Key Converter", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "org.apache.kafka.connect.json.JsonConverter", "configurationClass": "org.apache.camel.component.debezium.configuration.SqlServerConnectorEmbeddedDebeziumConfiguration", "configurationField": "configuration", "description": "The Convert [...] "internalValueConverter": { "kind": "property", "displayName": "Internal Value Converter", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "org.apache.kafka.connect.json.JsonConverter", "configurationClass": "org.apache.camel.component.debezium.configuration.SqlServerConnectorEmbeddedDebeziumConfiguration", "configurationField": "configuration", "description": "The Con [...] "offsetCommitPolicy": { "kind": "property", "displayName": "Offset Commit Policy", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "io.debezium.embedded.spi.OffsetCommitPolicy.PeriodicCommitOffsetPolicy", "configurationClass": "org.apache.camel.component.debezium.configuration.SqlServerConnectorEmbeddedDebeziumConfiguration", "configurationField": "configuration", "des [...] diff --git a/components/camel-debezium-sqlserver/src/main/java/org/apache/camel/component/debezium/DebeziumSqlserverComponent.java b/components/camel-debezium-sqlserver/src/main/java/org/apache/camel/component/debezium/DebeziumSqlserverComponent.java index dfb5f8e..9f9b3ca 100644 --- a/components/camel-debezium-sqlserver/src/main/java/org/apache/camel/component/debezium/DebeziumSqlserverComponent.java +++ b/components/camel-debezium-sqlserver/src/main/java/org/apache/camel/component/debezium/DebeziumSqlserverComponent.java @@ -18,11 +18,13 @@ package org.apache.camel.component.debezium; import org.apache.camel.CamelContext; import org.apache.camel.component.debezium.configuration.SqlServerConnectorEmbeddedDebeziumConfiguration; +import org.apache.camel.spi.Metadata; import org.apache.camel.spi.annotations.Component; @Component("debezium-sqlserver") public final class DebeziumSqlserverComponent extends DebeziumComponent<SqlServerConnectorEmbeddedDebeziumConfiguration> { + @Metadata private SqlServerConnectorEmbeddedDebeziumConfiguration configuration; public DebeziumSqlserverComponent() { diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/As2ComponentBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/As2ComponentBuilderFactory.java index 63722f2..d15557e 100644 --- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/As2ComponentBuilderFactory.java +++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/As2ComponentBuilderFactory.java @@ -47,19 +47,6 @@ public interface As2ComponentBuilderFactory { */ interface As2ComponentBuilder extends ComponentBuilder<AS2Component> { /** - * To use the shared configuration. - * - * The option is a: - * <code>org.apache.camel.component.as2.AS2Configuration</code> type. - * - * Group: common - */ - default As2ComponentBuilder configuration( - org.apache.camel.component.as2.AS2Configuration configuration) { - doSetProperty("configuration", configuration); - return this; - } - /** * 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 processed as a @@ -112,6 +99,19 @@ public interface As2ComponentBuilderFactory { doSetProperty("basicPropertyBinding", basicPropertyBinding); return this; } + /** + * Component configuration. + * + * The option is a: + * <code>org.apache.camel.component.as2.AS2Configuration</code> type. + * + * Group: advanced + */ + default As2ComponentBuilder configuration( + org.apache.camel.component.as2.AS2Configuration configuration) { + doSetProperty("configuration", configuration); + return this; + } } class As2ComponentBuilderImpl @@ -129,10 +129,10 @@ public interface As2ComponentBuilderFactory { String name, Object value) { switch (name) { - case "configuration": ((AS2Component) component).setConfiguration((org.apache.camel.component.as2.AS2Configuration) value); return true; case "bridgeErrorHandler": ((AS2Component) component).setBridgeErrorHandler((boolean) value); return true; case "lazyStartProducer": ((AS2Component) component).setLazyStartProducer((boolean) value); return true; case "basicPropertyBinding": ((AS2Component) component).setBasicPropertyBinding((boolean) value); return true; + case "configuration": ((AS2Component) component).setConfiguration((org.apache.camel.component.as2.AS2Configuration) value); return true; default: return false; } } diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/BeanstalkComponentBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/BeanstalkComponentBuilderFactory.java index 1814cbf..936f1f9 100644 --- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/BeanstalkComponentBuilderFactory.java +++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/BeanstalkComponentBuilderFactory.java @@ -49,22 +49,6 @@ public interface BeanstalkComponentBuilderFactory { extends ComponentBuilder<BeanstalkComponent> { /** - * Custom ConnectionSettingsFactory. Specify which - * ConnectionSettingsFactory to use to make connections to Beanstalkd. - * Especially useful for unit testing without beanstalkd daemon (you can - * mock ConnectionSettings). - * - * The option is a: - * <code>org.apache.camel.component.beanstalk.ConnectionSettingsFactory</code> type. - * - * Group: common - */ - default BeanstalkComponentBuilder connectionSettingsFactory( - org.apache.camel.component.beanstalk.ConnectionSettingsFactory connectionSettingsFactory) { - doSetProperty("connectionSettingsFactory", connectionSettingsFactory); - return this; - } - /** * 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 processed as a @@ -118,6 +102,22 @@ public interface BeanstalkComponentBuilderFactory { doSetProperty("basicPropertyBinding", basicPropertyBinding); return this; } + /** + * Custom ConnectionSettingsFactory. Specify which + * ConnectionSettingsFactory to use to make connections to Beanstalkd. + * Especially useful for unit testing without beanstalkd daemon (you can + * mock ConnectionSettings). + * + * The option is a: + * <code>org.apache.camel.component.beanstalk.ConnectionSettingsFactory</code> type. + * + * Group: advanced + */ + default BeanstalkComponentBuilder connectionSettingsFactory( + org.apache.camel.component.beanstalk.ConnectionSettingsFactory connectionSettingsFactory) { + doSetProperty("connectionSettingsFactory", connectionSettingsFactory); + return this; + } } class BeanstalkComponentBuilderImpl @@ -135,10 +135,10 @@ public interface BeanstalkComponentBuilderFactory { String name, Object value) { switch (name) { - case "connectionSettingsFactory": ((BeanstalkComponent) component).setConnectionSettingsFactory((org.apache.camel.component.beanstalk.ConnectionSettingsFactory) value); return true; case "bridgeErrorHandler": ((BeanstalkComponent) component).setBridgeErrorHandler((boolean) value); return true; case "lazyStartProducer": ((BeanstalkComponent) component).setLazyStartProducer((boolean) value); return true; case "basicPropertyBinding": ((BeanstalkComponent) component).setBasicPropertyBinding((boolean) value); return true; + case "connectionSettingsFactory": ((BeanstalkComponent) component).setConnectionSettingsFactory((org.apache.camel.component.beanstalk.ConnectionSettingsFactory) value); return true; default: return false; } } diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CmisComponentBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CmisComponentBuilderFactory.java index e36b96e..32b1e5d 100644 --- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CmisComponentBuilderFactory.java +++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CmisComponentBuilderFactory.java @@ -47,21 +47,6 @@ public interface CmisComponentBuilderFactory { */ interface CmisComponentBuilder extends ComponentBuilder<CMISComponent> { /** - * To use a custom CMISSessionFacadeFactory to create the - * CMISSessionFacade instances. - * - * The option is a: - * <code>org.apache.camel.component.cmis.CMISSessionFacadeFactory</code> - * type. - * - * Group: common - */ - default CmisComponentBuilder sessionFacadeFactory( - org.apache.camel.component.cmis.CMISSessionFacadeFactory sessionFacadeFactory) { - doSetProperty("sessionFacadeFactory", sessionFacadeFactory); - return this; - } - /** * 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 processed as a @@ -114,6 +99,21 @@ public interface CmisComponentBuilderFactory { doSetProperty("basicPropertyBinding", basicPropertyBinding); return this; } + /** + * To use a custom CMISSessionFacadeFactory to create the + * CMISSessionFacade instances. + * + * The option is a: + * <code>org.apache.camel.component.cmis.CMISSessionFacadeFactory</code> + * type. + * + * Group: advanced + */ + default CmisComponentBuilder sessionFacadeFactory( + org.apache.camel.component.cmis.CMISSessionFacadeFactory sessionFacadeFactory) { + doSetProperty("sessionFacadeFactory", sessionFacadeFactory); + return this; + } } class CmisComponentBuilderImpl @@ -131,10 +131,10 @@ public interface CmisComponentBuilderFactory { String name, Object value) { switch (name) { - case "sessionFacadeFactory": ((CMISComponent) component).setSessionFacadeFactory((org.apache.camel.component.cmis.CMISSessionFacadeFactory) value); return true; case "bridgeErrorHandler": ((CMISComponent) component).setBridgeErrorHandler((boolean) value); return true; case "lazyStartProducer": ((CMISComponent) component).setLazyStartProducer((boolean) value); return true; case "basicPropertyBinding": ((CMISComponent) component).setBasicPropertyBinding((boolean) value); return true; + case "sessionFacadeFactory": ((CMISComponent) component).setSessionFacadeFactory((org.apache.camel.component.cmis.CMISSessionFacadeFactory) value); return true; default: return false; } }