commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Siddhartha S <s_siddharth_re...@yahoo.com>
Subject [commons-configuration] About reloading and thread-safety
Date Tue, 28 Sep 2010 12:02:56 GMT
Hi,


As per documentation, most of the concrete implementations of the Configuration 
interface are not thread-safe when modifications are involved. However, looking 
at AbstractFileConfiguration ( 
http://svn.apache.org/repos/asf/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/AbstractFileConfiguration.java
 ) and  
(http://svn.apache.org/repos/asf/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/AbstractHierarchicalFileConfiguration.java)
 , it appears that access *is* synchronized through a reload lock. Do the 
concrete implementations (e.g XMLConfiguration) do something that makes them non 
thread-safe with respect to reloads? 


thanks,
-Sidharta S
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message