commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andre Doherty (JIRA)" <>
Subject [jira] Commented: (CONFIGURATION-229) config : load for a configuration node is called before parsing is complete : attributes ignored
Date Tue, 03 Oct 2006 17:37:20 GMT
Andre Doherty commented on CONFIGURATION-229:

(Thank you for the DefaultConfigurationBuilder clue, i'll give it a try).

Yes for instance you might want to use that delimiterParsingDisabled attribute to ask the
configuration not to parse properties items as : 

	<properties delimiterParsingDisabled="true" fileName="" optional="true"/>

In this case, both delimiterParsingDisabled and optional attributes are ignored at load time.

> config : load for a configuration node is called before parsing is complete : attributes
> ------------------------------------------------------------------------------------------------
>                 Key: CONFIGURATION-229
>                 URL:
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.3 Final
>            Reporter: Andre Doherty
>            Priority: Minor
> Hi there
> i have noticed the following issue which appears to be a bug. (Tested on 1.3 however
the version doesn't appear above)
> createObject from FileConfigurationFactory(DigesterConfigurationFactory) set fileName
and fires load of properties : 
> public Object createObject(Attributes attributes) throws Exception
>         {
>             FileConfiguration conf = createConfiguration(attributes);
>             conf.setBasePath(getBasePath());
>             conf.setFileName(attributes.getValue(ATTR_FILENAME));
>             try
>             {
>       "Trying to load configuration " + conf.getFileName());
>                 conf.load();
>             }
> However digester invokes createObject when the object is instancied and before setting
any attributes. 
> All other attributes beside fileName and basePath are not read in time and therefore
are ignored during load.
> I guess load should be called when node initialization is complete, possibly using a
proper digester rule. 
> Regards,
> andré

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message