I tried to make the delimiter non static but found a problem: you can't change the delimiter for a PropertiesConfiguration if you specify the file in the constructor, because the file is parsed before you get a chance to change the delimiter. You have to create the configuration, set the delimiter, and then load the file.

I wonder if it's worth adding a static setDefaultDelimiter() method.

Emmanuel Bourg


Emmanuel Bourg wrote:

Henning P. Schmiedehausen wrote:

Hi,

is there any reason why the DELIMITER field in AbstractConfiguration
is static? Any objection to make it an instance variable? As far as I
can see, this is only used in BaseConfiguration and not exposed in any
interface.

This would allow a CompositeConfiguration to load multiple files with
different delimiters.

    Regards
        Henning


No problem, go ahead.

Emmanuel Bourg

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



Reply via email to