Bank is a 38-year-old singleton who grew up in Philadelphia.
班克是一个38岁的单身汉,在费城长大。
We could either implement each state as a Singleton, or create a factory of states which creates and manages the states.
我们既可以执行每个状态作为Singleton,也可以创建一个状态工厂用于生成和管理状态。
Product inference engine, singleton fuzzifier and center average defuzzifier were used to calculate outputs.
用乘积推理机、单值模糊器和中心平均解模糊化来计算输出。
This singleton is the root management object that starts and stops all other management tasks.
这个单实例对象是根用户管理对象,启动和停止所有其他管理任务。
As I discuss the singleton, keep the above implementations in mind, although many of those phenomena can occur for any implementation of the singleton.
本文讨论的主题是单例模式,请将上述实现方式牢记于心,因为接下来的现象可能出现在任何一种实现方式中。
Through this functionality, you can use the popular singleton pattern.
通过使用这种功能,您可以使用流行的单例模式。
This class is a singleton, meaning there's only one map of running server instances for all projects.
这是一个惟一的类,也就意味着所有项目正在运行的服务器实例只有一个惟一的映射。
Another way is for each component type to use its own instance of service locator, not a singleton.
另外一个方法是每个组件类型使用它自身的服务定位器实例,而不是集合。
The remaining alternative is to use a service locator, make it a singleton, but remove the reference cache.
剩下的一个选择是使用服务定位器使用集合的方式,但是要去除引用缓存。
The instance fields of the singleton will not be globally unique. Because several VMs are involved for what appears to be the same object, several singleton objects might be brought into existence.
原因在于多个虚拟机都可以涉及到相同的单实例类,这些单实例对象可能会同时存在于上下文中,从而导致这些单实例对象并不是全局唯一的。
In that case, a new singleton object will be created.
在这种情况下,一个新的单例对象会被创建。
With all those mechanisms, a reconstituted object loses its referential identity, and you have to consider carefully whether your singleton is still a singleton.
使用这些序列化机制时,被重建的对象将失去原对象的相关标识,所有必须特别注意单例对象是否依然是单例的。
Both UI components and the Application object (which is a singleton) can receive system events.
UI组件和应用对象(这是一个单例)都能收到系统事件。
You can access methods on singleton objects similar to how you would call static methods.
您可以像调用静态方法一样访问单例对象的方法。
This is a standard PHP singleton pattern.
这是一个标准的php单元素模式。
When copies of the singleton class run in multiple VMs, an instance is created for each machine.
当单例类的副本运行于多个虚拟机中时,每个虚拟机都会为其创建一个实例对象。
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.
这一点很重要,因为单体的方面通常不会被垃圾收集。
Therefore, use of a singleton instance for JAX-RS resources should be avoided unless carefully planned.
因此,除非仔细计划,否则应该避免使用JAX - RS资源的单例实例。
For example, take a look at the connection pool singleton in Listing 1.
例如,看一下清单1内所示的这个连接池单例。
We don't really need more than one instance here, so a singleton is fine.
我们实际上并不需要更多的实例,所以单体模式也不错。
This has the added benefit of separating singleton code from the class code leaving the flexibility to use several instances of the class or using the class as a singleton.
这样分离出单例结构的代码,将有利于保持按单例模式使用类或不按单例模式使用类的灵活性。
One of the things we are working on is support for clustered singleton services.
我们正在做的一件事是支持集群的单例服务。
I'll examine the idea of a singleton, memory pooling, and data streaming.
我将分析单元素、内存池和数据流的概念。
The Singleton creation pattern is a common programming idiom.
单例创建模式是一个通用的编程习语。
This is a class that can be used repeatedly to instantiate a class as a singleton without having to re-write the singleton pattern code for that specific class.
这是一个可用来创建单例类实例确不需要为每个特定的类重写单例模式代码的可重用的类。
The singleton pattern can be used to delay the initialization of an object as long as possible.
单元素模式可以用来尽可能久地延迟对象的初始化。
One common use is for storing a singleton of a type that is not thread-safe.
一种常见用法是用于存储非线程安全类型的单例。
The API is straightforward: You call a singleton method and get back a connection object.
API很直观:您调用单个方法,并返回一个连接对象。
It is implemented as a singleton class.
它是一个单实例类。
应用推荐