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.
用乘积推理机、单值模糊器和中心平均解模糊化来计算输出。
Instead you can define some as an object (instead of a class) and it becomes a singleton instance of the class.
相反您可以定义一个对象(而不是类)并且它将成为类的一个单例实例。
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.
本文讨论的主题是单例模式,请将上述实现方式牢记于心,因为接下来的现象可能出现在任何一种实现方式中。
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.
原因在于多个虚拟机都可以涉及到相同的单实例类,这些单实例对象可能会同时存在于上下文中,从而导致这些单实例对象并不是全局唯一的。
This method in turn creates the container (which ACTS as a singleton) and registers components and their parameters.
这个方法然后再创建容器(充当单体)并注册组件和组件的参数。
Since an instance of a subclass is an instance of your superclass, you could find multiple instances of the singleton.
由于子类的实例也是单例类的实例,所以可能出现多个单例实例并存的情况。
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.
您可以像调用静态方法一样访问单例对象的方法。
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资源的单例实例。
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.
单例创建模式是一个通用的编程习语。
Having this method available can be helpful in the application in general because now the singleton becomes easily mutable.
总之,在应用程序中增加这个方法是很有用的,因为我们现在可以轻松地修改单一实例。
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.
单元素模式可以用来尽可能久地延迟对象的初始化。
It is my true belief that Singleton patterns have been used with far too little thought in most frameworks.
我坚信,在大多数的框架中,使用单例模式时,考虑得都太少了。
So if you serialize one singleton twice, the two serialized objects take on separate identities.
所以如果两次序列化一个单例对象,这两个序列化得到的对象会持有两个不同的标识。
When a singleton class is garbage-collected and then reloaded, a new singleton instance is created.
当一个单例对象被当着垃圾回收,然后该单例类又被重新加载,一个新的单例对象被创建。
Being close to wild roses in appearance, the singleton fits the unfussy modern garden.
这种样子和野生蔷薇差不多的品种可以种植在那些不是很讲究的现代花园。
应用推荐