Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-3564

RefLanguage - To be able to refer to something from the registry

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5.0
    • 2.6.0
    • camel-core, camel-spring
    • None

    Description

      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

      <bean id="foo" class=...>
         <!-- options -->
      </bean>
      
      <setProperty name="myFoo">
      <ref id="foo"/>
      </setProperty>
      

      And when using simple

      <setProperty name="myFoo">
      <simple>${ref:foo}</simple>
      </setProperty>
      

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: