[ https://issues.apache.org/jira/browse/CAMEL-3564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985390#action_12985390 ]
Claus Ibsen commented on CAMEL-3564: ------------------------------------ >From a tooling perspective and maybe also as an end user, you would maybe >better be able to figure out how to refer to a bean if we had a {code:xml} <ref>foo</ref> {code} element as an expression. Then it's listed in the XSD schema and the editor can show it for you. Also we can list it at the website, as we do with the others http://camel.apache.org/languages I am not sure that a new user would be able to understand he can use the simple expression language to resolve his issue? We could of course add a FAQ entry and have an example, that would help some users. That said, I would think from a tooling perspective that the {{<ref>}} element would help there as well. I think we should re-consider this for Camel 2.7. > RefLanguage - To be able to refer to something from the registry > ---------------------------------------------------------------- > > Key: CAMEL-3564 > URL: https://issues.apache.org/jira/browse/CAMEL-3564 > Project: Camel > Issue Type: New Feature > Components: camel-core, camel-spring > Affects Versions: 2.5.0 > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Priority: Minor > Fix For: 2.6.0 > > > See nabble > http://camel.465427.n5.nabble.com/Set-exchange-property-to-a-Map-tp3349171p3349171.html > This is needed for folks using XML routing. An expression which can refer to > something from the registry. > We can also add a {{ref}} function to the simple language so you can use that > as well. > In simple the function should be {{ref:id}} where id is the id to lookup. > For example > {code:xml} > <bean id="foo" class=...> > <!-- options --> > </bean> > <setProperty name="myFoo"> > <ref id="foo"/> > </setProperty> > {code} > And when using simple > {code:xml} > <setProperty name="myFoo"> > <simple>${ref:foo}</simple> > </setProperty> > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.