当前位置: > 投稿>正文

singleton是什么意思,singleton中文翻译,singleton发音、用法及例句

2026-08-06 投稿

singleton是什么意思,singleton中文翻译,singleton发音、用法及例句

•singleton

singleton发音

英:['sɪŋɡltən]  美:[ˈsɪŋɡəltən]

英:  美:

singleton中文意思翻译

n. 独生子;单身;(扑克牌)单张;单例模型

singleton常见例句

1 、Three clubs was an overbid, but Rosenthal (South) was hoping his partner had a singleton spade.───3草花有点冒进,不过卢森塔尔(坐南)指望同伴的黑桃是单张。

2 、Blood group antigen Singleton───Singleton血型抗原

3 、Provides for deferred loading and relationship maintenance for the singleton side of a one-to-many relationship in a LINQ to SQL application.───为LINQ to SQL应用程序中的一对多关系的单一实例方提供延迟加载和关系维护。

4 、Blood group antibody Singleton───Singleton血型抗体

5 、Instance behavior specifies how many instances of the service can be run (for example, a singleton specifies only one instance to process all messages).───实例行为指定可运行的服务实例的数目(例如,singleton指定只能用单一实例来处理所有消息)。

6 、singleton [a card that is the only one of the suit in a hand]───单张

7 、In regular expressions, a normal character is an atom that denotes the singleton set of strings containing only itself.───在正则表达式中,一个常规字符是一个原子,它表示只包含其自身的单字符串集。

8 、The women were part of an ongoing maternity cohort who deliered singleton babies and had gien blood samples early in pregnancy.───受试者妇女有部分是正在产科医院中生了单胞胎并在妊娠早期留有血样的产妇。

9 、A subgame is a game consisting of a node which is a singleton in ever player's information partition, that node's successors, and the payoffs at the associated end nodes.───子博弈是一个对于所有参与人的信息集来说都是单结的结,这个结的后续结以及在相应的终点结处的支付这三个要素所组成的博弈。

10 、The remaining settings will always be taken from the child definition: depends on, autowire mode, dependency check, singleton, lazy init.───剩余的设置将总是从子定义处得到

11 、Since there can be only one un-caught handler per process active at a time, the constructor should be invoked only once; hence, the reason for the singleton pattern.───因为每次只能有一个未捕获的处理程序处理一个活动进程,构造函数应该只被调用一次,因此要采用singleton模式。

12 、Singleton Pattern───单例模式

13 、He is a singleton, concern with parents good, oneself have a steady income, adscititious not little friend, love has talked a few times, but marriage appears to him appeal of it doesn't matter.───他是独生子,和父母关系良好,自己有一份稳定的收入,外加不少朋友,恋爱谈过几次,但婚姻对他似乎没什么吸引力。

14 、singleton resources───单资源

15 、Application of Inverter in the Reform of Singleton Paper Lithography Machine───变频器在单张纸平版印刷机改造中的应用

16 、Singleton queries do not require an input table; instead, a set of data is passed into the model, from which a single prediction is returned in real time.───单独查询不需要输入表;它将一组数据传递到模型中,然后从模型实时返回一个预测。

17 、You can configure Prediction Query Builder, in the Mining Model Prediction tab in Data Mining Designer, to easily create a singleton prediction query.───可以在数据挖掘设计器的“挖掘模型预测”选项卡中配置预测查询生成器,来轻松创建一个单独预测查询。

18 、The Singleton and Factory Patterns in PHP: Working With Singletons───使用单例模式

19 、Singleton design mode───Singleton设计模式

20 、If the query workload on a fragmented table or index does not involve scans, because the workload is primarily singleton lookups, removing fragmentation may have no effect.───如果含有碎片的表或索引中的查询工作负荷不涉及扫描(因为工作负荷主要是单独查找),则删除碎片可能不起作用。

21 、For example, KERNEL, HEAP, and ARG0 are references to the POE::Kernel singleton, the current session's private heap, and the first custom argument for the event.───例如KERNEL、HEAP和ARG0参数分别是关于POE::Kernel独一对象、当前会话的私有数据堆和事件第一个客户自定义参数的引用。

22 、This article introduces the determinating method of procedure size and tolerance of symmetry and the methed to determine size and tolerance of singleton in examination.───介绍对称度工序尺寸及尺寸公差的确定方法,以及在单件考核中确定这一尺寸及尺寸公差的方法。

23 、These absolute risks are high compared with those for singleton term births in Scotland during the same period.───在同时期内的资料看来,这样的绝对风险比独生子女还高。

24 、The irony is that deliering and caring for twins costs 16 times as much as for a singleton.───带有讽刺意味的是,生育和照顾双胞胎的费用是一个孩子的16倍。

25 、singleton set───单元素集

26 、singleton cycle───[计] 单元素环

27 、In any event, we need an architecture that facilitates these requirements, while allowing us easy, efficient access to our configuration data. Enter the singleton configuration manager.───任何情况下,我们都需要一个能让我们容易的,高效的访问我们的配置数据的架构。

28 、To change this situation, we have decided to singleton hostels to property management companies.───为改变这种状况,我们决定把单身宿舍的管理也交给物业公司。

29 、DispSink Sample: Handles Events Fired from a Singleton COM Server Through a Dispatch Interface───DispSink示例:处理单一COM服务器通过调度接口激发的事件

30 、The singleton pattern is one of the best-known patterns in software engineering.───单件模式是软件工程中流传比较久远的模式之一。

31 、Therefore, the default constructor for a singleton class will initialize the class to the only instance of the class.───因此,单一实例类的默认构造函数将该类初始化为该类的唯一实例。

32 、Because they are shared between clients, singleton states are unable to make use of their own local, agent-specific data.───因为他们由客户共享,单件状态不能使用他们自有的,特定智能体的数据。

33 、The following example returns the predicted state of the Bike Buyer column in a singleton query.───以下示例返回单独查询中Bike Buyer列的预测状态。

34 、Volunteers will visit the singleton elderly in the Kwun Tong District at least once every two months for one year.───各组义工将于未来一年内,最少每两个月探访观塘区的独居长者一次。

35 、singleton pregnancy───单胎妊娠

36 、Singleton incision───[医] 辛格尔顿氏切口(上腹手术)

37 、However, if the object is a singleton object that might cause an entire subsystem to deadlock, consider using the above design pattern as well.───但是,如果对象是可能导致整个子系统死锁的单一实例对象,请考虑使用上面的设计模式。

38 、The "inward looking" singleton, the floor could veins clear, strong sense of solid floors to increase the warmth, feeling of intimacy, and easily mix with furniture;───对于“内向型”的单身人士来说,地板可采用纹理清晰、质感强的实木地板,以增加温暖、亲切感,且容易与家具搭配;

39 、singleton substitution───唯一替换

40 、singleton hostel───单身人士宿舍

41 、The Profile class is a singleton; it has only one instance that provides a global point of access.───Profile类为单一实例;它只有一个提供全局访问点的实例。

42 、singleton arc consistency───singleton弧相容

43 、"It is be lost probably singleton.───“大概是走失了独生子。

44 、Singleton types never have more than one instance at any one time.───Singleton类型在任何时刻只能有一个实例。

45 、" With one foot in the conventional world of species propagation and the other foot in the domain of the marginalized female singleton, Israel thinks this growing segment is in a kind of limbo.───伊斯里尔认为单身女性一面要应付传宗接代的传统思想,一边却要被排挤、被边缘化。在她看来,这种不断扩大的社会分歧像一个监牢将人禁锢其中。

46 、A singleton bucket is indicated by a Low value in the result set being equal to the corresponding High value.───单一域桶是通过结果集中的Low值等于相应的High值进行指示的。

47 、The Singleton pattern is shown in Figure 5.───Singleton模式如图5所示。

48 、singleton tenant───单身租客

49 、And a singleton class called───以及一个叫做

50 、Singleton with static factory method───公有静态成员是一个工厂方法

51 、A distribution shown with hyphens refers to any pattern including those suit lengths (for example, 5-4-3-1 means any hand with one five-card suit, one four-card suit, one tripleton and one singleton).───一手牌分配的表达以减号来表示非特定花色长度的任何组合(例如,5-4-3-1即表示持有一门5张、一门4张、一门3张及一门单张花色)。

52 、For "outward looking" singleton, the higher demands on space, room to set a simple, quick as well.───对于“外向型”的单身人士,对空间的要求较高,所以房间尽量布置得简单、明快为好。

53 、After clicking the Singleton Query button, you will see the Singleton Query Input dialog populated with columns from the TM_Decision_Tree model (the first model in the structure).───单击“单独查询”按钮后,您会看到以TM_Decision_Tree模型(结构中的第一个模型)的列填充的“单独查询输入”对话框。

54 、singleton interference───[计] 单音干扰

55 、When copies of the singleton class run in multiple VMs, an instance is created for each machine.───singleton类的拷贝跑在虚拟机中的时候,在每个机器中都创建了一个自己的实例。

56 、The Bobcats are 18-26 this season but are 11-10 since they acquired Boris Diaw, Raja Bell and Sean Singleton from the Phoenix Suns for Jason Richardson and Jared Dudley on Dec. 10.───山猫队本赛季18胜26负,但是自从他们用杰森-理查德和达德利换来了太阳队的伯瑞斯-迪奥,拉加贝尔以及西恩-辛格特里后,他们的战绩是11胜10负。

57 、For love heart, is to cherish singleton, this is normal.But many people tend to confuse a doting mother and child, as the core, and spoiled, want what to say what, what is not accustomed to the child.───出于母爱之心,人们对独生子女尤为珍爱,这是人之常情.但不少人往往把母爱和溺爱混淆起来,以孩子为核心,娇生惯养,要啥给啥,说啥是啥,把孩子惯得不像样子。

58 、Singleton and Tavares unpubished data. * N available from the soil setimated by N uptake by ineffectively nodulated plants (strain SM-5).───Singleton和Tavares未发表数据。* 来自土壤的有效氮通过非有效结瘤菌株(SM-5)对N的吸收来估算。

59 、"These person majority are a singleton female, like the space of ego as a child.───“这些人多数都是独生子女,从小就喜欢自我的空间。”

60 、You use this function to initialize static variables, enforce the singleton pattern, or perform any other necessary work before a class is usable.───在一个类被使用前,用该方法初始化静态变量,强制单件模式,或者执行任何其它必要的工做。

61 、DispSink Attributes Sample: Handles Events Fired from a Singleton COM Server Through a Dispatch Interface───DispSink属性示例:处理单一COM服务器通过调度接口激发的事件

62 、The Singleton pattern is used to design the classes that provide the configuration settings for an application.───单件模式被用来设计提供应用程序配置的类。

63 、Singleton is at a loss, love also indecision!───失去了我唯一的你,爱却又如此的优柔寡断!

64 、Adaptive Server Anywhere tries to maintain a minimum number of singleton buckets in each histogram, usually between 10 and 100 depending upon the size of the table.───Adaptive Server Anywhere会尝试在每个直方图中保留最少数量的单个桶,通常是在10与100之间,具体取决于表的大小。

65 、OWNER must be a singleton account and not a group or role.───OWNER必须是单独帐户而不是组或角色。

66 、singleton sequence───[计] 单元素序列

67 、A table of singletons at our age, well done.─── 一桌我们这年纪的未婚人士 真厉害

68 、As there is only one discard available from diamonds regardless, the contract will fail (barring West's opening lead having been a singleton) if you cannot get to lead the third round of clubs.───因为方片只可以垫掉一张输张(除非西家首攻是单张),如果妳打不出第三张梅花。定约就会被击垮。

69 、Location steps, function parameters, and operators that require singletons will return an error if the compiler cannot determine whether a singleton is guaranteed at run time.───如果编译器无法确定是否在运行时保证单一性,则要求单一性的位置步骤、函数参数和运算符将返回错误。

70 、He is obviously 4-4 in the minor suits and can hardly have a singleton spade since West did not lead the suit.───他明显是低花4-4配,并且基本不是黑桃单张,因为西没有首攻该套。

71 、Click Singleton query on the toolbar of the Mining Model Prediction tab.───在“挖掘模型预测”选项卡中,单击工具栏上的“单独查询”。

72 、Singleton's out there trying to convince your crew to torture that poor bastard of a captain simply 'cause he hasn't worked out how to get them to do it to you.─── 辛格尔顿在外面在试着说服你的船员 去折磨那可怜的混账船长 无非是因为他还没想出 怎么能让他们对你做同样的事情

73 、throw new Error (" LoadModule is a Singleton Class Please Use 'LoadModule.getInstance();'─── 多点缓存下载器是单例类请使用 'LoadModule.getInstance();'

74 、Singleton, he has the votes to remove you as captain.─── 辛格尔顿 他可以投票把你从船长职位免职

75 、singleton fuzzy model───单值模糊模型

76 、singleton model───单体模式

77 、singleton household───单身住户

78 、Singleton Design Pattern───单态设计模式

79 、"This drug might actually inhibit the progression of lung cancer," Singleton said in a telephone interview.───"这种药实际上可能抑制肺癌的发展,"辛格尔顿在一次**访谈中说。

80 、Kernel includes a little magic of its own. When it's first loaded, it creates the singleton POE:: Kernel instance that will be used throughout the program.───Kernel自己也有些小秘密。第一次引入的时候,他会创建一个独一的。

81 、ANALYSIS FOR PERINATAL MORTALITY OF TWIN PREGNANCIES AND SINGLETON PREGNANCY───双胎及单胎妊娠围产儿死亡分析

82 、1. They created the teenager, the yuppie, the baby boomer, the singleton and the metrosexual.───他们把消费者划分为:青少年,婴儿潮,单身主义者和都市玉男。

83 、The Select Input Table window is replaced with a Singleton Query Input window.───“单独查询输入”窗口将取代“选择输入表”窗口。

spring的singleton和prototype的区别和应用场合?

singleton作用域:当把一个Bean定义设置为singleton作用域是,Spring IoC容器中只会存在一个共享的Bean实例,并且所有对Bean的

请求,只要id与该Bean定义相匹配,则只会返回该Bean的同一实例。值得强调的是singleton作用域是Spring中的缺省作用域。

prototype作用域:prototype作用域的Bean会导致在每次对该Bean请求(将其注入到另一个Bean中,或者以程序的方式调用容器的getBean

()方法)时都会创建一个新的Bean实例。根据经验,对有状态的Bean应使用prototype作用域,而对无状态的Bean则应该使用singleton作用

域。

对于具有prototype作用域的Bean,有一点很重要,即Spring不能对该Bean的整个生命周期负责。具有prototype作用域的Bean创建后交由调

用者负责销毁对象回收资源。

简单的说:

singleton 只有一个实例,也即是单例模式。

prototype访问一次创建一个实例,相当于new。

应用场合:

1.需要回收重要资源(数据库连接等)的事宜配置为singleton,如果配置为prototype需要应用确保资源正常回收。

2.有状态的Bean配置成singleton会引发未知问题,可以考虑配置为prototype。

单例模式的作用及创建方法

单例模式作为常见的设计模式之一,在java的项目开发中会时常的用到。Java Singleton模式即保证在JVM运行时,一个类Class只有一个实例存在。

单例模式有什么好处呢?

最简单的一个例子就是网站计数器的设计了。当我们想要统计当前网站的在线人数时,一个显而易见的问题就是并发所带来的线程安全问题,当我们对这个计数器(网站人数)在同一时刻进行操作,再保存计数时就会造成数据的混乱,后者覆盖前者的结果。一种解决方案就是把这个计数器设置为唯一对象,所有人都必须共用同一份数据。

实现唯一对象最好的解决办法就是让类自己负责保存它的唯一实例,并且让这个类保证不会产生第二个实例,同时提供一个让外部对象访问该实例的方法。自己的事情自己办,而不是由别人代办,这非常符合面向对象的封装原则。

单例模式的三个特点:

只有在自身需要的时候才会行动,从来不知道及早做好准备。它在需要对象的时候,才判断是否已有对象,如果没有就立即创建一个对象,然后返回,如果已有对象就不再创建,立即返回。

该方法在多线程情况下有可能重复创建实例,以下是线程安全的懒汉模式

这种模式的缺点是加锁造成了效率下降,并且在绝大部分情况下是不需要同步的。使用双重检验锁(DCL),只在第一次初始化的时候进行同步加锁

该方式在类加载的时候就被实例化了。

这种方式同样利用了classloder的机制来保证初始化instance时只有一个线程,它跟饿汉不同的是(很细微的差别):饿汉方式是只要Singleton类被装载了,那么instance就会被实例化(没有达到lazy loading效果),而这种方式是Singleton类被装载了,instance不一定被初始化。因为SingletonHolder类没有被主动使用,只有显式通过调用getInstance方法时,才会显示装载SingletonHolder类,从而实例化instance。

想象一下,如果实例化instance很消耗资源,我想让它延迟加载,另外一方面,我不希望在Singleton类加载时就实例化,因为我不能确保Singleton类还可能在其他的地方被主动使用从而被加载,那么这个时候实例化instance显然是不合适的。这个时候,这种方式就显得很合理。

关于类加载情况下单例模式,如果单例由不同的类装载器装入,那便有可能存在多个单例类的实例。假定不是远端存取,例如一些servlet容器对每个servlet使用完全不同的类 装载器,这样的话如果有两个servlet访问一个单例类,它们就都会有各自的实例。修复的办法是

本站其他内容推荐

版权声明: 本站仅提供信息存储空间服务,旨在传递更多信息,不拥有所有权,不承担相关法律责任,不代表本网赞同其观点和对其真实性负责。如因作品内容、版权和其它问题需要同本网联系的,请发送邮件至 举报,一经查实,本站将立刻删除。