It is implemented as a singleton class.
它是一个单实例类。
This is a standard PHP singleton pattern.
这是一个标准的php单元素模式。
The Singleton pattern is shown in Figure 5.
Singleton模式如图5所示。
Returns the singleton application instance.
返回应用程序单例对象。
Another option is to use Singleton pattern.
另一个选择是使用单例模式。
Are you sure you need the singleton interface?
你确定你需要单独的接口?
I suppose I'll just stay a singleton all my life!
我觉得我会一辈子保持单身。
In that case, a new singleton object will be created.
在这种情况下,一个新的单例对象会被创建。
Singleton is the default and most often used object mode.
Singleton是默认的也是最常用的对象模型。
This class is a singleton and cannot be created directly.
这个类是唯一的,不能直接创建。
He was a singleton for a few years before he met his wife.
在遇到他妻子之前,他也单身了好多年。
First, XML is a Scala object. That is, it is a singleton object.
首先,XML是一个Scala对象,即它是一个单例(singleton)对象。
How to run test cases for Singleton object with multiple state?
如何运行多个状态对象的测试用例?
Well-known object types can be either single call or singleton.
已知物件型别可以是单一呼叫或单一物件。
So, it also can be used to create a singleton instance of a class.
因此,它也可以用来创建一个类的单身实例。
Through this functionality, you can use the popular singleton pattern.
通过使用这种功能,您可以使用流行的单例模式。
For example, take a look at the connection pool singleton in Listing 1.
例如,看一下清单1内所示的这个连接池单例。
Singleton — returns reference to the single instance of the delegate object.
Singleton——返回对委托对象单个实例的引用。
It is actually the real name of the singleton instance of the Unit type!
事实上这是Unit类型单体实例的真正名字!
We don't really need more than one instance here, so a singleton is fine.
我们实际上并不需要更多的实例,所以单体模式也不错。
The basic thing comes in my mind is either Singleton or Factory Pattern.
基本的事情出现在我的脑海里是单件或工厂模式。
Finally, the application of singleton pattern is depicted in this system.
最后,描述了单体模式在系统中的应用。
One common use is for storing a singleton of a type that is not thread-safe.
一种常见用法是用于存储非线程安全类型的单例。
The design of this class ensures that only one Singleton object is ever created.
此类的设计确保只创建一个Singleton对象。
The Manager object is a singleton and is needed to create all other objects.
Manager是一个单实例对象,需要它来创建所有其他对象。
All calls to a singleton object are handled by one instance of that object.
所有对单一物件的呼叫都是由该物件的一个执行个体所处理。
So, each message type will have it's own notifier type and static singleton.
因此,每个类型的消息将有它自己的通知类型和静态单身。
Now, when you add a new file to your project, "Singleton" should be an option.
现在,当你添加一个新的文件到项目中,“单身”应该是一种选择。
Singleton is bit complex, but it plays very important role in game development.
单例模式有点复杂,但它在游戏开发中非常有用。
Singleton is bit complex, but it plays very important role in game development.
单例模式有点复杂,但它在游戏开发中非常有用。
应用推荐