singleton是什么意思,singleton中文翻譯,singleton發(fā)音、用法及例句
?singleton
singleton發(fā)音
英:['s??ɡlt?n] 美:[?s??ɡ?lt?n]
英: 美:
singleton中文意思翻譯
n. 獨生子;單身;(撲克牌)單張;單例模型
singleton常見(jiàn)例句
1 、Three clubs was an overbid, but Rosenthal (South) was hoping his partner had a singleton spade.───3草花有點(diǎn)冒進(jìn),不過(guò)盧森塔爾(坐南)指望同伴的黑桃是單張。
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.───為L(cháng)INQ to SQL應用程序中的一對多關(guān)系的單一實(shí)例方提供延遲加載和關(guān)系維護。
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).───實(shí)例行為指定可運行的服務(wù)實(shí)例的數目(例如,singleton指定只能用單一實(shí)例來(lái)處理所有消息)。
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.───在正則表達式中,一個(gè)常規字符是一個(gè)原子,它表示只包含其自身的單字符串集。
8 、The women were part of an ongoing maternity cohort who deliered singleton babies and had gien blood samples early in pregnancy.───受試者婦女有部分是正在產(chǎn)科醫院中生了單胞胎并在妊娠早期留有血樣的產(chǎn)婦。
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.───子博弈是一個(gè)對于所有參與人的信息集來(lái)說(shuō)都是單結的結,這個(gè)結的后續結以及在相應的終點(diǎn)結處的支付這三個(gè)要素所組成的博弈。
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.───因為每次只能有一個(gè)未捕獲的處理程序處理一個(gè)活動(dòng)進(jìn)程,構造函數應該只被調用一次,因此要采用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.───他是獨生子,和父母關(guān)系良好,自己有一份穩定的收入,外加不少朋友,戀愛(ài)談過(guò)幾次,但婚姻對他似乎沒(méi)什么吸引力。
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.───單獨查詢(xún)不需要輸入表;它將一組數據傳遞到模型中,然后從模型實(shí)時(shí)返回一個(gè)預測。
17 、You can configure Prediction Query Builder, in the Mining Model Prediction tab in Data Mining Designer, to easily create a singleton prediction query.───可以在數據挖掘設計器的“挖掘模型預測”選項卡中配置預測查詢(xún)生成器,來(lái)輕松創(chuàng )建一個(gè)單獨預測查詢(xún)。
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.───如果含有碎片的表或索引中的查詢(xún)工作負荷不涉及掃描(因為工作負荷主要是單獨查找),則刪除碎片可能不起作用。
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參數分別是關(guān)于POE::Kernel獨一對象、當前會(huì )話(huà)的私有數據堆和事件第一個(gè)客戶(hù)自定義參數的引用。
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.───介紹對稱(chēng)度工序尺寸及尺寸公差的確定方法,以及在單件考核中確定這一尺寸及尺寸公差的方法。
23 、These absolute risks are high compared with those for singleton term births in Scotland during the same period.───在同時(shí)期內的資料看來(lái),這樣的絕對風(fēng)險比獨生子女還高。
24 、The irony is that deliering and caring for twins costs 16 times as much as for a singleton.───帶有諷刺意味的是,生育和照顧雙胞胎的費用是一個(gè)孩子的16倍。
25 、singleton set───單元素集
26 、singleton cycle───[計] 單元素環(huán)
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.───任何情況下,我們都需要一個(gè)能讓我們容易的,高效的訪(fǎng)問(wèn)我們的配置數據的架構。
28 、To change this situation, we have decided to singleton hostels to property management companies.───為改變這種狀況,我們決定把單身宿舍的管理也交給物業(yè)公司。
29 、DispSink Sample: Handles Events Fired from a Singleton COM Server Through a Dispatch Interface───DispSink示例:處理單一COM服務(wù)器通過(guò)調度接口激發(fā)的事件
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.───因此,單一實(shí)例類(lèi)的默認構造函數將該類(lèi)初始化為該類(lèi)的唯一實(shí)例。
32 、Because they are shared between clients, singleton states are unable to make use of their own local, agent-specific data.───因為他們由客戶(hù)共享,單件狀態(tài)不能使用他們自有的,特定智能體的數據。
33 、The following example returns the predicted state of the Bike Buyer column in a singleton query.───以下示例返回單獨查詢(xún)中Bike Buyer列的預測狀態(tài)。
34 、Volunteers will visit the singleton elderly in the Kwun Tong District at least once every two months for one year.───各組義工將于未來(lái)一年內,最少每?jì)蓚€(gè)月探訪(fǎng)觀(guān)塘區的獨居長(cháng)者一次。
35 、singleton pregnancy───單胎妊娠
36 、Singleton incision───[醫] 辛格爾頓氏切口(上腹手術(shù))
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.───但是,如果對象是可能導致整個(gè)子系統死鎖的單一實(shí)例對象,請考慮使用上面的設計模式。
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;───對于“內向型”的單身人士來(lái)說(shuō),地板可采用紋理清晰、質(zhì)感強的實(shí)木地板,以增加溫暖、親切感,且容易與家具搭配;
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類(lèi)為單一實(shí)例;它只有一個(gè)提供全局訪(fǎng)問(wèn)點(diǎn)的實(shí)例。
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類(lèi)型在任何時(shí)刻只能有一個(gè)實(shí)例。
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.───伊斯里爾認為單身女性一面要應付傳宗接代的傳統思想,一邊卻要被排擠、被邊緣化。在她看來(lái),這種不斷擴大的社會(huì )分歧像一個(gè)監牢將人禁錮其中。
46 、A singleton bucket is indicated by a Low value in the result set being equal to the corresponding High value.───單一域桶是通過(guò)結果集中的Low值等于相應的High值進(jìn)行指示的。
47 、The Singleton pattern is shown in Figure 5.───Singleton模式如圖5所示。
48 、singleton tenant───單身租客
49 、And a singleton class called───以及一個(gè)叫做
50 、Singleton with static factory method───公有靜態(tài)成員是一個(gè)工廠(chǎng)方法
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).───一手牌分配的表達以減號來(lái)表示非特定花色長(cháng)度的任何組合(例如,5-4-3-1即表示持有一門(mén)5張、一門(mén)4張、一門(mén)3張及一門(mén)單張花色)。
52 、For "outward looking" singleton, the higher demands on space, room to set a simple, quick as well.───對于“外向型”的單身人士,對空間的要求較高,所以房間盡量布置得簡(jiǎn)單、明快為好。
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).───單擊“單獨查詢(xún)”按鈕后,您會(huì )看到以TM_Decision_Tree模型(結構中的第一個(gè)模型)的列填充的“單獨查詢(xún)輸入”對話(huà)框。
54 、singleton interference───[計] 單音干擾
55 、When copies of the singleton class run in multiple VMs, an instance is created for each machine.───singleton類(lèi)的拷貝跑在虛擬機中的時(shí)候,在每個(gè)機器中都創(chuàng )建了一個(gè)自己的實(shí)例。
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負,但是自從他們用杰森-理查德和達德利換來(lái)了太陽(yáng)隊的伯瑞斯-迪奧,拉加貝爾以及西恩-辛格特里后,他們的戰績(jì)是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.───出于母愛(ài)之心,人們對獨生子女尤為珍愛(ài),這是人之常情.但不少人往往把母愛(ài)和溺愛(ài)混淆起來(lái),以孩子為核心,嬌生慣養,要啥給啥,說(shuō)啥是啥,把孩子慣得不像樣子。
58 、Singleton and Tavares unpubished data. * N available from the soil setimated by N uptake by ineffectively nodulated plants (strain SM-5).───Singleton和Tavares未發(fā)表數據。* 來(lái)自土壤的有效氮通過(guò)非有效結瘤菌株(SM-5)對N的吸收來(lái)估算。
59 、"These person majority are a singleton female, like the space of ego as a child.───“這些人多數都是獨生子女,從小就喜歡自我的空間?!?/p>
60 、You use this function to initialize static variables, enforce the singleton pattern, or perform any other necessary work before a class is usable.───在一個(gè)類(lèi)被使用前,用該方法初始化靜態(tài)變量,強制單件模式,或者執行任何其它必要的工做。
61 、DispSink Attributes Sample: Handles Events Fired from a Singleton COM Server Through a Dispatch Interface───DispSink屬性示例:處理單一COM服務(wù)器通過(guò)調度接口激發(fā)的事件
62 、The Singleton pattern is used to design the classes that provide the configuration settings for an application.───單件模式被用來(lái)設計提供應用程序配置的類(lèi)。
63 、Singleton is at a loss, love also indecision!───失去了我唯一的你,愛(ài)卻又如此的優(yōu)柔寡斷!
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會(huì )嘗試在每個(gè)直方圖中保留最少數量的單個(gè)桶,通常是在10與100之間,具體取決于表的大小。
65 、OWNER must be a singleton account and not a group or role.───OWNER必須是單獨帳戶(hù)而不是組或角色。
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.───因為方片只可以墊掉一張輸張(除非西家首攻是單張),如果妳打不出第三張梅花。定約就會(huì )被擊垮。
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.───如果編譯器無(wú)法確定是否在運行時(shí)保證單一性,則要求單一性的位置步驟、函數參數和運算符將返回錯誤。
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配,并且基本不是黑桃單張,因為西沒(méi)有首攻該套。
71 、Click Singleton query on the toolbar of the Mining Model Prediction tab.───在“挖掘模型預測”選項卡中,單擊工具欄上的“單獨查詢(xún)”。
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.─── 辛格爾頓在外面在試著(zhù)說(shuō)服你的船員 去折磨那可憐的混賬船長(cháng) 無(wú)非是因為他還沒(méi)想出 怎么能讓他們對你做同樣的事情
73 、throw new Error (" LoadModule is a Singleton Class Please Use 'LoadModule.getInstance();'─── 多點(diǎn)緩存下載器是單例類(lèi)請使用 'LoadModule.getInstance();'
74 、Singleton, he has the votes to remove you as captain.─── 辛格爾頓 他可以投票把你從船長(cháng)職位免職
75 、singleton fuzzy model───單值模糊模型
76 、singleton model───單體模式
77 、singleton household───單身住戶(hù)
78 、Singleton Design Pattern───單態(tài)設計模式
79 、"This drug might actually inhibit the progression of lung cancer," Singleton said in a telephone interview.───"這種藥實(shí)際上可能抑制肺癌的發(fā)展,"辛格爾頓在一次**訪(fǎng)談中說(shuō)。
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自己也有些小秘密。第一次引入的時(shí)候,他會(huì )創(chuàng )建一個(gè)獨一的。
81 、ANALYSIS FOR PERINATAL MORTALITY OF TWIN PREGNANCIES AND SINGLETON PREGNANCY───雙胎及單胎妊娠圍產(chǎn)兒死亡分析
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.───“單獨查詢(xún)輸入”窗口將取代“選擇輸入表”窗口。
spring的singleton和prototype的區別和應用場(chǎng)合?
singleton作用域:當把一個(gè)Bean定義設置為singleton作用域是,Spring IoC容器中只會(huì )存在一個(gè)共享的Bean實(shí)例,并且所有對Bean的
請求,只要id與該Bean定義相匹配,則只會(huì )返回該Bean的同一實(shí)例。值得強調的是singleton作用域是Spring中的缺省作用域。
prototype作用域:prototype作用域的Bean會(huì )導致在每次對該Bean請求(將其注入到另一個(gè)Bean中,或者以程序的方式調用容器的getBean
()方法)時(shí)都會(huì )創(chuàng )建一個(gè)新的Bean實(shí)例。根據經(jīng)驗,對有狀態(tài)的Bean應使用prototype作用域,而對無(wú)狀態(tài)的Bean則應該使用singleton作用
域。
對于具有prototype作用域的Bean,有一點(diǎn)很重要,即Spring不能對該Bean的整個(gè)生命周期負責。具有prototype作用域的Bean創(chuàng )建后交由調
用者負責銷(xiāo)毀對象回收資源。
簡(jiǎn)單的說(shuō):
singleton 只有一個(gè)實(shí)例,也即是單例模式。
prototype訪(fǎng)問(wèn)一次創(chuàng )建一個(gè)實(shí)例,相當于new。
應用場(chǎng)合:
1.需要回收重要資源(數據庫連接等)的事宜配置為singleton,如果配置為prototype需要應用確保資源正?;厥?。
2.有狀態(tài)的Bean配置成singleton會(huì )引發(fā)未知問(wèn)題,可以考慮配置為prototype。
單例模式的作用及創(chuàng )建方法
單例模式作為常見(jiàn)的設計模式之一,在java的項目開(kāi)發(fā)中會(huì )時(shí)常的用到。Java Singleton模式即保證在JVM運行時(shí),一個(gè)類(lèi)Class只有一個(gè)實(shí)例存在。
單例模式有什么好處呢?
最簡(jiǎn)單的一個(gè)例子就是網(wǎng)站計數器的設計了。當我們想要統計當前網(wǎng)站的在線(xiàn)人數時(shí),一個(gè)顯而易見(jiàn)的問(wèn)題就是并發(fā)所帶來(lái)的線(xiàn)程安全問(wèn)題,當我們對這個(gè)計數器(網(wǎng)站人數)在同一時(shí)刻進(jìn)行操作,再保存計數時(shí)就會(huì )造成數據的混亂,后者覆蓋前者的結果。一種解決方案就是把這個(gè)計數器設置為唯一對象,所有人都必須共用同一份數據。
實(shí)現唯一對象最好的解決辦法就是讓類(lèi)自己負責保存它的唯一實(shí)例,并且讓這個(gè)類(lèi)保證不會(huì )產(chǎn)生第二個(gè)實(shí)例,同時(shí)提供一個(gè)讓外部對象訪(fǎng)問(wèn)該實(shí)例的方法。自己的事情自己辦,而不是由別人代辦,這非常符合面向對象的封裝原則。
單例模式的三個(gè)特點(diǎn):
只有在自身需要的時(shí)候才會(huì )行動(dòng),從來(lái)不知道及早做好準備。它在需要對象的時(shí)候,才判斷是否已有對象,如果沒(méi)有就立即創(chuàng )建一個(gè)對象,然后返回,如果已有對象就不再創(chuàng )建,立即返回。
該方法在多線(xiàn)程情況下有可能重復創(chuàng )建實(shí)例,以下是線(xiàn)程安全的懶漢模式
這種模式的缺點(diǎn)是加鎖造成了效率下降,并且在絕大部分情況下是不需要同步的。使用雙重檢驗鎖(DCL),只在第一次初始化的時(shí)候進(jìn)行同步加鎖
該方式在類(lèi)加載的時(shí)候就被實(shí)例化了。
這種方式同樣利用了classloder的機制來(lái)保證初始化instance時(shí)只有一個(gè)線(xiàn)程,它跟餓漢不同的是(很細微的差別):餓漢方式是只要Singleton類(lèi)被裝載了,那么instance就會(huì )被實(shí)例化(沒(méi)有達到lazy loading效果),而這種方式是Singleton類(lèi)被裝載了,instance不一定被初始化。因為SingletonHolder類(lèi)沒(méi)有被主動(dòng)使用,只有顯式通過(guò)調用getInstance方法時(shí),才會(huì )顯示裝載SingletonHolder類(lèi),從而實(shí)例化instance。
想象一下,如果實(shí)例化instance很消耗資源,我想讓它延遲加載,另外一方面,我不希望在Singleton類(lèi)加載時(shí)就實(shí)例化,因為我不能確保Singleton類(lèi)還可能在其他的地方被主動(dòng)使用從而被加載,那么這個(gè)時(shí)候實(shí)例化instance顯然是不合適的。這個(gè)時(shí)候,這種方式就顯得很合理。
關(guān)于類(lèi)加載情況下單例模式,如果單例由不同的類(lèi)裝載器裝入,那便有可能存在多個(gè)單例類(lèi)的實(shí)例。假定不是遠端存取,例如一些servlet容器對每個(gè)servlet使用完全不同的類(lèi) 裝載器,這樣的話(huà)如果有兩個(gè)servlet訪(fǎng)問(wèn)一個(gè)單例類(lèi),它們就都會(huì )有各自的實(shí)例。修復的辦法是
版權聲明: 本站僅提供信息存儲空間服務(wù),旨在傳遞更多信息,不擁有所有權,不承擔相關(guān)法律責任,不代表本網(wǎng)贊同其觀(guān)點(diǎn)和對其真實(shí)性負責。如因作品內容、版權和其它問(wèn)題需要同本網(wǎng)聯(lián)系的,請發(fā)送郵件至 舉報,一經(jīng)查實(shí),本站將立刻刪除。