commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julien Wajsberg <>
Subject synchronization and XMLPropertiesConfiguration
Date Wed, 18 Apr 2012 07:10:30 GMT

I've a question about XMLPropertiesConfiguration in commons-configuration.

It's said in the Java Doc that "Configuration objects of this type can
be read concurrently by multiple threads. However if one of these
threads modifies the object, synchronization has to be performed
manually." I'd like to know more, especially about what should be

As I understand it, modifying the object means changing one of its
core values, like the file to load from/save to, the encoding, etc. It
doesn't mean adding or setting a property. Is that true ?

Also, if manual synchronizing is needed (because we change one of
these values), should it be done on the reloadLock returned by
getReloadLock, and then we'd not have to synchronize manually on
loading/saving/setting ?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message