commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Heger <>
Subject Re: [Configuration] Creating a copy of a CompositeConfiguration
Date Mon, 09 May 2005 05:49:26 GMT
ConfigurationUtils has a copy() method, but I am not sure if this fits 
your needs.

However creating a copy of a CompositeConfiguration is easy enough: Just 
fetch the contained Configuration objects using the getConfiguration(int 
index) method and add them to another CompositeConfiguration.


Jorge Ferrer wrote:
> Hi,
> In an application I'm developing I want to add a configuration
> temporaly to a CompositeConfiguration. As it is a multithreaded
> application and other threads should no view this temporally added
> configuration I had the idea of cloning the CompositeConfiguration
> before adding it.
> But this class does not implement the clone() method. Is there any
> other way to create a copy?

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

View raw message