commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CONFIGURATION-523) DefaultConfigurationBuilder is not reloading its base file
Date Thu, 11 Apr 2013 20:19:16 GMT

     [ 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

Mime
View raw message