网站首页  词典首页

请输入您要查询的英文单词或汉字:

 

词汇 singleton
释义 sin·gle·ton 英ˈsɪŋgəltən美ˈsɪŋgəltənAHDsĭngʹgəl-tən ●○○○○高COCA²⁴²⁴⁵BNC²⁵¹⁰³iWeb²³¹⁹⁷
基本英英词源记法例句Thesaurus例句
n.独生子²⁷;单身⁶²;扑克牌单张;单例模型¹¹复数singletons
Noun:
a single object as distinguished from a paira set containing a single memberthe playing card that is the only card in a suit held in a bridge hand as initially dealtsingle,单个的,单身的,-ton,人,衍生自 simpleton.singleton-张力⇒n.独生子²⁷;单身⁶²;扑克牌单张;单例模型¹¹
名词100%
用作名词How to educate thesingletoncaused many arguements in China.怎样培养好独生子女在中国引发了许多辩论。
This woman is probably the UK's most famoussingleton.那个女人可能是英国最有名的单身了。as in.entity
同义词 body,individualarticle,being,creature,existence,item,material,matter,organism,presence,quantity,single,stuff,subsistence,substance,thingsomething
反义词 abstract,inanimateconcept,ideaas in.individual
同义词 child,entity,human being,man,party,person,womanbeing,body,character,creature,dude,existence,material,matter,mortal,number,personage,self,somebody,soul,stuff,substance,type,unitsomething
反义词 abstract,inanimate,nothing,nothingness,onegroupas in.nonce word
同义词 neologism,new word
entitiesnoun object that exists
articles,beings,bodies,creatures,existences,individuals,items,materials,matters,organisms,presences,quantities,singles,singletons,somethings,stuff,subsistence,substances,things
entitynoun object that exists
article,being,body,creature,existence,individual,item,material,matter,organism,presence,quantity,single,something,stuff,subsistence,substance,thing
individualnoun singular person, thing
being,body,character,child,creature,dude,entity,existence,human being,man,material,matter,mortal,number,party,person,personage,self,singleton,somebody,something,soul,stuff,substance,type,unit,woman
individualsnoun singular person, thing
beings,bodies,characters,children,creatures,dudes,entities,existences,human beings,materials,matters,men,mortals,numbers,parties,personages,persons,selves,singletons,somebodies,somethings,souls,stuff,substances,types,units,women
nonce wordnoun invented word
neologism,new word,singleton For Ms. Chen, the singleton guru, the hot destination is Bangkok. She recently wrote a Bangkok guidebook, spliced with photos of her shopping for clothes and eating her way around town.
独身名人陈仪丽最喜欢的地方是曼谷,最近写了一本曼谷的旅行指南,里头有不少她买衣服和品尝美食的照片。 kekenet

The framework we'll create is a simple3- tier framework that processes business logic using three patterns: the3- layer architecture pattern, the Singleton pattern, and the Command pattern.
我们将要建立的是一个简单的3- tier框架,它使用了三种模式处理业务逻辑:3- layer体系结构模式、 Singleton模式和 Command模式。 ibm

The only other methodset in italics in the class is used to get a reference to the singleton and to create it if it is not yet instantiated.
该类中仅剩的另一个方法用斜体标识用于获取该单件的一个引用,如果尚未实例化则创建它。 ibm

The singleton is a useful design pattern for allowing only one instance of your class, but common mistakes can inadvertently allow more than one instance to be created.
单例模式是一种非常有用的设计模式,它允许你的类对外只提供一个实例,但是常犯的错误在于不止一个实例被创建。 yeeyan

A simple optimization to this code would be to apply the Singleton design pattern to class Empty, because every instance of Empty is identical.
这段代码的一个简单优化是对 Empty类应用同一个设计类型,因为每一个 Empty的实例都是同样的。 ibm

An instance of the object is created on the fly and destroyed following the completion of the operation, or a singleton instance is used and reused for each request.
对象的一个实例将被动态创建,并将在操作完成后被销毁,或者使用独立实例并重用于每个请求。 ibm

Another way is for each component type to use its own instance of service locator, not a singleton.
另外一个方法是每个组件类型使用它自身的服务定位器实例,而不是集合。 ibm

As I discuss the singleton, keep the above implementations in mind, although many of those phenomena can occur for any implementation of the singleton.
本文讨论的主题是单例模式,请将上述实现方式牢记于心,因为接下来的现象可能出现在任何一种实现方式中。 yeeyan

Because configuring non- singleton aspects shares much in common with configuring domain objects, I'll then look at a simple solution that applies to them both.
因为配置非单体方面与配置域对象共享许多公共内容,所以后面我会研究一个应用于这两者的简单解决方案。 ibm

Doing so creates an instance of the Singleton Pattern in the Model Explorer.
执行此操作将会在模型浏览器中生成一个 Singleton模式的实例。 ibm

For example, an expression could not refer to an instance field that will be computed inside the class or object body, but it could invoke a method on a singleton object.
比如说,一个表达式不能引用类或者对象主体内才被计算的实例字段,但是它可以引用一个方法或者一个单例对象。 yeeyan

In some implementations of creational design patterns in the factory family, the factory is a singleton structured to create an instance of another class.
在工厂模式家族的构建模式的一些实现方式中,工厂类被定义为以单例的方式去创建其他类的实例。 yeeyan

In this situation, we intend to avoid the expense of grabbing the lock of the singleton class every time the method is called.
在此种解决方法中,我们试图避免在每次该方法被调用时由于对该单例类进行锁住而产生的开销。 yeeyan

Instead you can define some as an object instead of a class and it becomes a singleton instance of the class.
相反您可以定义一个对象而不是类并且它将成为类的一个单例实例。 ibm

Since it is thread safe by design, you might cache it in a public static final variable, or wrap it in a singleton pattern after creation for later access.
因为根据设计它是线程安全的,创建它之后可以把它缓存在一个公共静态最终变量中,或者包装在单实例模式中以供以后访问。 ibm

Since there is only one singleton instance, any instance fields of a singleton will occur only once per class, just like static fields.
由于只有一个单实例,单例对象的域只会在一个类中出现一次,就像静态域一样。 yeeyan

Static access is especially useful for implementing the singleton design pattern, where only one instance of class exists.
静态访问特别适合实现单一设计模式,在这种模式中只存在一个类实例。 ibm

This class is a singleton, meaning there's only one map of running server instances for all projects.
这是一个惟一的类,也就意味着所有项目正在运行的服务器实例只有一个惟一的映射。 ibm

This will give the container a marker for knowing to treat this EJB component as a singleton, bypassing all pooling and synchronization access to the methods.
这样会给容器一个标记,表明需绕过对这些方法的共享和同步访问,将 EJB组件作为一个单独系统。 ibm

This singleton is the root management object that starts and stops all other management tasks.
这个单实例对象是根用户管理对象,启动和停止所有其他管理任务。 ibm

Thread1 completes the initialization of the Singleton object by running its constructor and returns a reference to it.
线程1通过运行 Singleton对象的构造函数并将引用返回给它,来完成对该对象的初始化。 ibm

Through this functionality, you can use the popular singleton pattern.
通过使用这种功能,您可以使用流行的单例模式。 ibm

Typical examples include a cached DAO, cache of JNDI references, or any sort of common factory or other component that needs to use the Singleton pattern.
典型的例子有:缓存的 DAO, JNDI引用的缓存,或者任何类型的公共工厂或者其他需要使用 Singleton模式的组件。 ibm

Users of the class can then add and remove Attendee elements from the collection the Singleton instance holds, or replace the elements in the collection.
然后,该类的用户可以在 Singleton实例保存的集合中添加和删除 Attendee元素,或替换集合中的元素。 ibm

We could either implement each state as a Singleton, or create a factory of states which creates and manages the states.
我们既可以执行每个状态作为 Singleton,也可以创建一个状态工厂用于生成和管理状态。 ibm

Singleton mode provides a shared instance of the object with a particular name, which will be retrieved on lookup.
单态模型提供了具有特定名称的对象的共享实例,可以在查询时对其进行检索。 ibm
随便看

 

英汉汉英双解词典包含9999994条英汉翻译词条,涵盖了常用英语单词及词组短语的翻译及用法,是英语学习的必备工具。

 

Copyright © 2000-2024 tbdmj.com All Rights Reserved 更新时间:2025/6/6 12:22:40