Dedian |
|
|||
-- 關(guān)注搜索引擎的開發(fā) |
日歷
統(tǒng)計(jì)
導(dǎo)航常用鏈接留言簿(8)隨筆分類(45)
隨筆檔案(82)
文章檔案(2)Java Spaces搜索積分與排名
最新評(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
|
![]() |
|
Copyright © Dedian | Powered by: 博客園 模板提供:滬江博客 |