Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-13858

camel-properties: load properties should iterate through loadable property source in reverse order

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0, 3.0.0.RC1
    • Component/s: camel-properties
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      The current code iterate through LoadablePropertiesSource as follows:

                for (PropertiesSource ps : sources) {
                      if (ps instanceof LoadablePropertiesSource) {
                          LoadablePropertiesSource lps = (LoadablePropertiesSource) ps;
                          Properties p = lps.loadProperties();
                          prop.putAll(p);
                      }
                  }
      

      As sources is ordered by Order, lower priority sources may override higher ones.

        Attachments

          Activity

            People

            • Assignee:
              lb Luca Burgazzoli
              Reporter:
              lb Luca Burgazzoli
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: