Back: VariableBinding-testing Up: Base classes Forward: VersionableObjectProxy class-saving and restoring   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.198 VersionableObjectProxy

Defined in namespace Smalltalk
Superclass: NullProxy
Category: Streams-Files
I am a proxy that stores additional information to allow different versions of an object's representations to be handled by the program. VersionableObjectProxies are backwards compatible, that is you can support versioning even if you did not use a VersionableObjectProxy for that class when the object was originarily dumped. VersionableObjectProxy does not support classes that changed shape across different versions. See the method comments for more information.

1.198.1 VersionableObjectProxy class: saving and restoring  (class)
1.198.2 VersionableObjectProxy: saving and restoring  (instance)


1.198.1 VersionableObjectProxy class: saving and restoring

to
loadFrom: anObjectDumper
Retrieve the object. If the version number doesn't match the #binaryRepresentationVersion answered by the class, call the class' #convertFromVersion:withFixedVariables:instanceVariables:for: method. The stored version number will be the first parameter to that method (or nil if the stored object did not employ a VersionableObjectProxy), the remaining parameters will be respectively the fixed instance variables, the indexed instance variables (or nil if the class is fixed), and the ObjectDumper itself. If no VersionableObjectProxy, the class is sent #nonVersionedInstSize to retrieve the number of fixed instance variables stored for the non-versioned object.


1.198.2 VersionableObjectProxy: saving and restoring

dumpTo: anObjectDumper
Save the object with extra versioning information.



Back: VersionableObjectProxy class-saving and restoring Up: VersionableObjectProxy Forward: VFS.ArchiveFileHandler   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on May, 22 2008 using texi2html