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

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0.RC1, 3.0.0
    • camel-properties
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: