• The Singleton pattern is shown in Figure 5.

    Singleton模式如图5所示。

    youdao

  • The Singleton creation pattern is a common programming idiom.

    创建模式一个通用编程习语

    youdao

  • Create a private attribute for the Singleton Pattern called _instance.

    Singleton模式创建私有属性称为_ instance。

    youdao

  • It is actually the real name of the singleton instance of the Unit type!

    事实上Unit类型单体实例真正名字

    youdao

  • Doing so creates an instance of the Singleton Pattern in the Model Explorer.

    执行此操作将会模型浏览器中生成一个Singleton模式实例

    youdao

  • This is important because the singleton aspects are typically not garbage collected.

    一点重要,因为单体方面通常不会被垃圾收集。

    youdao

  • Being close to wild roses in appearance, the singleton fits the unfussy modern garden.

    这种样子野生蔷薇差不多的品种可以种植那些不是很讲究的现代花园

    youdao

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

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

    youdao

  • When copies of the singleton class run in multiple VMs, an instance is created for each machine.

    单例副本运行多个虚拟中时,每个虚拟机都会创建一个实例对象

    youdao

  • The constructor of BookWebApp gets the singleton instance of the book service implementation object.

    BookWebApp的构造函数获取这个图书服务实现对象singleton实例

    youdao

  • To create an instance of the Factory Method Pattern, perform the same steps as for the Singleton Pattern.

    创建Factory方法模式实例执行Singleton模式相同步骤

    youdao

  • Drag and drop the Singleton Pattern instance from the Pattern Explorer into the UML Class Diagram view.

    Singleton模式实例模式浏览器中UM l视图中

    youdao

  • Lines CA and D0 represent the inline constructor storing the values true and 5 into the Singleton object.

    CAd0行表示内联的构造函数,该构造函数将true5存储Singleton对象

    youdao

  • The major disadvantage of using a Singleton, as we did here, is that you must clear the Singleton between each test.

    正如我们在此所做使用Singleton主要缺点必须各次测试之间清除Singleton

    youdao

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

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

    youdao

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

    由于子类实例也是单例的实例,所以可能出现多个单例实例并存的情况。

    youdao

  • The code at BE allocates the memory from the heap for the Singleton object and stores a pointer to that memory in eax.

    be代码Singleton对象分配内存一个指向该块内存的指针存储到eax中。

    youdao

  • Listing 4 shows a version of the singleton that USES a method instead of an attribute to specify the appropriate class.

    清单4显示了使用方法而非属性指定适当单例

    youdao

  • Thread 1 completes the initialization of the Singleton object by running its constructor and returns a reference to it.

    线程1通过运行Singleton对象构造函数引用返回,来完成该对象的初始化。

    youdao

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

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

    youdao

  • To facilitate this, the plug-in class implements the singleton pattern: It stores a reference to itself in a private class variable.

    为了使一点更方便,插件实现模式(singletonpattern):私有类变量中存储一个自身引用

    youdao

  • The singleton provides us with the means to store another object that is used for the aggregation done in each UDF in the SQL statement.

    单件我们提供了种可以SQL 语句一个UDF 进行聚集计算时需要的数据存储另外对象当中的方式

    youdao

  • 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静态引用

    youdao

  • 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

    youdao

  • The singleton, builder, and factory method design patterns are considered creational patterns, as they assist in the construction of objects.

    例、生成器工厂方法设计模式视为是创建模式,因它们协助对象的构建

    youdao

  • The only other method (set in italics) in the class is used to get a reference to the singleton and to create it if it is not yet instantiated.

    该类仅剩方法(用斜体标识)用于获取单件的一个引用如果尚未实例化则创建

    youdao

  • 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的实例同样的。

    youdao

  • If you add database connections or use a JDBC driver that allows multithreading, the singleton can be easily adjusted to allow more connections.

    增加数据库连接或者改而使用支持多线程JDBC驱动器时例模式能够容易地适应这一变化。

    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

  • Then it shows how PHP V5.3's LSB feature resolves those issues, while showing implementations of the singleton and active record design patterns.

    然后展示PHPV5.3LSB特性给出单例活动记录设计模式。

    youdao

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

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

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