You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Luca Burgazzoli (JIRA)" <ji...@apache.org> on 2019/08/12 11:41:00 UTC
[jira] [Resolved] (CAMEL-13858) camel-properties: load properties
should iterate through loadable property source in reverse order
[ https://issues.apache.org/jira/browse/CAMEL-13858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Luca Burgazzoli resolved CAMEL-13858.
-------------------------------------
Resolution: Fixed
> camel-properties: load properties should iterate through loadable property source in reverse order
> --------------------------------------------------------------------------------------------------
>
> Key: CAMEL-13858
> URL: https://issues.apache.org/jira/browse/CAMEL-13858
> Project: Camel
> Issue Type: Improvement
> Components: camel-properties
> Reporter: Luca Burgazzoli
> Assignee: Luca Burgazzoli
> Priority: Major
> Fix For: 3.0.0, 3.0.0.RC1
>
>
> The current code iterate through LoadablePropertiesSource as follows:
>
> {code:java}
> for (PropertiesSource ps : sources) {
> if (ps instanceof LoadablePropertiesSource) {
> LoadablePropertiesSource lps = (LoadablePropertiesSource) ps;
> Properties p = lps.loadProperties();
> prop.putAll(p);
> }
> }
> {code}
> As sources is ordered by Order, lower priority sources may override higher ones.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)