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

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit d6a8d7187c48f2da1177f17ed55457cb78acc803
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Thu Apr 15 14:06:01 2021 +0200

    CAMEL-16512 - Camel-Azure components: mark the clients as autowired - 
Storage-Queue
---
 .../org/apache/camel/catalog/docs/azure-storage-queue-component.adoc | 4 ++--
 .../component/azure/storage/queue/QueueComponentConfigurer.java      | 5 +++++
 .../camel/component/azure/storage/queue/QueueEndpointConfigurer.java | 5 +++++
 .../camel/component/azure/storage/queue/azure-storage-queue.json     | 4 ++--
 .../src/main/docs/azure-storage-queue-component.adoc                 | 4 ++--
 .../components/modules/ROOT/pages/azure-storage-queue-component.adoc | 4 ++--
 6 files changed, 18 insertions(+), 8 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-storage-queue-component.adoc
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-storage-queue-component.adoc
index ee5af32..2a6c922 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-storage-queue-component.adoc
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-storage-queue-component.adoc
@@ -71,7 +71,7 @@ The Azure Storage Queue Service component supports 16 
options, which are listed
 | Name | Description | Default | Type
 | *autoDiscoverClient* (common) | Setting the autoDiscoverClient mechanism, if 
true, the component will look for a client instance in the registry 
automatically otherwise it will skip that checking. | true | boolean
 | *configuration* (common) | The component configurations |  | 
QueueConfiguration
-| *serviceClient* (common) | Service client to a storage account to interact 
with the queue service. This client does not hold any state about a particular 
storage account but is instead a convenient way of sending off appropriate 
requests to the resource on the service. This client contains all the 
operations for interacting with a queue account in Azure Storage. Operations 
allowed by the client are creating, listing, and deleting queues, retrieving 
and updating properties of the accoun [...]
+| *serviceClient* (common) | *Autowired* Service client to a storage account 
to interact with the queue service. This client does not hold any state about a 
particular storage account but is instead a convenient way of sending off 
appropriate requests to the resource on the service. This client contains all 
the operations for interacting with a queue account in Azure Storage. 
Operations allowed by the client are creating, listing, and deleting queues, 
retrieving and updating properties o [...]
 | *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
 | *createQueue* (producer) | When is set to true, the queue will be 
automatically created when sending messages to the queue. | true | 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 [...]
@@ -115,7 +115,7 @@ with the following path and query parameters:
 |===
 | Name | Description | Default | Type
 | *autoDiscoverClient* (common) | Setting the autoDiscoverClient mechanism, if 
true, the component will look for a client instance in the registry 
automatically otherwise it will skip that checking. | true | boolean
-| *serviceClient* (common) | Service client to a storage account to interact 
with the queue service. This client does not hold any state about a particular 
storage account but is instead a convenient way of sending off appropriate 
requests to the resource on the service. This client contains all the 
operations for interacting with a queue account in Azure Storage. Operations 
allowed by the client are creating, listing, and deleting queues, retrieving 
and updating properties of the accoun [...]
+| *serviceClient* (common) | *Autowired* Service client to a storage account 
to interact with the queue service. This client does not hold any state about a 
particular storage account but is instead a convenient way of sending off 
appropriate requests to the resource on the service. This client contains all 
the operations for interacting with a queue account in Azure Storage. 
Operations allowed by the client are creating, listing, and deleting queues, 
retrieving and updating properties o [...]
 | *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
 | *sendEmptyMessageWhenIdle* (consumer) | If the polling consumer did not poll 
any files, you can enable this option to send an empty message (no body) 
instead. | false | boolean
 | *exceptionHandler* (consumer) | To let the consumer use a custom 
ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this 
option is not in use. By default the consumer will deal with exceptions, that 
will be logged at WARN or ERROR level and ignored. |  | ExceptionHandler
diff --git 
a/components/camel-azure/camel-azure-storage-queue/src/generated/java/org/apache/camel/component/azure/storage/queue/QueueComponentConfigurer.java
 
b/components/camel-azure/camel-azure-storage-queue/src/generated/java/org/apache/camel/component/azure/storage/queue/QueueComponentConfigurer.java
index d48cdd2..f9a9e87 100644
--- 
a/components/camel-azure/camel-azure-storage-queue/src/generated/java/org/apache/camel/component/azure/storage/queue/QueueComponentConfigurer.java
+++ 
b/components/camel-azure/camel-azure-storage-queue/src/generated/java/org/apache/camel/component/azure/storage/queue/QueueComponentConfigurer.java
@@ -61,6 +61,11 @@ public class QueueComponentConfigurer extends 
PropertyConfigurerSupport implemen
     }
 
     @Override
+    public String[] getAutowiredNames() {
+        return new String[]{"serviceClient"};
+    }
+
+    @Override
     public Class<?> getOptionType(String name, boolean ignoreCase) {
         switch (ignoreCase ? name.toLowerCase() : name) {
         case "accesskey":
diff --git 
a/components/camel-azure/camel-azure-storage-queue/src/generated/java/org/apache/camel/component/azure/storage/queue/QueueEndpointConfigurer.java
 
b/components/camel-azure/camel-azure-storage-queue/src/generated/java/org/apache/camel/component/azure/storage/queue/QueueEndpointConfigurer.java
index ada4709..cef9328 100644
--- 
a/components/camel-azure/camel-azure-storage-queue/src/generated/java/org/apache/camel/component/azure/storage/queue/QueueEndpointConfigurer.java
+++ 
b/components/camel-azure/camel-azure-storage-queue/src/generated/java/org/apache/camel/component/azure/storage/queue/QueueEndpointConfigurer.java
@@ -84,6 +84,11 @@ public class QueueEndpointConfigurer extends 
PropertyConfigurerSupport implement
     }
 
     @Override
+    public String[] getAutowiredNames() {
+        return new String[]{"serviceClient"};
+    }
+
+    @Override
     public Class<?> getOptionType(String name, boolean ignoreCase) {
         switch (ignoreCase ? name.toLowerCase() : name) {
         case "accesskey":
diff --git 
a/components/camel-azure/camel-azure-storage-queue/src/generated/resources/org/apache/camel/component/azure/storage/queue/azure-storage-queue.json
 
b/components/camel-azure/camel-azure-storage-queue/src/generated/resources/org/apache/camel/component/azure/storage/queue/azure-storage-queue.json
index 0674691..0517674 100644
--- 
a/components/camel-azure/camel-azure-storage-queue/src/generated/resources/org/apache/camel/component/azure/storage/queue/azure-storage-queue.json
+++ 
b/components/camel-azure/camel-azure-storage-queue/src/generated/resources/org/apache/camel/component/azure/storage/queue/azure-storage-queue.json
@@ -24,7 +24,7 @@
   "componentProperties": {
     "autoDiscoverClient": { "kind": "property", "displayName": "Auto Discover 
Client", "group": "common", "label": "common", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": true, "configurationClass": 
"org.apache.camel.component.azure.storage.queue.QueueConfiguration", 
"configurationField": "configuration", "description": "Setting the 
autoDiscoverClient mechanism, if true, the component will look for a [...]
     "configuration": { "kind": "property", "displayName": "Configuration", 
"group": "common", "label": "", "required": false, "type": "object", 
"javaType": 
"org.apache.camel.component.azure.storage.queue.QueueConfiguration", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
component configurations" },
-    "serviceClient": { "kind": "property", "displayName": "Service Client", 
"group": "common", "label": "common", "required": false, "type": "object", 
"javaType": "com.azure.storage.queue.QueueServiceClient", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.azure.storage.queue.QueueConfiguration", 
"configurationField": "configuration", "description": "Service client to a 
storage account to interact with the queue service. This cl [...]
+    "serviceClient": { "kind": "property", "displayName": "Service Client", 
"group": "common", "label": "common", "required": false, "type": "object", 
"javaType": "com.azure.storage.queue.QueueServiceClient", "deprecated": false, 
"deprecationNote": "", "autowired": true, "secret": false, 
"configurationClass": 
"org.apache.camel.component.azure.storage.queue.QueueConfiguration", 
"configurationField": "configuration", "description": "Service client to a 
storage account to interact with the  [...]
     "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error 
Handler", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "Allows for bridging the 
consumer to the Camel routing Error Handler, which mean any exceptions occurred 
while the consumer is trying to pickup incoming messages, or the likes, will 
now be processed as a me [...]
     "createQueue": { "kind": "property", "displayName": "Create Queue", 
"group": "producer", "label": "producer", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": true, "configurationClass": 
"org.apache.camel.component.azure.storage.queue.QueueConfiguration", 
"configurationField": "configuration", "description": "When is set to true, the 
queue will be automatically created when sending messages to the q [...]
     "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start 
Producer", "group": "producer", "label": "producer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": 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 star [...]
@@ -43,7 +43,7 @@
     "accountName": { "kind": "path", "displayName": "Account Name", "group": 
"common", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": 
"org.apache.camel.component.azure.storage.queue.QueueConfiguration", 
"configurationField": "configuration", "description": "Azure account name to be 
used for authentication with azure queue services" },
     "queueName": { "kind": "path", "displayName": "Queue Name", "group": 
"common", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": 
"org.apache.camel.component.azure.storage.queue.QueueConfiguration", 
"configurationField": "configuration", "description": "The queue resource name" 
},
     "autoDiscoverClient": { "kind": "parameter", "displayName": "Auto Discover 
Client", "group": "common", "label": "common", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": true, "configurationClass": 
"org.apache.camel.component.azure.storage.queue.QueueConfiguration", 
"configurationField": "configuration", "description": "Setting the 
autoDiscoverClient mechanism, if true, the component will look for  [...]
-    "serviceClient": { "kind": "parameter", "displayName": "Service Client", 
"group": "common", "label": "common", "required": false, "type": "object", 
"javaType": "com.azure.storage.queue.QueueServiceClient", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.azure.storage.queue.QueueConfiguration", 
"configurationField": "configuration", "description": "Service client to a 
storage account to interact with the queue service. This c [...]
+    "serviceClient": { "kind": "parameter", "displayName": "Service Client", 
"group": "common", "label": "common", "required": false, "type": "object", 
"javaType": "com.azure.storage.queue.QueueServiceClient", "deprecated": false, 
"deprecationNote": "", "autowired": true, "secret": false, 
"configurationClass": 
"org.apache.camel.component.azure.storage.queue.QueueConfiguration", 
"configurationField": "configuration", "description": "Service client to a 
storage account to interact with the [...]
     "bridgeErrorHandler": { "kind": "parameter", "displayName": "Bridge Error 
Handler", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "Allows for bridging the 
consumer to the Camel routing Error Handler, which mean any exceptions occurred 
while the consumer is trying to pickup incoming messages, or the likes, will 
now be processed as a m [...]
     "sendEmptyMessageWhenIdle": { "kind": "parameter", "displayName": "Send 
Empty Message When Idle", "group": "consumer", "label": "consumer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, "description": "If 
the polling consumer did not poll any files, you can enable this option to send 
an empty message (no body) instead." },
     "exceptionHandler": { "kind": "parameter", "displayName": "Exception 
Handler", "group": "consumer (advanced)", "label": "consumer,advanced", 
"required": false, "type": "object", "javaType": 
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", 
"deprecated": false, "autowired": false, "secret": false, "description": "To 
let the consumer use a custom ExceptionHandler. Notice if the option 
bridgeErrorHandler is enabled then this option is not in use. By default the 
con [...]
diff --git 
a/components/camel-azure/camel-azure-storage-queue/src/main/docs/azure-storage-queue-component.adoc
 
b/components/camel-azure/camel-azure-storage-queue/src/main/docs/azure-storage-queue-component.adoc
index ee5af32..2a6c922 100644
--- 
a/components/camel-azure/camel-azure-storage-queue/src/main/docs/azure-storage-queue-component.adoc
+++ 
b/components/camel-azure/camel-azure-storage-queue/src/main/docs/azure-storage-queue-component.adoc
@@ -71,7 +71,7 @@ The Azure Storage Queue Service component supports 16 
options, which are listed
 | Name | Description | Default | Type
 | *autoDiscoverClient* (common) | Setting the autoDiscoverClient mechanism, if 
true, the component will look for a client instance in the registry 
automatically otherwise it will skip that checking. | true | boolean
 | *configuration* (common) | The component configurations |  | 
QueueConfiguration
-| *serviceClient* (common) | Service client to a storage account to interact 
with the queue service. This client does not hold any state about a particular 
storage account but is instead a convenient way of sending off appropriate 
requests to the resource on the service. This client contains all the 
operations for interacting with a queue account in Azure Storage. Operations 
allowed by the client are creating, listing, and deleting queues, retrieving 
and updating properties of the accoun [...]
+| *serviceClient* (common) | *Autowired* Service client to a storage account 
to interact with the queue service. This client does not hold any state about a 
particular storage account but is instead a convenient way of sending off 
appropriate requests to the resource on the service. This client contains all 
the operations for interacting with a queue account in Azure Storage. 
Operations allowed by the client are creating, listing, and deleting queues, 
retrieving and updating properties o [...]
 | *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
 | *createQueue* (producer) | When is set to true, the queue will be 
automatically created when sending messages to the queue. | true | 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 [...]
@@ -115,7 +115,7 @@ with the following path and query parameters:
 |===
 | Name | Description | Default | Type
 | *autoDiscoverClient* (common) | Setting the autoDiscoverClient mechanism, if 
true, the component will look for a client instance in the registry 
automatically otherwise it will skip that checking. | true | boolean
-| *serviceClient* (common) | Service client to a storage account to interact 
with the queue service. This client does not hold any state about a particular 
storage account but is instead a convenient way of sending off appropriate 
requests to the resource on the service. This client contains all the 
operations for interacting with a queue account in Azure Storage. Operations 
allowed by the client are creating, listing, and deleting queues, retrieving 
and updating properties of the accoun [...]
+| *serviceClient* (common) | *Autowired* Service client to a storage account 
to interact with the queue service. This client does not hold any state about a 
particular storage account but is instead a convenient way of sending off 
appropriate requests to the resource on the service. This client contains all 
the operations for interacting with a queue account in Azure Storage. 
Operations allowed by the client are creating, listing, and deleting queues, 
retrieving and updating properties o [...]
 | *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
 | *sendEmptyMessageWhenIdle* (consumer) | If the polling consumer did not poll 
any files, you can enable this option to send an empty message (no body) 
instead. | false | boolean
 | *exceptionHandler* (consumer) | To let the consumer use a custom 
ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this 
option is not in use. By default the consumer will deal with exceptions, that 
will be logged at WARN or ERROR level and ignored. |  | ExceptionHandler
diff --git 
a/docs/components/modules/ROOT/pages/azure-storage-queue-component.adoc 
b/docs/components/modules/ROOT/pages/azure-storage-queue-component.adoc
index 6260f9d2..d4ebed1 100644
--- a/docs/components/modules/ROOT/pages/azure-storage-queue-component.adoc
+++ b/docs/components/modules/ROOT/pages/azure-storage-queue-component.adoc
@@ -73,7 +73,7 @@ The Azure Storage Queue Service component supports 16 
options, which are listed
 | Name | Description | Default | Type
 | *autoDiscoverClient* (common) | Setting the autoDiscoverClient mechanism, if 
true, the component will look for a client instance in the registry 
automatically otherwise it will skip that checking. | true | boolean
 | *configuration* (common) | The component configurations |  | 
QueueConfiguration
-| *serviceClient* (common) | Service client to a storage account to interact 
with the queue service. This client does not hold any state about a particular 
storage account but is instead a convenient way of sending off appropriate 
requests to the resource on the service. This client contains all the 
operations for interacting with a queue account in Azure Storage. Operations 
allowed by the client are creating, listing, and deleting queues, retrieving 
and updating properties of the accoun [...]
+| *serviceClient* (common) | *Autowired* Service client to a storage account 
to interact with the queue service. This client does not hold any state about a 
particular storage account but is instead a convenient way of sending off 
appropriate requests to the resource on the service. This client contains all 
the operations for interacting with a queue account in Azure Storage. 
Operations allowed by the client are creating, listing, and deleting queues, 
retrieving and updating properties o [...]
 | *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
 | *createQueue* (producer) | When is set to true, the queue will be 
automatically created when sending messages to the queue. | true | 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 [...]
@@ -117,7 +117,7 @@ with the following path and query parameters:
 |===
 | Name | Description | Default | Type
 | *autoDiscoverClient* (common) | Setting the autoDiscoverClient mechanism, if 
true, the component will look for a client instance in the registry 
automatically otherwise it will skip that checking. | true | boolean
-| *serviceClient* (common) | Service client to a storage account to interact 
with the queue service. This client does not hold any state about a particular 
storage account but is instead a convenient way of sending off appropriate 
requests to the resource on the service. This client contains all the 
operations for interacting with a queue account in Azure Storage. Operations 
allowed by the client are creating, listing, and deleting queues, retrieving 
and updating properties of the accoun [...]
+| *serviceClient* (common) | *Autowired* Service client to a storage account 
to interact with the queue service. This client does not hold any state about a 
particular storage account but is instead a convenient way of sending off 
appropriate requests to the resource on the service. This client contains all 
the operations for interacting with a queue account in Azure Storage. 
Operations allowed by the client are creating, listing, and deleting queues, 
retrieving and updating properties o [...]
 | *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
 | *sendEmptyMessageWhenIdle* (consumer) | If the polling consumer did not poll 
any files, you can enable this option to send an empty message (no body) 
instead. | false | boolean
 | *exceptionHandler* (consumer) | To let the consumer use a custom 
ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this 
option is not in use. By default the consumer will deal with exceptions, that 
will be logged at WARN or ERROR level and ignored. |  | ExceptionHandler

Reply via email to