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

          導航

          常用鏈接

          留言簿(8)

          隨筆分類(45)

          隨筆檔案(82)

          文章檔案(2)

          Java Spaces

          搜索

          •  

          積分與排名

          • 積分 - 66090
          • 排名 - 813

          最新評論

          閱讀排行榜

          評論排行榜

           
          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 閱讀(287) 評論(0)  編輯  收藏 所屬分類: Design Patterns
           
          Copyright © Dedian Powered by: 博客園 模板提供:滬江博客
          主站蜘蛛池模板: 旬阳县| 临夏市| 平湖市| 衡东县| 卢湾区| 彰化县| 抚顺县| 闸北区| 荣成市| 会泽县| 襄汾县| 克什克腾旗| 丰台区| 应用必备| 兴国县| 河源市| 兰考县| 天全县| 新丰县| 嘉禾县| 龙川县| 泌阳县| 文成县| 五家渠市| 富宁县| 天峨县| 河津市| 称多县| 烟台市| 玛多县| 泽州县| 洛宁县| 西和县| 望都县| 巴中市| 屏东市| 南陵县| 霍山县| 渑池县| 乐山市| 嘉黎县|