gnodet-bot commented on code in PR #26921:
URL: https://github.com/apache/camel/pull/26921#discussion_r4114086314
##########
dsl/camel-yaml-dsl/camel-yaml-dsl/src/main/docs/yaml-dsl.adoc:
##########
@@ -365,6 +365,23 @@ In addition to the general support for creating beans
provided by xref:others:ma
<2> the full qualified class name of the bean
<3> the properties of the bean to be set
+[NOTE]
+====
+The beans can also be written as a map keyed by the bean name, without
`name:`, as the value of `beans:`:
+
+[source,yaml]
+----
+beans:
Review Comment:
💡 **Nit:** The map-form example uses `type: com.acme.MyBean` but the
list-form example directly above uses `type: "#class:com.acme.MyBean"`. Without
the `#class:` prefix, `com.acme.MyBean` is a registry lookup, not a class
instantiation — users copying this example will get unexpected behavior.
```suggestion
type: "#class:com.acme.MyBean"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]