"Eric Pugh" <[EMAIL PROTECTED]> writes:

No. We want to keep the order of the properties and I don't know whether
getSet() does this. 

The underlying structure that uses addOnce() is rotten. This is
intended to be replaced with a
org.apache.commons.collections.decorators.OrderedSet once we have a
commons-collections release that contains this class.

        Regards
                Henning


>Hi all,

>I am looking at a chunk of code like this:
> Vector packages = Turbine.getConfiguration()
>                    .getVector(TurbineConstants.MODULE_PACKAGES);

>                ObjectUtils.addOnce(packages,
>                        GenericLoader.getBasePackage());

>from Layout Loader...

>And it seems to me that commons-configuration getVector should be deprecated
>in favor of getSet().  I can't think why you would want duplicate values, so
>getSet() makes more sense then getList().

>Then, funky call's like the ObjectUtils.addOnce() wouldn't be needed...

>Opinons?  And do we have to deprecate getVector() since we haven't released
>from sandbox yet?

>Eric Pugh


>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
[EMAIL PROTECTED]        +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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to