"Geir Magnusson Jr." wrote:

> Paulo Gaspar wrote:
>
> > >
> > >  resource.loader.1 = file
> > >  resource.loader.2 = classpath
> > >
> > > which will
> > >
> > > ...
> >
> > Doesn't declaration order work the same way?
>
> Yes, but here it's explicit.  And then internal properties parser can
> check to ensure that the user clearly specified their intent, and log
> it.
>
> > I confess I do not sympathize with the number suffixes - more editing work
> > changing the order of a group of properties (ok... some keystrokes more!).
>
> Ok.  The main advantage is that we don't prevent anyone from using a
> Properties, Hashtable, Hashmap, Treemap, etc... to hold this stuff.  It
> keeps them unique, and in a easy pattern to parse.

We don't prevent anyone from using anything to configure their
apps. You can use whatever you want, you just have to adjust it
to use Runtime.setProperty(). If you want to use a HashMap, or
Properties that's fine. Do your own processing and use Runtime.setProperty().

>
>
> Given the good idea of eliminating the 'integer in the middle' that
> keeps the loader properties distinct, having them at the end when you
> mean 'multiple-valued property' is a nice and easy way to do it.

How do you propose we add multiple resource paths using the
Runtime.setProperty() or Runtime.addProperty()?


>
>
> geir
>
> --
> Geir Magnusson Jr.                               [EMAIL PROTECTED]
> Developing for the web?  See http://jakarta.apache.org/velocity/

--
jvz.

Jason van Zyl
[EMAIL PROTECTED]

http://jakarta.apache.org/velocity
http://jakarta.apache.org/turbine



Reply via email to