Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

      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.

        Activity

        Hide
        Emmanuel Bourg added a comment -

        Created an attachment (id=9647)
        ReloadableConfiguration implementation

        Show
        Emmanuel Bourg added a comment - Created an attachment (id=9647) ReloadableConfiguration implementation
        Hide
        Emmanuel Bourg added a comment -

        Created an attachment (id=11591)
        ReloadableConfiguration implementation (updated 18/04/04)

        Show
        Emmanuel Bourg added a comment - Created an attachment (id=11591) ReloadableConfiguration implementation (updated 18/04/04)
        Hide
        Emmanuel Bourg added a comment -

        I attached an updated patch, ReloadableConfiguration now extends
        AbstractConfiguration, and the load/save methods of PersistentConfiguration now
        throw a ConfigurationException.

        Show
        Emmanuel Bourg added a comment - I attached an updated patch, ReloadableConfiguration now extends AbstractConfiguration, and the load/save methods of PersistentConfiguration now throw a ConfigurationException.
        Hide
        Emmanuel Bourg added a comment -

        Since we have a FileConfiguration interface now I wonder if we shouldn't add the
        reloading methods directly in it (setStrategy, getStrategy, reload) instead of
        creating a decorator (ReloadableConfiguration).

        Show
        Emmanuel Bourg added a comment - Since we have a FileConfiguration interface now I wonder if we shouldn't add the reloading methods directly in it (setStrategy, getStrategy, reload) instead of creating a decorator (ReloadableConfiguration).
        Hide
        Emmanuel Bourg added a comment -

        checked in!

        Show
        Emmanuel Bourg added a comment - checked in!

          People

          • Assignee:
            Unassigned
            Reporter:
            Emmanuel Bourg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development