[
https://issues.apache.org/jira/browse/CAMEL-17939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17520680#comment-17520680
]
Claus Ibsen commented on CAMEL-17939:
-------------------------------------
Its a little bit more difficult as we have dot style only now, and to have pure
map support without the #class, then we need to auto-detect this too, so you
can do
main.addProperty("camel.beans.foo[database]", "mydb");
main.addProperty("camel.beans.foo[username]", "scott");
main.addProperty("camel.beans.foo[password]", "tiger");
Then we would infer that foo is a map bean
> camel-main - Configure camel.beans map style using square brackets
> ------------------------------------------------------------------
>
> Key: CAMEL-17939
> URL: https://issues.apache.org/jira/browse/CAMEL-17939
> Project: Camel
> Issue Type: Task
> Components: camel-main
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 3.17.0
>
>
> https://camel.zulipchat.com/#narrow/stream/257298-camel/topic/How.20do.20I.20define.20Map.20property.3F
> // create by class
> main.addProperty("camel.beans.foo", "#class:java.util.HashMap");
> main.addProperty("camel.beans.foo[database]", "mydb");
> main.addProperty("camel.beans.foo[username]", "scott");
> main.addProperty("camel.beans.foo[password]", "tiger");
> Using square brackets is not support for camel.beans, but is in other places
> such as camel.components
--
This message was sent by Atlassian Jira
(v8.20.1#820001)