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

          導航

          常用鏈接

          留言簿(8)

          隨筆分類(45)

          隨筆檔案(82)

          文章檔案(2)

          Java Spaces

          搜索

          •  

          積分與排名

          • 積分 - 66086
          • 排名 - 814

          最新評論

          閱讀排行榜

          評論排行榜

           
          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: 博客園 模板提供:滬江博客
          主站蜘蛛池模板: 讷河市| 海阳市| 收藏| 新沂市| 南澳县| 丹凤县| 启东市| 黄山市| 南通市| 即墨市| 普兰县| 神木县| 乃东县| 吴忠市| 绥芬河市| 大冶市| 韩城市| 随州市| 长岛县| 固阳县| 古交市| 海伦市| 贡嘎县| 鱼台县| 孟州市| 穆棱市| 克山县| 麻栗坡县| 砀山县| 辽阳县| 阜康市| 合阳县| 和林格尔县| 仙居县| 汽车| 宜宾市| 宁国市| 濉溪县| 正阳县| 衡南县| 咸阳市|