You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pp...@apache.org on 2021/07/29 06:33:43 UTC

[camel-quarkus] branch main updated: Improve the Configuration by convention section of the configuration guide

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

ppalaga pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/main by this push:
     new 03c60b4  Improve the Configuration by convention section of the configuration guide
03c60b4 is described below

commit 03c60b46b785180b7ff76435a8a1fa1729da1029
Author: Peter Palaga <pp...@redhat.com>
AuthorDate: Wed Jul 28 22:08:56 2021 +0200

    Improve the Configuration by convention section of the configuration guide
---
 docs/modules/ROOT/pages/user-guide/configuration.adoc | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/docs/modules/ROOT/pages/user-guide/configuration.adoc b/docs/modules/ROOT/pages/user-guide/configuration.adoc
index e378034..b8dc09c 100644
--- a/docs/modules/ROOT/pages/user-guide/configuration.adoc
+++ b/docs/modules/ROOT/pages/user-guide/configuration.adoc
@@ -117,6 +117,18 @@ public class Configurations {
 In addition to support configuring Camel through properties, `camel-quarkus-core` allows you to use conventions to configure the Camel behavior.
 For example, if there is a single `ExchangeFormatter` instance in the CDI container, then it will automatically wire that bean to the `LogComponent`.
 
+Component options for which this is supported are maked as _Autowired_ on their documentation pages
+- see e.g. the `exchangeFormatter` option on the xref:{cq-camel-components}::log-component.adoc#_options[Log component] page.
+
+You can pass `autowiredEnabled=false` to disable it.
+
+In case autowiring is performed for some component option, you should see a similar INFO-level message in the application log:
+
+[source,shell]
+----
+Autowired property: exchangeFormatter on component: log as exactly one instance of type: software.amazon.org.apache.camel.spi.ExchangeFormatter (org.apache.camel.support.processor.DefaultExchangeFormatter) found in the registry
+----
+
 == What's next?
 
 We recommend to continue with xref:user-guide/cdi.adoc[CDI].