It is implemented as a singleton class.
它是一个单实例类。
In that case, a new singleton object will be created.
在这种情况下,一个新的单例对象会被创建。
Through this functionality, you can use the popular singleton pattern.
通过使用这种功能,您可以使用流行的单例模式。
For example, take a look at the connection pool singleton in Listing 1.
例如,看一下清单1内所示的这个连接池单例。
It is actually the real name of the singleton instance of the Unit type!
事实上这是Unit类型单体实例的真正名字!
Returns the singleton application instance.
返回应用程序单例对象。
I suppose I'll just stay a singleton all my life!
我觉得我会一辈子保持单身。
This class is a singleton and cannot be created directly.
这个类是唯一的,不能直接创建。
He was a singleton for a few years before he met his wife.
在遇到他妻子之前,他也单身了好多年。
We don't really need more than one instance here, so a singleton is fine.
我们实际上并不需要更多的实例,所以单体模式也不错。
Finally, the application of singleton pattern is depicted in this system.
最后,描述了单体模式在系统中的应用。
The Manager object is a singleton and is needed to create all other objects.
Manager是一个单实例对象,需要它来创建所有其他对象。
One common use is for storing a singleton of a type that is not thread-safe.
一种常见用法是用于存储非线程安全类型的单例。
So with this class we can makeany class singleton, without duplicating the code.
使用这个类,不需要复制代码就可以实现任意类单例化。
The Singleton pattern is shown in Figure 5.
Singleton模式如图5所示。
Another option is to use Singleton pattern.
另一个选择是使用单例模式。
Singleton is the default and most often used object mode.
Singleton是默认的也是最常用的对象模型。
How to run test cases for Singleton object with multiple state?
如何运行多个状态对象的测试用例?
Singleton — returns reference to the single instance of the delegate object.
Singleton——返回对委托对象单个实例的引用。
Singleton is bit complex, but it plays very important role in game development.
单例模式有点复杂,但它在游戏开发中非常有用。
The design of this class ensures that only one Singleton object is ever created.
此类的设计确保只创建一个Singleton对象。
Singleton: one instance of a class or one value accessible globally in an application.
单例:保证一个类仅有一个实例,并提供一个访问它的全局访问点。
Singleton: one instance of a class or one value accessible globally in an application.
单例:保证一个类仅有一个实例,并提供一个访问它的全局访问点。
应用推荐