We could either implement each state as a Singleton, or create a factory of states which creates and manages the states.
我们既可以执行每个状态作为Singleton,也可以创建一个状态工厂用于生成和管理状态。
Bank is a 38-year-old singleton who grew up in Philadelphia.
班克是一个38岁的单身汉,在费城长大。
Product inference engine, singleton fuzzifier and center average defuzzifier were used to calculate outputs.
用乘积推理机、单值模糊器和中心平均解模糊化来计算输出。
The default scope is singleton.
默认范围是singleton。
No singleton stateless session bean.
没有单独的无状态会话bean。
Remember that object denotes a singleton in Scala.
还记得吗,object表示 Scala中的一个单例。
Hence, SignalTranslator adopts a singleton design pattern.
因此,SignalTranslator采用了singleton设计模式。
Listing 2. The DatabaseConnection singleton in rss_db.php.
清单2. rss_db . php中的databaseconnection单元素。
The Singleton creation pattern is a common programming idiom.
单例创建模式是一个通用的编程习语。
Using C# 2.0 Generics to achieve a reusable Singleton pattern
使用 C# 2.0泛型来完成单例模式的重用
Static initialization with File and Singleton and framework support.
File和Singleton以及框架支持的静态初始化。
Singleton classes destroyed by garbage collection, then reloaded.
单例对象被垃圾回收机制回收,然后单例类又被重新加载。
A singleton bean is a singleton in the context of the owning container.
Singletonbean是一个在所属容器上下文中的单例对象。
Create a private attribute for the Singleton Pattern called _instance.
为Singleton模式创建私有属性,称为_ instance。
These are called singleton objects, and need only be initialized once.
这些对象被称为单个对象(singleton object),并且只需要初始化一次。
I'll examine the idea of a singleton, memory pooling, and data streaming.
我将分析单元素、内存池和数据流的概念。
The static getInstance method contains the template code for a singleton.
静态getInstance方法包含单例的模板代码。
George Singleton has published four story collections, including Drowning in Gruel.
GeorgeSingleton已经出版四部故事集,包括《在稀粥中淹死》。
One of the things we are working on is support for clustered singleton services.
我们正在做的一件事是支持集群的单例服务。
In order to reduce memory usage, the resource bundle object is static and singleton.
为了减少内存使用,资源对象是静态和单一的。
This is important because the singleton aspects are typically not garbage collected.
这一点很重要,因为单体的方面通常不会被垃圾收集。
Being close to wild roses in appearance, the singleton fits the unfussy modern garden.
这种样子和野生蔷薇差不多的品种可以种植在那些不是很讲究的现代花园。
You can access methods on singleton objects similar to how you would call static methods.
您可以像调用静态方法一样访问单例对象的方法。
This singleton is the root management object that starts and stops all other management tasks.
这个单实例对象是根用户管理对象,启动和停止所有其他管理任务。
Both UI components and the Application object (which is a singleton) can receive system events.
UI组件和应用对象(这是一个单例)都能收到系统事件。
The singleton pattern can be used to delay the initialization of an object as long as possible.
单元素模式可以用来尽可能久地延迟对象的初始化。
When copies of the singleton class run in multiple VMs, an instance is created for each machine.
当单例类的副本运行于多个虚拟机中时,每个虚拟机都会为其创建一个实例对象。
So if you serialize one singleton twice, the two serialized objects take on separate identities.
所以如果两次序列化一个单例对象,这两个序列化得到的对象会持有两个不同的标识。
Spring has traditionally offered two scopes for beans: singleton and Prototype (or non-singleton).
Spring之前为bean提供了两种作用域:单例和原型(或者叫非单例)。
Another way is for each component type to use its own instance of service locator, not a singleton.
另外一个方法是每个组件类型使用它自身的服务定位器实例,而不是集合。
应用推荐