You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Dzmitry Shylovich (JIRA)" <ji...@apache.org> on 2015/08/25 12:49:45 UTC

[jira] [Created] (CONFIGURATION-607) Provide the ability to programmatically specify config sources for ReloadingCombinedConfigurationBuilder

Dzmitry Shylovich created CONFIGURATION-607:
-----------------------------------------------

             Summary: Provide the ability to programmatically specify config sources for ReloadingCombinedConfigurationBuilder
                 Key: CONFIGURATION-607
                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-607
             Project: Commons Configuration
          Issue Type: Improvement
          Components: File reloading
    Affects Versions: 2.0
            Reporter: Dzmitry Shylovich


I have the following configuration files: 
prop_test1.xml
prop_test2.xml and so force.
There is one default file - default.xml. 
And I have to combine prop_test1.xml with default.xml  and get single combined configuration.
prop_test2.xml with default.xml and get another combined configuration. 
With current solution I have to specify a configuration definition file for every pair. I think it will be nice to have the ability to programmatically specify files for ReloadingCombinedConfigurationBuilder.
Something like:
ReloadingCombinedConfigurationBuilder builder = new ReloadingCombinedConfigurationBuilder()
    .configure(params.fileBased().addFile(new File("test1.xml").addFile(new File("default.xml")));



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