aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alasdair Nottingham <...@apache.org>
Subject Re: [jira] [Commented] (ARIES-727) support syntax : ${a+b} in blueprint-cm
Date Tue, 23 Aug 2011 15:33:00 GMT
Hi,

We haven't got to NLS enabling blueprint yet, so it probably doesn't matter too much. Things
we have done are: jpa, proxy, jndi, Util, quiesce. I think blueprint, application, JMX are
on the todo list.

Alasdair Nottingham

On 23 Aug 2011, at 06:05, Emily Jiang <emijiang6@googlemail.com> wrote:

> Hi Rex,
> Just a small comment: we have been trying to nls the error messages. Can you
> nls your error message by putting them in a property file?
> 
> Regards
> Emily
> 
> On Tue, Aug 23, 2011 at 7:57 AM, Rex Wang (JIRA) <jira@apache.org> wrote:
> 
>> 
>>   [
>> https://issues.apache.org/jira/browse/ARIES-727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13089305#comment-13089305]
>> 
>> Rex Wang commented on ARIES-727:
>> --------------------------------
>> 
>> Thanks very much for the comments! I added the
>> UnsupportedOperationException to the unimplemented method of the map proxy.
>> And just uploaded a new patch : ARIES-727-fixes-in-blueprint-ext.patch, to
>> move this ability to blueprint-ext, and also did some improvement to make it
>> can work with the custom prefix/suffix, eg: $[].
>> 
>> -Rex
>> 
>>> support syntax : ${a+b} in blueprint-cm
>>> ----------------------------------------
>>> 
>>>                Key: ARIES-727
>>>                URL: https://issues.apache.org/jira/browse/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
>>> 
>>>        Attachments: ARIES-727-blueprint-cm.patch,
>> ARIES-727-fixes-in-blueprint-ext.patch
>>> 
>>> 
>>> 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".
>>> -Rex
>>> -----------------------
>>> 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 :)
>>> Regards,
>>> Valentin
>>> -----------------------
>>> 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.
>>> Regards,
>>> Emily
>>> -----------------------
>>> 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
>> 
>> --
>> This message is automatically generated by JIRA.
>> For more information on JIRA, see: http://www.atlassian.com/software/jira
>> 
>> 
>> 
> 
> 
> -- 
> Thanks
> Emily
> =================
> Emily Jiang
> ejiang@apache.org

Mime
View raw message