commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Heger <>
Subject Re: [lang] Questions concerning VariableFormatter
Date Sat, 06 Aug 2005 16:47:11 GMT
Tom Schindl wrote:

> Stephen Colebourne schrieb:
> >Please prefix emails by [lang]
> >Tom Schindl wrote:
> >>I just found out that this project has exactly what I was searching
> >>for long time because MessageFormat doesn't really suite my needs.
> >>
> >>I see that this Class has been added in 2.2:
> >>--------------------------------------------
> >>a. Is there any plan when 2.2 is released
> >When its ready ;-) No firm dates, but work rate is pretty high at 
> present.
> >>b. What would be with adding formats applied to values like
> >>MessageFormat does it {myDate,date,short}. The attached patch does
> >>that simply using MessageFormat.
> >I agree that this is a good idea if done carefully. However we have no
> >plans to do this at present. You might want to propose some
> >suggestions/code separately.
> Isn't the proposed patch appended to the last mail what could be done to
> stay as compatible with MessageFormat as possible?
> Maybe a flag to VariableFormatter could flag whether a search for
> formats should be done so users not using formats are not hurt by the
> search.

An alternative would be to provide an additional implementation of the 
VariableResolver interface. The default implementation stays as is and 
does not handle formats. An extended implementation could support 
further arguments that are appended to variables.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message