commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dzmitry Shylovich (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CONFIGURATION-607) Provide the ability to programmatically specify config sources for ReloadingCombinedConfigurationBuilder
Date Wed, 02 Sep 2015 12:42:45 GMT

    [ https://issues.apache.org/jira/browse/CONFIGURATION-607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14727268#comment-14727268
] 

Dzmitry Shylovich commented on CONFIGURATION-607:
-------------------------------------------------

Agree.

> 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)

Mime
View raw message