camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadrian Zbarcea (JIRA)" <>
Subject [jira] Commented: (CAMEL-3564) RefLanguage - To be able to refer to something from the registry
Date Fri, 21 Jan 2011 16:45:44 GMT


Hadrian Zbarcea commented on CAMEL-3564:

@madhav, @claus, 

I added an extra test in r1061887 to assert that the fix in the SimpleLanguage does return
the expected object (not a string representation), which should eliminate doubts.

I like the current solution, it addresses the requirement, and I don't think we should add
a <ref> to the dsl as we already have a clean solution. I recommend closing this issue
as resolved in 2.6.0 (and will do it if no objection in the next few hours).

@madhav, if you see another problem with camel-cxf, I'd recommend opening a separate issue.

> RefLanguage - To be able to refer to something from the registry
> ----------------------------------------------------------------
>                 Key: CAMEL-3564
>                 URL:
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core, camel-spring
>    Affects Versions: 2.5.0
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.7.0
> See nabble
> 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.

View raw message