• The design of this class ensures that only one Singleton object is ever created.

    此类设计确保创建一个Singleton对象

    youdao

  • So if you serialize one singleton twice, the two serialized objects take on separate identities.

    所以如果两次序列化一个单例对象序列化得到的对象会持有两个不同标识

    youdao

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

    如其名称所暗示想要特别类的仅仅一个实例时,才使用Singleton模式

    youdao

  • It is often seen as an antidote for many of the problems that using Singleton brings in its wake (and, as an aside, Singleton was one pattern we did _not_ include in the book :->).

    常常被视为使用Singleton之后带来许多问题毒剂(并且作为题外话Singleton我们没有包含本书中的一个模式:->)。

    youdao

  • 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.

    例模式非常有用设计模式,它允许对外提供实例但是犯的错误在于不止一个实例创建。

    youdao

  • This class is a singleton, meaning there's only one map of running server instances for all projects.

    惟一意味着所有项目正在运行服务器实例只有一个惟一的映射

    youdao

  • After discussing how to implement the singleton, I'll go over the sometimes surprising causes for the phenomena one by one, showing you how they occur and how you can avoid making those mistakes.

    讨论了如何实现例模式之后,我会逐一介绍这些时而出现诡异现象讲解它们怎么出现以及如何避免犯错。

    youdao

  • One of the things we are working on is support for clustered singleton services.

    我们正在件事支持集群单例服务。

    youdao

  • We don't really need more than one instance here, so a singleton is fine.

    我们实际上并不需要更多实例所以单体模式不错

    youdao

  • The first component to move towards the service locator design, and away from its singleton origins, is the one that depends on no other singletons, yet may be depended by other singletons.

    迈向服务定位器设计摆脱单件血统第一组件依赖其它单件其它单件依赖的组件。

    youdao

  • One common use is for storing a singleton of a type that is not thread-safe.

    一种常见用法用于存储线程安全类型例。

    youdao

  • These requests for a token are serviced by a singleton class named Dashboard, which manages the status of the endpoints of one or several groups.

    获取请求一个名为Dashboard单态进行处理,该类负责管理多个端点状态

    youdao

  • For event sequencing to work properly, this value must remain one so that all requests are processed for sequencing by the same singleton.

    为了事件排序正确工作必须保持为1以便所有请求相同singleton排序处理

    youdao

  • We made our database a singleton in order to limit the database class to only one instance.

    我们数据库当作一个实例对象,database限制1个实例。

    youdao

  • If you use singleton aspects (the default), any change you make to an aspect's fields, such as replacing one with a mock, must be undone at the end of the test.

    如果使用单元素方面(默认的),那么对于方面字段所有改变mock替换一个字段,测试结束时都必须撤销

    youdao

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

    相反Scala支持单例模式,可以应用于那些类型只有实例情况

    youdao

  • The singleton pattern is probably one of the most often used OOP design patterns; it restricts the number of object instances of a class to one.

    模式可能常用OOP设计模式之一了;限制一个对象实例只能1。

    youdao

  • 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模式

    youdao

  • Using the Singleton pattern we guarantee that no matter how many times the BusinessLayerProxy tries to create a CommandFactory, only one instance will exist.

    使用Singleton模式我们可以保证无论BusinessLayerProxy多少次尝试建立CommandFactory,也存在一个实例。

    youdao

  • Singleton Pattern Ensure a class has one instance, and provide a global point of access to it.

    确保只有实例而且自行实例化并整个系统提供这个实例。

    youdao

  • The first one is a pointer to the object that you will be returning and that will implement a singleton .

    第一对象返回实现一个单身指针

    youdao

  • Classes implementing Singleton pattern will ensure that only one instance of the object ever exists at any one time.

    使用类来实现单例模式可以确保在任何时间只有一个实例对象

    youdao

  • Singleton: one instance of a class or one value accessible globally in an application.

    例:保证仅有实例,并提供一个访问全局访问点。

    youdao

  • Wareham RSPB nature reserve worker Mark Singleton said: 'This is the first one that has been found in Dorset in 35 years.

    韦勒姆皇家鸟类保护协会自然保护区工人马克·辛格尔顿'赛特35年来发现第一只。

    youdao

  • In a bucket chart, the planets are arranged in one half of the chart with one planet called a "singleton" is alone on the opposite side.

    提桶型本命上,其他星星都集中分布在盘的半边里,只留下一边

    youdao

  • A singleton class means that it is designed to have only one instance throughout the lifetime of the program.

    单独设计了程序整个一生只有实例

    youdao

  • All calls to a singleton object are handled by one instance of that object.

    所有单一物件呼叫都是物件的一个执行个体所处理

    youdao

  • All calls to a singleton object are handled by one instance of that object.

    所有单一物件呼叫都是物件的一个执行个体所处理

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定