...创建型模式---单件模式(Singleton Pattern) 动机(Motivation): 在软件系统中,经常有这样一些特殊的类,必须保证它们在系统中只存在一个实例,才能确保它们的逻辑正确性、...
基于16个网页-相关网页
The Singleton Pattern 单例模式 ; 单件模式
Singleton Design Pattern 单态设计模式 ; 单例模式
Nowadays there are lots of patterns, such as the singleton pattern, factory pattern, etc.
现在总结出很多模式,例如:单例模式,工厂模式等。
参考来源 - Java EE模式框架在中小企业Web实施应用中的研究·2,447,543篇论文数据,部分数据来源于NoteExpress
以上来源于: WordNet
Through this functionality, you can use the popular singleton pattern.
通过使用这种功能,您可以使用流行的单例模式。
The singleton pattern can be used to delay the initialization of an object as long as possible.
单元素模式可以用来尽可能久地延迟对象的初始化。
To facilitate this, the plug-in class implements the singleton pattern: It stores a reference to itself in a private class variable.
为了使这一点更方便,插件类实现单模式(singleton pattern):它在私有类变量中存储一个自身的引用。
应用推荐