Back: DLD class-Dynamic Linking
Up: Class reference
Forward: DumperProxy class-accessing
 
Top: GNU Smalltalk User's Guide
Contents: Table of Contents
Index: Class index
About: About this document

6.60 DumperProxy

Defined in namespace Smalltalk
Category: Streams-Files
I am an helper class for ObjectDumper. When an object cannot be saved in the standard way, you can register a subclass of me to provide special means to save that object.

6.60.1 DumperProxy class: accessing  (class)
6.60.2 DumperProxy class: instance creation  (class)
6.60.3 DumperProxy: saving and restoring  (instance)


6.60.1 DumperProxy class: accessing

acceptUsageForClass: aClass
The receiver was asked to be used as a proxy for the class aClass. Answer whether the registration is fine. By default, answer true

loadFrom: anObjectDumper
Reload a proxy stored in anObjectDumper and reconstruct the object


6.60.2 DumperProxy class: instance creation

on: anObject
Answer a proxy to be used to save anObject. This method MUST be overridden and anObject must NOT be stored in the object's instance variables unless you override #dumpTo:, because that would result in an infinite loop!


6.60.3 DumperProxy: saving and restoring

dumpTo: anObjectDumper
Dump the proxy to anObjectDumper -- the #loadFrom: class method will reconstruct the original object.

object
Reconstruct the object stored in the proxy and answer it




This document was generated on May, 12 2002 using texi2html