aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rex Wang (JIRA)" <>
Subject [jira] [Created] (ARIES-727) support syntax : ${a+b} in blueprint-cm
Date Mon, 15 Aug 2011 08:37:27 GMT
support syntax : ${a+b} in blueprint-cm 

                 Key: ARIES-727
             Project: Aries
          Issue Type: New Feature
          Components: Blueprint
    Affects Versions: blueprint-0.3.1, blueprint-0.4.0
            Reporter: Rex Wang
            Assignee: Rex Wang
             Fix For: blueprint-0.4.0

I am wondering if Aries blueprint-cm support such scenario:

<cm:property-placeholder id="property-placeholder" persistent-id="" placeholder-prefix="${"
            <cm:property name="port" value="12345"/>
            <cm:property name="offset" value="10"/>

<xxx:conn name="loc" uri="http://localhost:${port+offset}"/>

I have a test, but seems the ${port+offset} can not be replaced with value "12355".



Hi Rex,

to my knowledge (substantiated with a quick code inspection) the placeholders in Aries today
support no operators or arithmetic like that. But please do raise an Improvement JIRA for
the future :)




When we support this, we need to perform a 'plus' or string concatenate
operation based on the variable type:).

Therefore. when specifying the property in the blueprint xml, the explicit
type should be specified if not string.


I _think_ I wrote something like this for xbean-blueprint since it didn't look like blueprint
supported it.  IIRC I used the same calculation engine as the geronimo config substitutions.
 I think you can infer what kind of calculation to do (addition or concatenation) from the
type of the property you end up setting.

david jencks

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message