Back: DLD class-dynamic linking Up: Base classes Forward: DumperProxy class-accessing   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.66 DumperProxy

Defined in namespace Smalltalk
Superclass: Object
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.

1.66.1 DumperProxy class: accessing  (class)
1.66.2 DumperProxy class: instance creation  (class)
1.66.3 DumperProxy: saving and restoring  (instance)


1.66.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


1.66.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!


1.66.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



Back: DumperProxy class-instance creation Up: DumperProxy Forward: Duration   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on August, 19 2010 using texi2html