Commons Configuration
  1. Commons Configuration
  2. CONFIGURATION-227

ConfigurationDynaBean does not work well with all types of configurations

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      None

      Description

      The current implementation of ConfigurationDynaBean makes some assumptions about the underlying Configuration object that are not met by all configuration implementations. Especially setting values for indexed properties by calling getList() and manipulating mapped properties through a subset configuration do not work for configurations derived from HierarchicalConfiguration.

        Activity

        Hide
        Oliver Heger added a comment -

        A fix was applied that improves the compatibility of ConfigurationDynaBean with other configuration types, namely hierarchical configurations (there is also a new unit test class running all test cases on a XMLConfiguration). The only requirement is that the configuration uses the dot (".") as property delimiter. For hierarchical configurations that make use of a special expression engine this could be a problem.

        Show
        Oliver Heger added a comment - A fix was applied that improves the compatibility of ConfigurationDynaBean with other configuration types, namely hierarchical configurations (there is also a new unit test class running all test cases on a XMLConfiguration). The only requirement is that the configuration uses the dot (".") as property delimiter. For hierarchical configurations that make use of a special expression engine this could be a problem.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development