Release History

VersionDateDescription
1.52007-11-24Many smaller bugfixes
1.42007-04-08Improved interpolation, configuration for INI files, reloading strategy triggered with JMX, bug fixes.
1.32006-09-24
1.3-rc22006-09-03
1.3-rc12006-07-30
1.22005-12-17
1.2-rc32005-12-07
1.2-rc22005-11-23
1.2-rc12005-11-11
1.12005-04-02
1.1-rc22005-03-06
1.1-rc12005-02-13
1.02004-10-11First official release
1.0-rc22004-09-24
1.0-rc12004-08-14

Get the RSS feed of the last changes

Release 1.5 - 2007-11-24

TypeChangesBy
update Some of the dependencies in the m2 pom have been updated to be more consistent. Thanks to Jörg Schaible. oheger
update The dependency to commons-logging was updated to the current version 1.1. Older versions of commons-logging will still work. Thanks to Jörg Schaible. oheger
add A new method interpolatedConfiguration() was added to AbstractConfiguration. This method returns a configuration with the same type and content as the original configuration, however all variables have been resolved. Fixes CONFIGURATION-273. oheger
fix Resolving of variables with the prefix const (constant fields) caused a ClassCastException under certain circumstances if non-String fields were involved. This has been fixed. Fixes CONFIGURATION-299. oheger
update The dependencies to commons-codec and commons-jxpath have been marked as optional. They are not required by the core classes. Thanks to Nicolas De Loof. oheger
add There is a new configuration implementation EnvironmentConfiguration, which provides access to (OS) environment variables. On Java > = 1.5 this class can be directly used; on earlier versions a dependency to ant is required. Fixes CONFIGURATION-284. Thanks to Nicolas De Loof. oheger
fix A bug in XMLConfiguration caused that attributes of the root element could not be changed. This has been fixed. Fixes CONFIGURATION-296. oheger
add A new method registerEntityId() was added to XMLConfiguration, which allows to register URLs for entities. A new default implementation of the EntityResolver interface handles these entities automatically. Fixes CONFIGURATION-290. oheger
fix The subset() method of HierarchicalConfiguration now takes the value of the subset's root node into account if it is not ambigous. Fixes CONFIGURATION-295. oheger
fix Nodes added to a XMLConfiguration using the addNodes() method could lose their value when the configuration was saved. This is now fixed. Fixes CONFIGURATION-294. oheger
fix New copy() and append() methods have been added to AbstractConfiguration. They replace the methods with the same names in ConfigurationUtils, which do not handle all features of AbstractConfiguration properly (e.g. list delimiters in property values are incorrectly treated). To avoid such problems, the new methods should be used. Fixes CONFIGURATION-272. oheger
fix The addNodes() method of hierarchical file-based configurations now correctly triggers an auto save. Fixes CONFIGURATION-291. oheger
fix HierarchicalConfiguration.addNodes() now resets the reference property of all nodes to be added. This fixes a problem with XMLConfiguration, which now detects the added nodes as new and treats them correctly when the configuration is saved. Fixes CONFIGURATION-287. oheger
add DefaultConfigurationBuilder will now notify registered error listeners about optional configuration sources that could not be created. Before exceptions thrown by optional configurations were swallowed Fixes CONFIGURATION-285. oheger
fix ConfigurationUtils.convertToHierarchical() now correctly deals with property values containing escaped list delimiters. This also affects CombinedConfiguration when sub configurations with such property values are contained. Fixes CONFIGURATION-283. oheger
fix AbstractConfiguration.addProperty() now correctly deals with list and array properties if delimiter parsing is disabled. Fixes CONFIGURATION-275. oheger
fix The default expression engine used by HierarchicalConfiguration instances is now lazily initialized. This avoids NullPointerExceptions in certain server environments after a redeploy. Fixes CONFIGURATION-282. oheger
fix Cycles in the JNDI tree no longer cause a stack overflow in JNDIConfiguration. Fixes CONFIGURATION-281. oheger
add The base impl ementation of clear() in AbstractConfiguration now checks for a potential UnsupportedOperationException when iterating over the existing properties. Fixes CONFIGURATION-277. oheger
fix Using file-based configurations in auto-save mode together with a reloading strategy could cause data loss. This has been fixed. Fixes CONFIGURATION-280. Thanks to Roman Kurmanowytsch. oheger
fix A PropertiesConfiguration that was created from a non existing file lost its content when it was saved. This problem has been solved. Fixes CONFIGURATION-279. oheger
add A new getSource() method was added to CompositeConfiguration and CombinedConfiguration, which returns the child configuration, in which a given property is defined. Fixes CONFIGURATION-215. oheger
fix PropertiesConfiguration now supports escaping the escape character for list delimiters. Fixes CONFIGURATION-274. oheger
fix PropertiesConfiguration no longer escapes the list delimiter on saving if the list delimiter has been disabled. Fixes CONFIGURATION-269. ebourg
fix List properties and properties containing interpolated variables are now properly saved by INIConfiguration. Fixes CONFIGURATION-270. ebourg
update When delimiter parsing was disabled for XMLConfiguration, saving and loading the configuration accidently added escape characters to properties containing the list delimiter character. This has been fixed. It is now also possible to escape the escape character itself. Fixes CONFIGURATION-268. oheger
update The r eturn value of FileConfiguration.getFile() is now always consistent with the result of getURL(). Fixes CONFIGURATION-253. oheger
update INIConfiguration uses the platform's specific line separator instead of the Windows line separator. ebourg
fix INIConfiguration flushes the output at the end of a save operation. Fixes CONFIGURATION-267. ebourg
update For hierarchical file-based configurations the auto-save mechanism is now also triggered if a subnode configuration is changed. In such a case the new event type EVENT_SUBNODE_CHANGED will be sent to registered listeners. Fixes CONFIGURATION-265. oheger
update ConfigurationInterpolator now also invokes the default lookup object for variables with a prefix that could not be resolved by their associated lookup object. Fixes CONFIGURATION-266. Thanks to Tobias Noebel. oheger
add A SubnodeConfiguration per default does not see certain changes of its parent configuration (e.g. reloads). With a new boolean parameter of HierarchicalConfiguration's configurationAt() method a mode can be enabled, in which the subnode configuration checks for such changes and reconstructs itself if necessary. Fixes CONFIGURATION-264. oheger
fix byte[ ] properties are properly saved as data fields in the plist configurations (PropertyListConfiguration and XMLPropertyListConfiguration). ebourg
add DataConfiguration now supports java.net.InetAddress, javax.mail.internet.InternetAddress, and Java 5 enumeration types. Properties are converted to these types using the new generic getters. ebourg
fix The object getters in DataConfiguration with no default value (i.e getURL(key)) now throw a NoSuchElementException if the flag throwExceptionOnMissing is set. ebourg
add Generic get methods have been added to DataConfiguration (get(), getArray() and getList()) ebourg
fix XMLConfiguration used to drop attributes when an element's value was a list. This has been fixed. Fixes CONFIGURATION-263. oheger
add File configurations can now be saved to FTP URLs, or any other URL protocol supporting data output. Fixes CONFIGURATION-249. ebourg
fix Fixed a potential issue in DatabaseConfiguration where an error on closing a statement would prevent the connection from being closed. Fixes CONFIGURATION-180. ebourg
add Date objects are now supported in ASCII plist files. Fixes CONFIGURATION-261. ebourg
update XMLPropertyListConfiguration no longer requires commons-digester and commons-beanutils to work. ebourg
update Fixed INIConfiguration to handle the quoted values and the lines containing a value and a comment. ebourg

Release 1.4 - 2007-04-08

TypeChangesBy
update MapConfiguration and the web-based configurations now treat strings that contain an escaped list delimiter correctly: The escape character will be removed, so that for instance "foo\,bar" becomes "foo,bar". Fixes CONFIGURATION-256. oheger
update DatabaseConfiguration now handles list delimiters in property values correctly. Fixes CONFIGURATION-255. oheger
update After cloning a XMLConfiguration there was still a connection to the original configuration. So when the clone was modified and then saved the content of the original configuration was written. This has now been fixed. Fixes CONFIGURATION-254. Thanks to Carsten Kaiser. oheger
update Class loading in BeanHelper is now done using ClassUtils of Commons Lang. oheger
add With ManagedReloadingStrategy a new reloading strategy for file-based configurations was added that can be triggered through JMX. Fixes CONFIGURATION-237. Thanks to Nicolas de Loof. oheger
update The dependencies to Commons Lang, Commons Collections, and Commons Digester are updated to use the recent available version. However older versions will still work. oheger
add A pom for maven 2 was added. oheger
update ConfigurationUtils.getFile() now always checks first whether the passed in file name is absolute. If it is, this file will be returned. This prevents that on Unix under certain circumstances absolute file names are interpreted as relative ones. Fixes CONFIGURATION-252. oheger
update The dependency to xml-apis was changed to the version 1.0.b2. The so far used version 2.0.2 is reported to be bogus. Fixes CONFIGURATION-251. oheger
add In addition to configuration event listeners now so-called configuration error listeners are supported. These listeners are notified about internal errors that had been logged and swallowed by privious versions. The new enableRuntimeExceptions() method of ConfigurationUtils registers a special error listener at the passed in configuration that generates a runtime exception when an error event is received. Fixes CONFIGURATION-245. oheger
add AbstractConfiguration now allows to set an instance specific logger using the setLogger() method. This gives clients more control over a configuration's logging behavior. oheger
add SubsetConfiguration and CompositeConfiguration were updated to fully support an instance specific list delimiter. Concerning splitting of string properties that contain a list delimiter character, these classes now behave like a "normal" configuration. Fixes CONFIGURATION-155. oheger
add Variable interpolation features have been improved. A variable can now have the form ${prefix:variableName} where the prefix defines the type of the variable. The standard types sys for system properties and const for constants are supported. Variables without a prefix are treated as references to other configuration properties (which is compatible to earlier versions). Fixes CONFIGURATION-192. oheger
update Commons Configuration now depends on Commons Lang 2.2. Some features of Lang's new text package are used. oheger
update The number of dependencies needed for DefaultConfigurationBuilder was reduced by letting some of the default configuration providers resolve their classes per reflection. Fixes CONFIGURATION-244. oheger
update File-based configurations with a reloading strategy did not work well together with CombinedConfiguration because the reloading strategy is only checked when its associated configuration is accessed (which does not happen when only the combined configuration is queried). As a workaround CombinedConfiguration now provides the boolean forceReloadCheck property. If this is set to true, all contained configurations will be triggered when a property is queried. This will cause a reload if necessary. Fixes CONFIGURATION-240. oheger
add Configuration declarations in the configuration definition file for DefaultConfigurationBuilder that are marked as optional now support a new attribute config-forceCreate . If this attribute is set to true and the initialization of the configuration fails, DefaultConfigurationBuilder tries to add an empty configuration of the correct type to the resulting combined configuration. Before this change optional configurations that caused errors were never added to the combined configuration. Fixes CONFIGURATION-243. oheger
update CompositeConfiguration.clearProperty() now generates the correct update events. Fixes CONFIGURATION-241. oheger
update The configuration returned by HierarchicalConfiguration.subset() performed variable interpolation only in the keys that belong to the subset. Now the parent configuration is searched, too, to resolve the value of the referenced property. This is consistent with the way SubnodeConfiguration works. Fixes CONFIGURATION-242. oheger
update DefaultConfigurationBuilder now internally uses the standard expression e ngine for hierarchical configurations. So the dependency to Commons JXPath is no more needed when this class is used. Note that this change has some impact on existing code that manually sets properties before the combined configuration is created; this code must now be adapted to the changed syntax of property keys. Fixes CONFIGURATION-234. oheger
add HierarchicalConfiguration and some of its sub classes now define a copy constructor. Fixes CONFIGURATION-236. oheger
add A new configuration class for windows ini files was added. Fixes CONFIGURATION-197. Thanks to Trevor Charles Miller. oheger
update For file-based configurations loaded by ConfigurationFactory the load() method was called before all of the properties specified by attributes of the XML element have been initialized. Now load() is called after property initialization. Fixes CONFIGURATION-229. oheger
update Interpolation of non string values did not work when SubsetConfiguration was involved. This has now been fixed. Fixes CONFIGURATION-235. oheger
update The compatibility of ConfigurationDynaBean with other configuration types than those that inherit from BaseConfiguration was improved. Fixes CONFIGURATION-227. oheger
update The getList() method of CompositeConfiguration does now fully support variable interpolation. So it is possible to refer to a variable in one (sub) configuration that is defined in another configuration. Fixes CONFIGURATION-233. Thanks to Rainer Jung. oheger
update XPathExpressionEngine used to create wrong keys for attribute nodes. This caused some operations on XMLConfiguration to fail when such an expression engine was set (e.g. reloading). Now correct keys for attributes are constructed. Fixes CONFIGURATION-230. oheger
update Some of the methods of file-based hierarchical configurations (e.g. subset() or configurationAt()) did not take an eventually set reloading strategy into account. This is now fixed by overriding the internal fetchNodeList() method in AbstractHierarchicalFileConfiguration and letting it always check for a reload. Fixes CONFIGURATION-228. oheger

Release 1.3 - 2006-09-24

TypeChangesBy

Release 1.3-rc2 - 2006-09-03

TypeChangesBy
update AbstractFileConfiguration now overrides addProperty() and setProperty() instead of addPropertyDirect() to implement the auto save feature. This was necessary to properly integrate PropertiesConfigurationLayout. It has also the advantage that an auto save is triggered only once if multi-valued properties are involved (before a save operation was performed for each property value). Fixes CONFIGURATION-223. Thanks to Gabriele Garuglieri. oheger
update The new PropertiesConfigurationLayout class broke the save() operation of PropertiesConfiguration when an instance was newly created and populated in memory. This is fixed now by ensuring that a layout object is immediately created and registered as event listener at the configuration. Fixes CONFIGURATION-222. Thanks to Gabriele Garuglieri. oheger
add ConfigurationFactory now supports variables in its configuration definition files. These variables are resolved using system properties and have the typical ${ } syntax. Fixes CONFIGURATION-221. Thanks to Rainer Jung. oheger
update There were still some problems with resolving relative paths when configuration files are loaded from classpath. This fix addresses these issues. Fixes CONFIGURATION-216. Thanks to Gabriele Garuglieri. oheger
update DataConfiguration.getDateArray() used to ignore the format argument. This was fixed. Fixes CONFIGURATION-220. oheger
update PropertiesConfiguration now defines its own clone() method to handle the associated PropertiesConfigurationLayout object correctly. Fixes CONFIGURATION-219. oheger

Release 1.3-rc1 - 2006-07-30

TypeChangesBy
update The dependency to servletapi was updated from version 2.3 to version 2.4, but version 2.3 will still work. Fixes CONFIGURATION-217. oheger
add A new class PropertiesConfigurationLayout was introduced whose task is to preserve the structure (e.g. comments, blanc lines) of a file loaded by PropertiesConfiguration. Each PropertiesConfiguration object is now associated with such a layout object. A saved properties file will look very similar to its original. Fixes CONFIGURATION-104. oheger
add clone() methods have been added to BaseConfiguration, AbstractFileConfiguration, MapConfiguration, CompositeConfiguration, and CombinedConfiguration. So the most important Configuration implementations now support cloning. To ConfigurationUtils an utility method cloneConfiguration() was added that allows to conveniently clone a configuration. Fixes CONFIGURATION-145. oheger
update If a configuration file was to be loaded from classpath, the constructor of AbstractFileConfiguration dropped the file's path. The path is now taken into account. Fixes CONFIGURATION-216. oheger
update The getter methods for numeric data types in AbstractConfiguration now support conversions between different Number types, e.g. you can now call getLong(key) when key points to an Integer value. Fixes CONFIGURATION-214. oheger
add The new class DefaultConfigurationBuilder was added as an alternative to ConfigurationFactory. It provides some more features and creates a CombinedConfiguration object oheger
add The new class CombinedConfiguration was added as a hierarchical alternative to CompositeConfiguration. oheger
add Support for low-level configuration events was added to all classes derived from AbstractConfiguration. The major part of this is handled by the new super class EventSource of AbstractConfiguration. Fixes CONFIGURATION-143. oheger
add A new method convertToHierarchical() was added to ConfigurationUtils, which is able to convert an arbitrary configuration object into a hierarchical configuration. oheger
update Loading of file-based configurations no longer throws a NullPointerException in setups where the thread context class loader is not set. Fixes CONFIGURATION-63. oheger
update The dependency to dom4j was removed; it was only used by two test classes, which have been re-written. oheger
update XMLConfiguration used to drop the DOCTYPE declaration when saving the configur ation. It is now able to extract the DTD's public and system ID and write them back (more complex DOCTYPE declarations are still not supported). With the new methods setSystemID() and setPublicID(), the DOCTYPE declaration can be configured. Fixes CONFIGURATION-100. oheger
add Added two new constructors in CompositeConfiguration accepting a collection of configurations as a parameter. Fixes CONFIGURATION-178. ebourg
add (Basic) Support for declaring beans in configuration files was added. Some new classes in the beanutils package allow to create instances from these declarations. Fixes CONFIGURATION-186. oheger
update The implementation of the interpolation features have been extracted out off AbstractConfiguration and moved to PropertyConverter. The interpolateHelper() method of AbstractConfiguration is now deprectated and will not be called any more during interpolation. oheger
add A new method configurationsAt() was added to HierarchicalConfiguration that provides a convenient way of iterating over complex list-like structures without the need of manually constructing configuration keys with indices. Fixes CONFIGURATION-182. oheger
add A new class SubnodeConfiguration was introduced that wraps a configuration node of a HierarchicalConfiguration. All operations performed on this configuration use this wrapped node as root. The new configurationAt() method of HierarchicalConfiguration returns such a SubnodeConfiguration for a specified sub node. oheger
add With XPathExpressionEngine an expression engine for hierarchical configurations is now available that can evaluate XPATH expressions in property keys. This expression engine implementation is based on Commons JXPath, which is now declared as a new dependency (but at runtime it is only needed if the XPathExpressionEngine class is used). Fixes CONFIGURATION-173. oheger
add The code for interpreting property keys was refactored out off HierarchicalConfiguration. Instead this class now supports pluggable expression engines (using the setExpressionEngine() method). So it is possible to plug in different expression languages. A default expression engine is provided that understands the native expression language used by hierarchical configurations in older versions. During the process of this refactoring some methods of HierarchicalConfiguration have been deprecated; they will not be called any more when searching or adding properties. These are the following: createAddPath(), fetchAddNode(), findLastPathNode(), findPropertyNodes(). oheger
update A larger refactoring was performed on the inner Node class of HierarchicalConfiguration: A ConfigurationNode interface was extracted for which a default implementation (DefaultConfigurationNode) is provided. HierarchicalConfiguration.Node now extends this default implementation. The new ConfigurationNode interface defines some more methods than the Node class did originally for conveniently dealing with sub nodes and attributes. HierarchicalConfiguration now uses the new type ConfigurationNode whereever possible. Some methods dealing with Node objects have been deprecated and replaced by versions operating on ConfigurationNode objects instead. oheger
update All configuration classes d erived from AbstractConfiguration now allow to set an instance specific list delimiter. This can be done through the new method setListDelimiter(). As before it is possible to define a default list delimiter, which will be used if no instance specific delimiter is set. This can be done using the new setDefaultListDelimiter() method (the methods get/setDelimiter() have been deprecated). With the new setDelimiterParsingDisabled() method parsing of lists can be disabled at all. Fixes CONFIGURATION-155. Thanks to Jorge Ferrer. oheger

Release 1.2 - 2005-12-17

TypeChangesBy

Release 1.2-rc3 - 2005-12-07

TypeChangesBy
update Commons Configuration now declares a dependency to Xalan. As with Xerces this dependency is only needed for JDK 1.3. It was introduced in a process of making Configuration buildable on a JDK 1.3. Documentation about the build process was also added. oheger
update The dependency to Commons Beanutils Collections was unnecessary and thus removed. oheger
update Commons Configuration now depends on Commons Digester 1.6 instead of 1.5. (This was done only to pick up the latest available release of digester.) oheger

Release 1.2-rc2 - 2005-11-23

TypeChangesBy
update ConfigurationDynaBean now implements the java.util.Map interface (as was stated in the javadocs). This was done by deriving the class from ConfigurationMap. Fixes CONFIGURATION-2. oheger

Release 1.2-rc1 - 2005-11-11

TypeChangesBy
update The reload() method in AbstractFileConfiguration was updated to prevent reentrant invocation, which may be caused by some meth ods when they are called during a reloading operation. Fixes CONFIGURATION-33. oheger
update AbstractHierarchicalFileConfiguration, a new base class for file based hierarchical configurations, was introduced. XMLConfiguration now extends this class. ebourg, oheger
update XMLConfiguration now prints the used encoding in the xml declaration of generated files. In earlier versions always the default encoding was written. PropertiesConfiguration now always uses the platform specific line separator when saving files. Fixes CONFIGURATION-41. Thanks to Kay Doebl. oheger
update PropertiesConfiguration now translates properly the escaped unicode characters (like \u1234) used in the property keys. This complies with the specification of java.util.Properties. Fixes CONFIGURATION-8. ebourg
update ConfigurationConverter.getProperties() now uses the delimiter of the specified configuration to convert the list properties into strings. Fixes CONFIGURATION-123. ebourg
update The interpolation of variables (${foo}) is now performed in all property getters of AbstractConfiguration and DataConfiguration. As a side effect the Properties object returned by ConfigurationConverter.getProperties() contains only interpolated values. Fixes CONFIGURATION-123. ebourg
update PropertiesConfiguration now uses the ISO-8859-1 encoding by default instead of the system encoding to comply with the specification of java.util.Properties. Fixes CONFIGURATION-35. ebourg
update JNDIConfiguration no longer logs an error when attempting to get a property that doesn't exist in the configuration. Fixes CONFIGURATION-44. ebourg
update Attempting to load a configuration from a directory instead of a file will now throw a ConfigurationException. Fixes CONFIGURATION-99. ebourg
update If a multi-valued property was involved in an interpolation operation, AbstractConfiguration created a string representation of the list of all values. This was changed to only use the first value, which makes more sense in this context and is consistent with other getters for single valued properties. Fixes CONFIGURATION-28. oheger
add If an include file with a relative path cannot be found in the base path, PropertiesConfiguration now also tries to resolve it based on its own location. Fixes CONFIGURATION-83. oheger
update Fixed MapConfiguration to store the list of values added under a same key instead of the last value added. Fixes CONFIGURATION-117. Thanks to Steve Bate. ebourg
update Fixed a bug in the handling of relative file names in ConfigurationFactory: In most cases relative file names were not resolved relative to the location of the configuration definition file as stated in the documentation. This behavior was now changed to always be in sync with the documentation. This may have an impact on existing code which uses workarounds for the erroneous resolving mechanism. Fixes CONFIGURATION-80. oheger
update Empty elements or elements whose content consists only of comments or whitespace are now taken into account by XMLConfiguration. They are added to the configuration; their value is an empty string. Fixes CONFIGURATION-6. oheger
add XMLConfiguration now sets a valid system id in the InputSource used for loading files. This enables XML parsers to correctly resolve relative files, e.g. DTDs. oheger
update getKeys() in HierarchicalConfiguration now returns the keys in the same order the properties were inserted. Fixes CONFIGURATION-74. ebourg
update Commons Configuration now depends on Commons Collections 3.1 instead of 3.0 ebourg
add New configurations implementing the "property list" format used in NeXT/OpenStep and its XML variant used in Mac OS X. (PropertyListConfiguration and XMLPropertyListConfiguration) Fixes CONFIGURATION-195. ebourg
update Resolved some issues with XMLConfiguration and properties containing the delimiter character. These properties are now correctly treated, escaping the delimiter will work, too. Fixes CONFIGURATION-97. oheger
add Added support for XMLPropertiesConfiguration in ConfigurationFactory. A < properties> element will generate a XMLPropertiesConfiguration if the filename ends with ".xml". ebourg
add PropertiesConfiguration now supports escaped key/value separators in the keys (i.e foo\:key = bar). Fixes CONFIGURATION-184. ebourg
add PropertiesConfiguration now supports all key/value separators supported by java.util.Properties ('=', ':' and white space characters). Fixes CONFIGURATION-166. ebourg
update Commons Configuration now depends on Commons Lang 2.1 instead of 2.0 ebourg
update Comment lines for PropertiesConfiguration can start with the '!' char (compatibility with java.util.Properties). Fixes CONFIGURATION-207. ebourg
update Because ConfigurationUtils.copy() does not fully support hierarchical configurations a clone() method was added to HierarchicalConfiguration that can be used instead. Fixes CONFIGURATION-84. oheger
add XMLConfiguration now provides some support for validating XML documents. With the setValidating() method DTD validation can be enabled. It is also possible to set a custom DocumentBuilder allowing a caller to perform enhanced configuration of the XML loading process. Fixes CONFIGURATION-206. oheger
update AbstractFileConfiguration now always sets a valid base path if the configuration file could be located. This allows PropertiesConfiguration to resolve include files even when loaded from class path. Fixes CONFIGURATION-121. oheger
update Updated XMLConfiguration to correctly deal with properties containing dots in their names. Such properties could not be accessed before. Fixes CONFIGURATION-85. oheger
update PropertiesConfiguration's handling of backslash characters at the end of line was incorrect when there was an even number of trailing backslashes. This is now fixed. Fixes CONFIGURATION-9. oheger
update Fixed a problem related to file based configurations that are loaded from a URL which is application/x-www-form-urlencoded: the save() method would store such files at a wrong location. Fixes CONFIGURATION-130. oheger
update Up dated FileChangedReloadingStrategy to use the file based configuration's source URL to find the file to watch. Before that it was possible that the strategy checked the wrong file. For configuration files loaded from a jar FileChangedReloadingStrategy now checks the jar file itself for changes. Finally a bug was fixed which caused the strategy to check the watched file's last change date on every invocation of its reloadingRequired() method ignoring its refresh delay. Thanks to Jorge Ferrer. Fixes CONFIGURATION-50. oheger
update Fixed a bug in the collaboration between XMLConfiguration and its reloading strategy: The configuration did not check its reloading strategy, so no reload was performed. Fixes CONFIGURATION-62. oheger
update Disabled auto save mode during PropertiesConfiguration.load(). Prior it was possible that the properties file to be loaded was immideately overwritten. Fixes CONFIGURATION-119. oheger
update Under certain circumstances it was possible that a reloading strategy set for PropertiesConfiguration interferred with the save() method causing the configuration file to be erased. This has now been fixed. Fixes CONFIGURATION-89. oheger
update AbstractFileConfiguration now stores the URL of the config file in the load() methods. This URL is reused by the save() method to ensure that the same file is written. Fixes CONFIGURATION-94. Thanks to Jamie M. Guillemette. oheger
update XMLPropertiesConfiguration no longer depends on Digester to parse the configuration file, it's now implemented with a pure SAX parser. Thanks to Alistair Young. ebourg
update Fixed a bug which causes XMLConfiguration.save to lose attribute values under some circumstances. The clear() method now also ensures that the associated DOM document is always cleared. Fixes CONFIGURATION-49. Thanks to Mi Zhang. oheger
update XMLConfiguration now parse the configuration using the encoding declared in the XML header instead of the OS default encoding. Fixes CONFIGURATION-13. Thanks to Kunihara Tetsuya. ebourg
update XMLConfiguration now uses the delimiter set by setDelimiter(char). Thanks to Zsolt Koppany. ebourg

Release 1.1 - 2005-04-02

TypeChangesBy
update Fixed a ConcurrentModificationException thrown when calling clear() on a SubsetConfiguration applied to a BaseConfiguration. Fixes CONFIGURATION-134. ebourg
update The resolveContainerStore() method in AbstractConfiguration now works properly with arrays of objects and arrays of primitives. This means it is possible to store an array of value in the configuration and retrieve the first element with the getString(), getInt()... methods. Fixes CONFIGURATION-81. ebourg

Release 1.1-rc2 - 2005-03-06

TypeChangesBy
update Updated documentation for FileConfiguration's load() methods. Fixed a problem in XMLConfiguration with the output of the save() method when multiple files were loaded. Fixes CONFIGURATION-118. oheger
update Fixed a bug in FileChangedReloadingStrategy preventing the detection of a file change in some cases. ebourg
update Changed getXXXArray() and getXXXList() in DataConfiguration to return an empty array/list for empty values. ebourg
update Fixed getLongArray(), getFloatArray() and getDoubleArray() in DataConfiguration, the values were cast into integers. Fixes CONFIGURATION-58. ebourg

Release 1.1-rc1 - 2005-02-13

TypeChangesBy
add ConfigurationFactory now always configures digester to use the context classloader. This avoids problems in application server environments, which use their own version of digester. Thanks to Mike Colbert for the patch! Fixes CONFIGURATION-88. oheger
add Added a new configuration, XMLPropertiesConfiguration, supporting the new XML format for java.util.Properties introduced in Java 1.5. A 1.5 runtime is not required to use this class. Fixes CONFIGURATION-148. ebourg
add Added a comment header to PropertiesConfiguration. The header is not parsed when the file is loaded yet. Fixes CONFIGURATION-190. ebourg
add Added the setEncoding(String) and the getEncoding() methods to the FileConfiguration interface to control the encoding of the configuration file. ebourg
add Access to the top level element of the XML document is now provided. For newly created configurations this element can be changed before the document is written. Fixes CONFIGURATION-210. oheger
update Merged the two XML related configuration classes into one new class XMLConfiguration. This new class should provide the best of its ancestors. Fixes CONFIGURATION-168. oheger
update Replaced the PropertyTokenizer inner class in AbstractConfiguration wit h the split method in PropertyConverter. Also moved the method building an iterator on the elements of a composite value in PropertyConverter as toIterator(). ebourg
fix Some cleanup of the handling of the base path in file based configurations. The base path is now always taken into account. Fixes CONFIGURATION-15. oheger
fix Calling getProperties on a JNDIConfiguration no longer throws an UnsupportedOperationException. ebourg
remove Removed the getPropertyDirect method from AbstractConfiguration, concrete configurations now implement directly the getProperty method from the Configuration interface. <