Edgar,

The InvokerTransformer will do the job, of course. I just thought I'd point out that you can use a CloneTransformer instead - it utilises a number of different strategies to clone the elements in the collection, so stands a better chance of succeeding. It first tries the clone method, then looks for a copy-constructor. Finally, it tries to serialize/deserialize the object to clone it.

Chris


Collection clonedCollection = CollectionUtils.collect(originalCollection, CloneTransformer.getInstance());



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to