Back: Signal-exception handling
Up: Class reference
Forward: SingletonProxy class-accessing
 
Top: GNU Smalltalk User's Guide
Contents: Table of Contents
Index: Class index
About: About this document

6.129 SingletonProxy

Defined in namespace Smalltalk
Category: Streams-Files

6.129.1 SingletonProxy class: accessing  (class)
6.129.2 SingletonProxy class: instance creation  (class)
6.129.3 SingletonProxy: saving and restoring  (instance)


6.129.1 SingletonProxy class: accessing

acceptUsageForClass: aClass
The receiver was asked to be used as a proxy for the class aClass. The registration is fine if the class is actually a singleton.


6.129.2 SingletonProxy class: instance creation

on: anObject
Answer a proxy to be used to save anObject. The proxy stores the class and restores the object by looking into a dictionary of class -> singleton objects.


6.129.3 SingletonProxy: saving and restoring

object
Reconstruct the object stored in the proxy and answer it; the binaryRepresentationObject is sent the #reconstructOriginalObject message, and the resulting object is sent the #postLoad message.




This document was generated on May, 12 2002 using texi2html