commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Pugh" <ep...@upstate.com>
Subject RE: [configuration] Change Commons-Configuration getVector to getSet?
Date Thu, 25 Sep 2003 11:10:31 GMT
Is getCollection what is wanted, or getList()?

I was under the impression that a collection isn't ordered..  And then you
would have to cast to a List to pass the collection into anything that
expects an ordered list.

Eric

> -----Original Message-----
> From: Henning P. Schmiedehausen [mailto:hps@intermeta.de]
> Sent: Thursday, September 25, 2003 10:02 AM
> To: commons-dev@jakarta.apache.org
> Subject: Re: [configuration] Change Commons-Configuration getVector to
> getSet?
>
>
> Emmanuel Bourg <e.bourg@cross-systems.com> writes:
>
> >--------------ms080101070400050103080207
> >Content-Type: text/plain; charset=us-ascii; format=flowed
> >Content-Transfer-Encoding: 7bit
>
> >A Set is too restrictive i think, there are valid reasons
> for preserving
> >duplicate configuration entries. I would use a Collection or
> better, a
> >List when the element order matters.
>
> -1 on using a set
>
> -1 on deprecating getVector()
>
> +1 on using a Collection
>
> +1 on getCollection()
>
> I have use cases, where I need repeating keys in the sequence that was
> put into the configuration file
>
> - sequence:  list org service.<xxxx> keys in turbine.properties
>
> - repeating keys: list of packages to search for an action/screen
>                   in turbine.properties (here I need the
> exact sequence, too)
>
> So changing this API to use a set without order would damage the
> current Turbine code (which might be one of the main users of
> commons-configuration).
>
> 	Regards
> 		Henning
>
> --
> Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
> hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/
>
> Java, perl, Solaris, Linux, xSP Consulting, Web Services
> freelance consultant -- Jakarta Turbine Development  -- hero for hire
>
> "Dominate!! Dominate!! Eat your young and aggregate! I have
> grotty silicon!"
>       -- AOL CD when played backwards  (User Friendly - 200-10-15)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message