Dedian  
          -- 關(guān)注搜索引擎的開發(fā)
          日歷
          <2006年5月>
          30123456
          78910111213
          14151617181920
          21222324252627
          28293031123
          45678910
          統(tǒng)計(jì)
          • 隨筆 - 82
          • 文章 - 2
          • 評(píng)論 - 228
          • 引用 - 0

          導(dǎo)航

          常用鏈接

          留言簿(8)

          隨筆分類(45)

          隨筆檔案(82)

          文章檔案(2)

          Java Spaces

          搜索

          •  

          積分與排名

          • 積分 - 65555
          • 排名 - 817

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

           
          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 閱讀(282) 評(píng)論(0)  編輯  收藏 所屬分類: Design Patterns
           
          Copyright © Dedian Powered by: 博客園 模板提供:滬江博客
          主站蜘蛛池模板: 通榆县| 永兴县| 拉萨市| 理塘县| 高台县| 襄城县| 盈江县| 综艺| 无为县| 巩义市| 万安县| 尉氏县| 阳江市| 丰顺县| 张家界市| 武宣县| 襄城县| 彰化县| 洪雅县| 九江县| 专栏| 乳山市| 彩票| 江油市| 安图县| 泸西县| 南乐县| 石泉县| 武义县| 南充市| 孝义市| 五莲县| 云梦县| 德阳市| 乌恰县| 汪清县| 石景山区| 绥芬河市| 汶上县| 山阴县| 迁西县|