[infinispan-dev] Configuration.clone

Manik Surtani manik at jboss.org
Tue Aug 4 08:15:00 EDT 2009


Hmm, that is weird.

Don't intent to point fingers or anything :) but Vladimir [1], any  
specific reason to handle clone() in this way?

Cheers
Manik

[1] http://fisheye.jboss.org/browse/Infinispan/trunk/core/src/main/java/org/infinispan/config/Configuration.java?r=625

On 4 Aug 2009, at 12:33, Mircea Markus wrote:

> Hi,
>
> Configuration.clone is implemented with object serialization. AFAIK  
> this
> is not a good practice for several reasons, one of them is that all  
> the
> objects aggregated  by Configuration must be serializable. While this
> *might* be ok for Configuration elements within our scope (infinispan)
> this will unnecessarily enforce the extensions (e.g.
> <aCustomCacheStore>Configuration) to be serializable.
>
> Cheers,
> Mircea
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

--
Manik Surtani
manik at jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org







More information about the infinispan-dev mailing list