Dedian  
          -- 關注搜索引擎的開發
          日歷
          <2006年5月>
          30123456
          78910111213
          14151617181920
          21222324252627
          28293031123
          45678910
          統計
          • 隨筆 - 82
          • 文章 - 2
          • 評論 - 228
          • 引用 - 0

          導航

          常用鏈接

          留言簿(8)

          隨筆分類(45)

          隨筆檔案(82)

          文章檔案(2)

          Java Spaces

          搜索

          •  

          積分與排名

          • 積分 - 65633
          • 排名 - 816

          最新評論

          閱讀排行榜

          評論排行榜

           
          Purpose:

          To control access to an object, provide a surrogate or placeholder (proxy) for it. As a mostly used strategy, Proxy can defer the creation and initialization of the object until it is on demand.

          Structure:

          Similar to adapter, client includes an object of proxy to access, and proxy includes a real object that proxy represents.

          Difference from Adapter:

          Adapter provides a different interface to the object it adapts. In contrast, Proxy provides the same interface as its subject. As a protection of real object, Proxy can refuse to perform an operation that the subject will perform.

          Example:
          http://www.javaworld.com/javaworld/jw-02-2002/jw-0222-designpatterns.html

          Reference:
          Book: (GoF)Design Patterns
          http://en.wikipedia.org/wiki/Proxy_design_pattern
          http://www.inf.bme.hu/ooret/1999osz/DesignPatterns/Proxy4/
          http://alumni.media.mit.edu/~tpminka/patterns/Proxy.html


          posted on 2006-05-12 04:10 Dedian 閱讀(283) 評論(0)  編輯  收藏 所屬分類: Design Patterns
           
          Copyright © Dedian Powered by: 博客園 模板提供:滬江博客
          主站蜘蛛池模板: 垣曲县| 盖州市| 拜泉县| 思南县| 宣恩县| 铜梁县| 天峨县| 安新县| 怀柔区| 黄大仙区| 彰化县| 田林县| 盖州市| 蒲江县| 获嘉县| 彩票| 新蔡县| 吉木乃县| 九江县| 门源| 濮阳县| 叙永县| 湘西| 天津市| 孝昌县| 贞丰县| 来安县| 麻江县| 威宁| 石河子市| 阳曲县| 阿瓦提县| 革吉县| 合川市| 安福县| 蛟河市| 大港区| 大方县| 宁海县| 盘山县| 澄江县|