GitHub user yuruki opened a pull request: https://github.com/apache/camel/pull/295
ENH-354 Adding properties to PropertiesComponent 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). You can merge this pull request into a Git repository by running: $ git pull https://github.com/yuruki/camel initialprops Alternatively you can review and apply these changes as the patch at: https://github.com/apache/camel/pull/295.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #295 ---- commit dfc5eb027fcd4be7c974ad5e78fd7d129eda3594 Author: Jyrki Ruuskanen <yur...@kotikone.fi> Date: 2014-10-05T16:38:43Z Added setter, getter and test for initial properties in PropertiesComponent ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---