Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D0FBD2F73 for ; Thu, 21 Apr 2011 19:49:47 +0000 (UTC) Received: (qmail 45130 invoked by uid 500); 21 Apr 2011 19:49:47 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 45074 invoked by uid 500); 21 Apr 2011 19:49:47 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 45066 invoked by uid 99); 21 Apr 2011 19:49:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Apr 2011 19:49:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Apr 2011 19:49:44 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B3D9AACF80 for ; Thu, 21 Apr 2011 19:49:05 +0000 (UTC) Date: Thu, 21 Apr 2011 19:49:05 +0000 (UTC) From: "Oliver Heger (JIRA)" To: issues@commons.apache.org Message-ID: <1377579789.74211.1303415345732.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <830694593.64542.1303138866872.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (CONFIGURATION-447) DefaultConfigurationBuilder should provide default provider for environment variables MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CONFIGURATION-447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oliver Heger resolved CONFIGURATION-447. ---------------------------------------- Resolution: Fixed Fix Version/s: 1.7 The feature was added in subversion in revision 1095800. Many thanks for the proposal! > DefaultConfigurationBuilder should provide default provider for environment variables > ------------------------------------------------------------------------------------- > > Key: CONFIGURATION-447 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-447 > Project: Commons Configuration > Issue Type: Improvement > Affects Versions: 1.6 > Reporter: Fabien Nisol > Priority: Trivial > Fix For: 1.7 > > > DefaultConfigurationBuilder does not provide a way to merge environment variable into the configuration > eg: > {code} > > > ... > > {code} > I think this could be implemented by adding the following code into the DefaultConfigurationBuilder class > {code:title=DefaultConfigurationBuilder.java} > //Constant for the provider for environment variables. > private static final ConfigurationProvider ENV_PROVIDER = new ConfigurationProvider( > EnvironmentConfiguration.class); > //An array with the names of the default tags. > private static final String[] DEFAULT_TAGS = > {"properties", "xml", "hierarchicalXml", "jndi", "system", "plist", "configuration","env"}; > > //An array with the providers for the default tags. > > private static final ConfigurationProvider[] DEFAULT_PROVIDERS = > {PROPERTIES_PROVIDER, XML_PROVIDER, XML_PROVIDER, JNDI_PROVIDER, > SYSTEM_PROVIDER, PLIST_PROVIDER, BUILDER_PROVIDER,ENV_PROVIDER}; > {code} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira