Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-264

SubnodeConfiguration does not see reloads of its parent configuration

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5
    • Component/s: None
    • Labels:
      None

      Description

      The problem can be reproduced as follows:

      1 config = new XMLConfiguration("c:
      conf.xml");
      2 config.setReloadingStrategy(new FileChangedReloadingStrategy());
      3 SubnodeConfiguration parentItemConfig = config.configurationAt("parent-item");
      4 String ss2 = parentItemConfig.getString("sub-item");
      5 //Now, <sub-item> node value changes to "new_value"
      6 ss2 = parentItemConfig.getString("sub-item"); // still returns old_value

        Attachments

          Activity

            People

            • Assignee:
              oheger Oliver Heger
              Reporter:
              oheger Oliver Heger
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: