[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] Map Blackboard Serialization Issues
|
I didn't know there was a serialization check and am amenable to
removing that. With regards to IPersistable if I remember correctly
that provides a quick and easy way to save an object that you are
creating. For objects like Colors or others from 3rd party libraries
there is a persistable extension point for persisting those. What
ever changes you make make sure those two are documented and work when
you are done.
Jesse
On 6-Oct-08, at 8:15 PM, Jody Garnett wrote:
Emily Gouge wrote:
I could put this chunk of code inside a try/catch block and eat up
any exceptions that are thrown, but I'm not sure this is the best
thing to do as I always get annoyed when exceptions get eaten up
and I'm trying to debug problems. What do you think?
I think we should remove the if (value instanceof Serializable)
check. I am not really in favour of the IPersistable check (as that
only allows people to archive classes that they have made themselves
(if they were working with a third party library they would not be
able to "store" the objects being created).
I would recommend something like StyleContent; that was just
concerned with reading and writing ... it would be up to the person
implementing this class to look at the object and store or retrieve
an instance from the memento.
Jody
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel