Le mercredi 12 septembre 2007 à 01:44 -0700, Jody Garnett a écrit :
> The question is should we look up in a ReferencingFactoryContainer
> WeakHash set to see if we can find a "local" CoordinateReferenceSystem
> with the same definition (in order to save on memory).
It is possible to avoid the need to do this check in
ReferencingFactoryContainer. We are supposed to be allowed to put the
following code in AbstractIdentifierObject:
protected Object readResolve() throws ObjectStreamException {
// internalize here...
}
and this method is invoked automatically by Java deserialization engine
(http://java.sun.com/javase/6/docs/api/java/io/Serializable.html).
However I tried a while ago and got unexpected behavior which leads me
to remove this internalization. I don't remember what this unexpected
behavior was exactly - I think it was a kind of "chicken and egg"
problem between DefaultProjectedCRS and DefaultConversion, which
reference each other. If there is any need for that, we could try harder
to solve this problem (maybe not now, but later...)
Martin
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel