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

[configuration] Reloadable configurations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Nightly Builds
    • None
    • None
    • None
    • Operating System: other
      Platform: Other

    • 25661

    Description

      This is a proposal for a configuration able to be reloaded automatically when
      its source has changed. The implementation consists in :

      • a PersistentConfiguration interface extending the Configuration interface and
        adding the load() and save() methods.
      • a ReloadableConfiguration acting as a decorator around an existing
        PersistentConfiguration and intercepting the calls to the various getXXX methods
        of the Configuration interface to trigger a reloading if needed.
      • a ReloadingStrategy interface deciding when the configuration should be
        reloaded.

      An implemention of the ReloadingStrategy for file based configurations is
      provided in the patch.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--reload-patch.zip
          10 kB
          Emmanuel Bourg
        2. ASF.LICENSE.NOT.GRANTED--reload-patch.zip
          17 kB
          Emmanuel Bourg

        Activity

          People

            Unassigned Unassigned
            ebourg Emmanuel Bourg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: