文件名称:Java4
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:28.46kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
虚拟代理模式(Virtual Proxy)是一种节省内存的技术,它建议创建那些占用大量内存或处理复杂的对象时,把创建这类对象推迟到使用它的时候。在特定的应用中,不同部分的功能由不同的对象组成,应用启动的时候,不会立即使用所有的对象。在这种情况下,虚拟代理模式建议推迟对象的创建直到应用程序需要它为止。对象被应用第一次引用时创建并且同一个实例可以被重用。这种方法优缺点并存。-Virtual proxy mode (Virtual Proxy) is a memory-saving technology, which recommended the creation of those who use up a lot of memory or processing of complex objects, to create such objects postponed to use it when. In specific applications, the functions of different parts of the object from different components, application startup time, would not immediately use all of the objects. Under such circumstances, the virtual agent model proposed to postpone the creation of objects until the application requires it so far. Application object is created when the first reference and the same can be an example of reuse. Both the advantages and disadvantages of this method.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Java设计模式之虚拟代理模式.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.