博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Proxy(Chapter 22 of Pro Objective-C Design Patterns for iOS)
阅读量:4709 次
发布时间:2019-06-10

本文共 696 字,大约阅读时间需要 2 分钟。

You’d naturally think about using the pattern when
? You need a remote proxy that provides a local representative for an object in a different address space or in the network.
? You need a virtual proxy to create heavy-weighted objects on demand. We will implement that kind of proxy in a code example later in this chapter.
? You need a protection proxy to control access to the original object based on different access rights.
? You need a smart-reference proxy for counting the number of references to the real object for memory management. It can also be used for locking the real object so no other objects can change it.

转载于:https://www.cnblogs.com/zhtf2014/archive/2012/05/18/2507460.html

你可能感兴趣的文章
数据结构与算法之美-排序(上)
查看>>
归并排序笔记2
查看>>
关于一个类中方法调用种种情况
查看>>
linux下查看文件夹的大小
查看>>
mvc页面中,显示自定义时间格式
查看>>
不支持uri格式
查看>>
Linux crontab计划任务
查看>>
疯掉的拼接
查看>>
Jupyter Notebook 快捷键使用指南
查看>>
SVN添加自动忽略文件.settings .project .classpath target等
查看>>
[THUPC2019]过河卒二(组合数学,容斥原理)
查看>>
238. Product of Array Except Self
查看>>
多线程技术交流提纲
查看>>
Java工程师必备书单
查看>>
InnoDB一定会在索引中加上主键吗
查看>>
Scala-字符串操作
查看>>
转一篇《计算机的潜意识》的文章
查看>>
[原] 蒙古文网站汇聚地
查看>>
不平衡学习 Learning from Imbalanced Data
查看>>
2014那些事之跳槽思考
查看>>