singleton

singleton

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

  • n.【牌】(某一花色的)单张;单元素集合
  • 网络单例模式;单件;单件模式

词形变化

复数:singletons  

英汉双解

n.
1.
(所提及的)单项物,单个的人a single item of the kind that you are talking about
2.
单身男子(或女子)a person who is not married or in a romantic relationship
3.
(非孪生的)单生儿,单生幼畜a person or an animal that is not a twin, etc.

英汉解释

n.
1.
【牌】(某一花色的)单张,孤张,手拿孤张的人,〈美俚〉只有一个影片的演出,独一无二的(人或物)
2.
单元素集合

英英解释

n.

例句

The remaining alternative is to use a service locator, make it a singleton, but remove the reference cache.

剩下一个选择使用服务定位器使用集合方式但是去除引用缓存

I went and had a look round Kew Gardens with the botanist Joyce Singleton; it was a bit of a busman 's holiday for her.

植物学伊斯辛格尔顿一起参观花园来说有点照常工作假日味道

Since an instance of a subclass is an instance of your superclass, you could find multiple instances of the singleton.

由于实例也是实例所以可能出现多个实例并存情况

The server is a singleton object that has its own dual interface as well as a dispatch interface used for firing off events.

服务器一个singleton对象具有自己双重接口一个用于引发事件调度接口使用

As I said, after creating the singleton instance of the class, the code initializes it.

如上所述创建单个实例代码初始

Annotation-based injection often used by JAX-RS resource classes may not be supported in the case of a singleton instance.

JAX-RS资源使用基于注释注入可能一个实例情况并不支持

The current item of the collection is bound to automatically if the target of a binding is a singleton value.

如果绑定目标单一实例自动绑定集合当前

This form of progesterone has previously been shown to reduce the rate of recurrent preterm birth in singleton gestations .

类型激素之前显示可以减少早产风险

The singleton exception publisher was responsible for ensuring that exceptions were reported to a single location within the system.

独立异常发布程序负责确保异常报告系统某个单一位置

The Singleton pattern applies to situations in which there needs to be a single instance of a class.

模式支持那些需要保存一个单独实例

The class acts as a singleton and the only available instance can be retrieved later through the getInstance method.

充当一个并且后来通过getInstance方法检索唯一可用实例

There is no doubt that a DI application is a more testable and cleaner architecture than the sprawling singleton hair-ball.

毫无疑问使用DI应用一块西一块应用清晰架构

Since there is only one singleton instance, any instance fields of a singleton will occur only once per class, just like static fields.

由于只有一个实例对象一个出现一次静态一样

The connection factory singleton could have been extended with a Runnable interface to provide a connection close on inactivity timeout.

独立连接工厂可以使用Runnable接口进行扩展提供基于活动超时连接关闭

The change in her, she appears to be the must singleton club to join the girls can also usher in their love?

变化过程这个看似一定加入单身俱乐部女孩是否迎来自己爱情

Most helper APIs like this one and EJB singleton session beans are great candidates for the application scope.

大多数这样助手APIEJB例会bean适合选用应用范围作用域

Most caches are implemented using the Singleton pattern involving a static reference to a top level Cache class as shown in this example.

使用Singleton模式实现大多数缓存涉及顶级Cache静态引用

The GameServer singleton is used for its positions array, which has the current state of each square on the game board.

GameServer用于位置数组其中保存游戏面板每个格子当前状态

As its name suggests, the Singleton Pattern is typically used when you want only one instance of a particular class.

名称暗示想要特别仅仅一个实例使用Singleton模式

This constitutes a "between" predicate since the self axis always evaluates to a singleton.

由于self始终单个进行计算因此上述表达构成between谓词

In regular expressions, a normal character is an atom that denotes the singleton set of strings containing only itself.

表达一个常规字符一个原子表示包含自身字符串

Under the relaxation he seeks, couples would be allowed an extra child if only one parent were a singleton, not both.

寻求宽松政策允许父母双方只有一个独生子女不是夫妇双方独生子女夫妇生养另外一个孩子,。

Or how do fridge microbes of an urban singleton stack up with those of a suburban family?

城里冰箱单个细菌怎样郊区家庭细菌堆积联系起来

Volunteers will visit the singleton elderly in the Kwun Tong District at least once every two months for one year .

义工未来最少两个探访观塘区长者一次

The singleton pattern can be used to delay the initialization of an object as long as possible.

元素模式可以用来尽可能延迟对象初始

That to say, the couple has responsibility recommending their singleton in the party.

也就是说参加夫妻情侣义务大家推荐自己单身朋友

Implement it using a centralized configuration singleton, which you can configure with a properties file.

使用一个集中配置singleton实现对于这个singleton可以使用一个属性文件进行配置

The singleton instance serves concurrent requests using multithreading, so it has to be thread-safe.

singleton实例使用多线程服务并发请求因此必须线程安全(thread-safe)。

Instead, Scala supports a singleton object construct to support those cases where exactly one instance of a type is needed.

相反Scala支持模式可以应用那些一种类型只有一个实例情况

Singleton mode provides a shared instance of the object with a particular name, which will be retrieved on lookup.

模型提供具有特定名称对象共享实例可以查询进行检索

The following example returns the predicted state of the Bike Buyer column in a singleton query.

以下示例返回单独查询BikeBuyer预测状态

To configure the query builder to create singleton predictions , click Singleton Queries in the top left corner of the tab .

若要配置查询生成器创建单独预测单击选项卡单独查询”。

However, the project had two closely related scenarios where the singleton pattern proved useful: for logging and exception handling.

不过项目两个紧密相关场景可以证明独立模式有用可以用于日志记录异常处理

Results: The total score and number of positive items of SCL-90 were higer in non- singleton than in singleton.

结果独生子女SCL-90强迫人际关系敏感抑郁因子总分以及阳性项目显著低于独生子女

Having this method available can be helpful in the application in general because now the singleton becomes easily mutable.

总之应用程序增加这个方法有用因为我们现在可以轻松地修改单一实例

Some of the patterns covered are Singleton, Observer, Template Method, Iterator , and Proxy.

这些模式涵盖模式观察模式模板方法模式迭代模式代理模式

The problem with this line of code is that the variable instance can become non-null before the body of the Singleton constructor executes.

代码问题Singleton构造函数执行之前变量instance可能成为null

Upon failure, a singleton must be restarted on the same server or migrated to a new server.

失败时候独立对象必须一个服务器或者移植服务器

Changing from singleton to multiple elements affects results that will have more instances of the same element.

使结果出现同一元素多个实例

The component consists of a singleton class named PoIdGenerator, exposing a simple API, and responsible for managing blocks of POIDs.

这个组件PoIdGenerator单一组成公开一个简单API并且负责管理POID

热门查询