GnuSmalltalkUsersGuide:BaseChapter 128

From 흡혈양파의 번역工房
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
PluggableProxy

PluggableProxy

네임스페이스 Smalltalk에 정의됨

슈퍼클래스: AlternativeObjectProxy

범주: 스트림-파일


나는 로딩 시 다른 객체를 보관하고 그 객체로 #reconstructOriginalObject(메시지가 전송되는 사례의 경우 DirectedMessage가 될 수도 있다)를 전송하는 프록시이다. 저장될 객체는 객체로 #binaryRepresentationObject를 전송하면 검색할 수 있다.


PluggableProxy 클래스: 접근하기

on: anObject

anObject를 저장하는 데 사용될 프록시를 응답하라. 프록시는 anObject로 #binaryRepresentationObject 메시지(언제나처럼 #preStore과 #postStore 사이에 내포)를 전송하여 얻은 다른 객체를 보관한다.


PluggableProxy: 저장하기와 복구하기

object

프록시에 보관된 객체를 재구성하여 응답하라; binaryRepresentationObject로 #reconstructOriginalObject 메시지가 전송되고, 결과 객체로 #postLoad 메시지가 전송된다.


Notes