Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.5.2, 1.6.1, 1.7.0
    • None
    • None

    Description

      The current implementation of DefaultConfiguration has some downsides:

      • Its internal map of configuration defaults is built on-demand in its singleton instance, which drives the need to synchronize access to the singleton. The map could be built statically.
      • That same map could be made immutable as well.
      • Even though it uses a singleton, new DefaultConfiguration() is still permitted since the no-arg constructor isn't defined as private.
      • Calls to DefaultConfiguration.getInstance() cannot be easily mocked.
      • Its main method no longer has anything to do with it, and instead belongs in ConfigurationDocGen.

      Improve and simplify DefaultConfiguration.

      Attachments

        Issue Links

          Activity

            People

              bhavanki Bill Havanki
              bhavanki Bill Havanki
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m