Commons Configuration
  1. Commons Configuration
  2. CONFIGURATION-189

[configuration] Declaring reloadable configurations in the configuration descriptor

    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: All
      Platform: All

      Description

      This is a proposal to support reloadable configurations in the configuration
      descriptor parsed by ConfigurationFactory. I suggest two forms, a complete form
      to fine tune the strategy applied to the configuration:

      <configuration>
      <properties fileName="config.properties">
      <reloading-strategy
      class="org.apache.commons.configuration.reloading.FileChangedReloadingStrategy">
      <param name="refreshDelay" value="30000"/>
      </reloading-strategy>
      </properties>
      </configuration>

      and a short form:

      <configuration>
      <properties fileName="config.properties" reloadable="true"/>
      </configuration>

      This short form will use a FileChangedReloadingStrategy with the default values.
      This form keeps the descriptor simple for those that don't bother fine tuning
      the performance of the reloading mechanism.

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development