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

[configuration] Add an option to save multiple values in one line

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2
    • 1.3
    • None
    • None
    • Operating System: All
      Platform: All

    • 38285

    Description

      I'd like to save a property to a file with List type value in one line.
      By default, the output looks like this.
      key = value1
      key = value2

      I want to make the output like this.
      key = value1, value2

      Changing delimiter to '0' before calling save achieves the format, but retrieval of the value, say by
      calling getList(), results in returning a value "value1, value2" instead of values "value1" and "value2",
      even if the original delimiter ',' is set back.

      In addition to that, the delimiter is defined as static and changing the value affects all threads, which is
      not typically desirable.

      It would be nice to have an option to save multiple values in a single line, with thread safe manner.

      Thanks,

      Attachments

        Activity

          People

            Unassigned Unassigned
            kenjin@clazzsoft.com Kenji Nakamura
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: