You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Oliver Heger (JIRA)" <ji...@apache.org> on 2013/04/11 22:19:16 UTC

[jira] [Resolved] (CONFIGURATION-523) DefaultConfigurationBuilder is not reloading its base file

     [ https://issues.apache.org/jira/browse/CONFIGURATION-523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Heger resolved CONFIGURATION-523.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0

In version 2.0, builders for creating configurations have been significantly reworked. The replacement of {{DefaultConfigurationBuilder}} - in this case {{ReloadingCombinedConfigurationBuilder}} - is capable of detecting changes on its definition file and can trigger reloads automatically. The test suite contains corresponding tests.
                
> DefaultConfigurationBuilder is not reloading its base file
> ----------------------------------------------------------
>
>                 Key: CONFIGURATION-523
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-523
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: File reloading
>    Affects Versions: 1.9
>         Environment: Windows / Eclipse
>            Reporter: Jean-Marc
>            Priority: Critical
>              Labels: DefaultConfigurationBuilder, reloading
>             Fix For: 2.0
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Create a DefaultConfigurationBuilder with this example file master-config.xml :
> <?xml version="1.0" encoding="UTF-8" ?>
> <configuration>
> 	<header>
> 		<result forceReloadCheck="true"/>
> 	</header>
> 	<system/>
> 	<override>
> 		<properties fileName="webapp-commons.properties"  throwExceptionOnMissing="true">
> 			<reloadingStrategy refreshDelay="1000" config-class="org.apache.commons.configuration.reloading.FileChangedReloadingStrategy"/>		
> 		</properties>
> 	</override>
> </configuration>
> A modification to "webapp-commons.properties" is well detected and the file is reloaded.
> But if you modify the master-config.xml itself, nothing is reloaded, no event are thrown.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira