Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3D617171EB for ; Sun, 5 Oct 2014 17:57:23 +0000 (UTC) Received: (qmail 4611 invoked by uid 500); 5 Oct 2014 17:57:22 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 4565 invoked by uid 500); 5 Oct 2014 17:57:22 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 4523 invoked by uid 99); 5 Oct 2014 17:57:22 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Oct 2014 17:57:22 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 3B43081A18E; Sun, 5 Oct 2014 17:57:22 +0000 (UTC) From: yuruki To: dev@camel.apache.org Reply-To: dev@camel.apache.org Message-ID: Subject: [GitHub] camel pull request: ENH-354 Adding properties to PropertiesCompone... Content-Type: text/plain Date: Sun, 5 Oct 2014 17:57:22 +0000 (UTC) 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 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 infrastructure@apache.org or file a JIRA ticket with INFRA. ---