I have some idea to improve Configuration.
Current Configuration handles many sort of configuration repository. That's good for
flexibilty, but that also limits configuration's power. I have been used another
configuration framework that I've made. It can use only xml files for configuration
repository, but it can utilize all xml support, especially XPath. For example, look at
this sample file:
<?xml version="1.0" encoding="MS949"?>
<configuration>
<system>
<native>
<encoding>MS949</encoding>
<locale>
<language>ko</language>
<country>KR</country>
</locale>
</native>
<page type="jsp">
<encoding>MS949</encoding>
</page>
<page type="html">
<encoding>EUC-KR</encoding>
</page>
</system>
</configuration>
to get the value of jsp page encoding, use this:
Config conf = ConfigFactory.getConfig();
conf.get("[EMAIL PROTECTED]'jsp']/encoding");
so, I can use all xml features XPath supports. XPath is great expression language to
define search path, and I think it's better than the convention of properties file.
I want this feature in Commons-Configuration. I think it'll be easily add to current
version. If you agree to my proposal, I will be able to help you.
----- Original Message -----
From: "Eric Pugh" <[EMAIL PROTECTED]>
To: "Commons-Dev" <[EMAIL PROTECTED]>
Sent: Friday, August 13, 2004 2:13 AM
Subject: [configuration]Last call for patches
> I promised a RC1 many many moons ago. Between Emmanuel and I, I think we
> have pretty much winnowed things down to what 1.0 will be. If there is
> somethign you CAN NOT live without, please post a message (and a patch!).
>
> I'm headed on holiday for 3 weeks (going to Prague, Krakow, and Budapest if
> anyone wants to meet up) and so I'm going to do the worst possible thing,
> which is post a release candidate and then leave town! If someone wants to
> officially release the build, great, otherwise I'll do it when I get back
> assuming no major issues.
>
> I'm going to put the RC1 online and link to it from the homepage to help all
> the people looking for a build.
>
> Eric
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>