Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 4566 invoked from network); 8 Jul 2005 20:13:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Jul 2005 20:13:02 -0000 Received: (qmail 48730 invoked by uid 500); 8 Jul 2005 20:12:52 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 48670 invoked by uid 500); 8 Jul 2005 20:12:52 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 48657 invoked by uid 99); 8 Jul 2005 20:12:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2005 13:12:52 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [12.6.96.2] (HELO mailer18.seagullsoftware.com) (12.6.96.2) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2005 13:12:49 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [lang] text.Interpolation, on to 2.2 Date: Fri, 8 Jul 2005 16:12:33 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [lang] text.Interpolation, on to 2.2 Thread-Index: AcWCgAHuIcVgw6eIRoip6FlDpAVcAwBeCW1g From: "Gary Gregory" To: "Jakarta Commons Developers List" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > -----Original Message----- > From: Stephen Colebourne [mailto:scolebourne@btopenworld.com] > Sent: Wednesday, July 06, 2005 4:11 PM > To: Jakarta Commons Developers List > Subject: Re: [lang] text.Interpolation, on to 2.2 >=20 > Gary Gregory wrote: > >>The source of values for the VariableFormat class is only allowed to be > >>a Map. I'm not sure if people will want other types of data sources. > > > >>Yes the resolveVariable method does allow customisation via subclassing > >>but the fact that the "default" source is a map is very obviously > exposed > >>via the class API. > > > > Well, should we go back to the interface approach? >=20 > The constrast is with the StrTokenizer class. That alread has an > interface, and various implementations of the interface. Thus an > interface for this class is not inapropriate. I did like the interface approach, I'll take a look at putting it back in to see how that feels. > > I was hoping that there might have been some way to take the > StrTokenizer interface and make it top level and reuse it in all the > classes in the text package. Perhaps for locating the delimiters in > VariableFormatter. But I'm not sure that idea works. I like the idea of eating our own dog food but I do not know how practical or easy VariableFormatter can be made to reuses a StrTokenizer. Perhaps Oliver can opine on this. > Considering the current VariableFormatter class: >=20 > a) we don't have the ability to call it directly from StrBuilder without > copying the char array to a String. (VariableFormatter needs rewriting > to operate on a char[]) >=20 > b) we have lost the ability to have multiple substitutions What do you mean here? Gary --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org