|
|
6.129 SingletonProxy
- Defined in namespace Smalltalk
- Category: Streams-Files
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.
|