camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-7932) Adding initial properties to PropertiesComponent
Date Mon, 20 Oct 2014 08:37:34 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-7932?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Willem Jiang updated CAMEL-7932:
--------------------------------
    Fix Version/s: 2.14.1
                   2.13.3

> Adding initial properties to PropertiesComponent 
> -------------------------------------------------
>
>                 Key: CAMEL-7932
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7932
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core, el-core
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.13.3, 2.14.1, 2.15.0
>
>
> Added setInitialProperties(Properties initialProperties) and getInitialProperties() public
methods to PropertiesComponent. These methods allow us to add properties to PropertiesComponent
when we can't/won't use external properties (locations). 
> In SCR bundle, for example, properties are passed to our program as a Map and the only
way to get them into PropertiesComponent was setOverrideProperties method. Override properties
are however not used if they are the only properties, so we were forced to use a dummy properties
file in the bundle. 
> In addition to the new methods, this pull request changes the override properties handling
so that they are always used if they exist (which is the logical thing to do). 
> Here is pull request for it.
> https://github.com/apache/camel/pull/295.patch 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message