+ -
当前位置:首页 → 问答吧 → 11->The Proxy Pattern(mikale预定)

11->The Proxy Pattern(mikale预定)

时间:2006-03-27

来源:互联网

11
The Proxy Pattern
HAVE YOU EVER WANTED to delay the creation of an object because it uses expensive
resources and not every path through your code requires the object? Have you ever wanted
to restrict access to an object, say, to provide one set of methods to a user and additional,
privileged methods to an administrator? Both needs are fairly common and are representative of a
larger problem: how do you provide a consistent interface to an object that may vary in nature―or not
even exist yet?
The Problem
How can you provide access to an object without providing the object directly?
The Solution
The Proxy pattern provides a surrogate―a placeholder―for another object, effectively placing code in
between a client object and a subject object. A Proxy might provide lazy instantiation, access control,

作者: PHPChina   发布时间: 2006-03-26

...

作者: Bantu   发布时间: 2006-03-28

我来翻译这个算了。。。= =

作者: mikale   发布时间: 2006-03-28

这个WORD格式排版能不能搞的好一些啊。。相当的混乱,而且字都看不清楚。。

作者: mikale   发布时间: 2006-03-29

欢迎加入!

增加字体就可以了。你看我上传得。

作者: PHPChina   发布时间: 2006-03-29

热门下载

更多