commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Heger <oliver.he...@t-online.de>
Subject Re: [configuration]how i get the index
Date Wed, 12 Apr 2006 09:59:22 GMT
Borut BolĨina wrote:

> Hi,
>
> I did not find the time yet to test 1.3-dev, but I have a question. If
> have a configuration.xml such as
>
>    <?xml version="1.0" encoding="ISO-8859-1" ?>
>    <configuration>
>      <properties fileName="foo.properties"/>
>      <properties fileName="bar.properties"/>
>      <properties fileName="acme.properties"/>
>      <xml fileName="cow.xml"/>
>      <xml fileName="chicken.xml"/>
>    </configuration>
>
>
> then I find these lines in my code:
>
>    public static CompositeConfiguration config;
>    ....
>
>    // WARNING - acme.properties must be 3rd entry in configuration.xml
>    Configuration propertyConfiguration = config.getConfiguration(2);
>
> Will there be a way to get propertyConfiguration (or xmlConfiguration
> or even (!) databaseConfiguration) out of configuartion.xml _by some
> id_ and _not by index_? I don't want my application stop working just
> becouse someone changed the order of elements in configuration.xml.
>
> Regards,
> Borut

Yes, I plan to support names for configurations. But this is one of the
things that are not implemented yet.

Oliver

<snip/>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message