You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Emmanuel Bourg (JIRA)" <ji...@apache.org> on 2008/04/06 17:21:25 UTC

[jira] Updated: (CONFIGURATION-319) Reload(addConfigurationListener) not works for CompositeConfiguration

     [ https://issues.apache.org/jira/browse/CONFIGURATION-319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg updated CONFIGURATION-319:
-----------------------------------------

    Fix Version/s: 1.6
          Summary: Reload(addConfigurationListener) not works for CompositeConfiguration  (was: Reload(addConfigurationListern) not works for CompositeConfiguration)

> Reload(addConfigurationListener) not works for CompositeConfiguration
> ---------------------------------------------------------------------
>
>                 Key: CONFIGURATION-319
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-319
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.5
>         Environment: Linux  2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:54:53 EST 2006 i686 i686 i386 GNU/Linux
>            Reporter: Sandeep Kumar
>             Fix For: 1.6
>
>
>  I created 2 XMLConfiguration and added this to CompositeConfiguration using addConfiguration. Now I addConfigurationListern at CompositeConfiguration level. Currently CompositeConfiguration.addConfigurationListern is not overriden and addConfigurationListern never get registeded to any of actual configuration. The solution could be override the CompositeConfiguration.addConfigurationListern which iterate though configList(a private member of CompositeConfiguration class) and registed listern to all the configuration. In current code this is broken funtionality and callback ConfigurationListener.configurationChanged never fired.
>   while reproducing this problem I am calling CompositeConfiguration.getProperty() every minute for reloading from another thread.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.