When To/Not To User


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
The only time that we make a class serializable is when we plan to serialize the class through a Serialization formatter of some type and store the serialized object on disk, pass it over a remoting session or network stream, etc. and want the entire object intact when it gets to the other side.  Also, another time to use serialization is when you want to save the state of an object then retrieve that object from a file or database so that it skips all of the loading and instantiation upstart costs.  I don't know if that is very clear or not, but we use serialization very judiciously because there is overhead when passing around a serialized object.  So if you do no have the nee dto serialize the object then the attribute is not really necessary.  Hope that makes sense Smile  I was answering about 5 questions as I wrote this post BigGrin
choyt
choyt
StrataFrame Novice (92 reputation)StrataFrame Novice (92 reputation)StrataFrame Novice (92 reputation)StrataFrame Novice (92 reputation)StrataFrame Novice (92 reputation)StrataFrame Novice (92 reputation)StrataFrame Novice (92 reputation)StrataFrame Novice (92 reputation)StrataFrame Novice (92 reputation)
Group: Forum Members
Posts: 78, Visits: 246
Hi Folks

All of the SF classes created use the <Serializable()> attribute. At Microfour, do you have any general rules on when you make a non-business object class Serializable or not?

Thanks!

Clay


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search