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.
thanks
david jencks
On Aug 12, 2011, at 1:53 AM, Rex Wang wrote:
> Hi devs,
>
> I am wondering if Aries blueprint-cm support such scenario:
>
> <cm:property-placeholder id="property-placeholder" persistent-id="o.a.b.com"
> placeholder-prefix="${" placeholder-suffix="}">
> <cm:default-properties>
> <cm:property name="port" value="12345"/>
> <cm:property name="offset" value="10"/>
> </cm:default-properties>
> </cm:property-placeholder>
>
> <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".
>
> Any ideas?
>
>
> --
> Lei Wang (Rex)
> rwonly AT apache.org