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

Support setting default values for configurations

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None

      Description

      In version 1.x it was possible to set a few default values for the properties of configuration instances (e.g. the list delimiter or the expression engine for XML configurations). These settings were used if they were not overridden for a specific configuration instance. This mechanism was mainly based on static fields which is unflexible and thread-hostile.

      In the new design, configuration builders are used to create configuration objects. Parameter objects can be passed to the builder allowing a fine-grained configuration of the instances to be created. Because there are many settings it would be helpful if there was a way to define certain default values. An application creating multiple configuration instances with the same settings could define the used defaults once and then reuse them.

      Default settings should be possible for all parameters object supported by the different builder implementations. No static fields should be used to avoid the drawbacks of the current design.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: