• Using C# 2.0 Generics to achieve a reusable Singleton pattern

    使用 C# 2.0泛型完成单例模式重用

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

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

  • Typical examples include a cached DAO, cache of JNDI references, or any sort of common factory or other component that needs to use the Singleton pattern.

    典型例子缓存DAO,JNDI引用缓存或者任何类型公共工厂或者其他需要使用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

  • Since it is thread safe by design, you might cache it in a public static final variable, or wrap it in a singleton pattern after creation for later access.

    因为根据设计线程安全的,创建之后可以把它存在一个公共静态最终变量中,或者包装实例模式以供以后访问

    youdao

  • This is a class that can be used repeatedly to instantiate a class as a singleton without having to re-write the singleton pattern code for that specific class.

    一个可用创建实例需要每个特定的重写单例模式代码可重用的类。

    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

  • The singleton pattern ensures that only a single instance of a class is normally used by an application, but still allows alternate instances to be created as required.

    元素模式可以确保应用程序通常使用单个实例但是仍然允许根据需要创建备用实例

    youdao

  • Unless the Settings wrapper class is designed using the singleton pattern, there can be multiple instances of the same application Settings class in a single application.

    除非使用单一实例模式来设计设置包装,否则单个应用程序可能存在同一个应用程序设置类多个实例。

    youdao

  • The framework we'll create is a simple 3-tier framework that processes business logic using three patterns: the 3-layer architecture pattern, the Singleton pattern, and the Command pattern.

    我们将要建立一个简单的3-tier框架,它使用三种模式处理业务逻辑:3-layer体系结构模式Singleton模式Command模式。

    youdao

  • The Singleton creation pattern is a common programming idiom.

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

    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

  • 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

  • For example, according to the pattern catalog, the State pattern is often related to Flyweight and Singleton [GoF].

    例如通过模式目录State模式经常涉及FlyweightSingleton [g oF]。

    youdao

  • This is demonstrated using the ExceptionHandler class, which again adopts a singleton design pattern.

    使用exceptionhandler可以展示一点,该类也采用singleton设计模式

    youdao

  • Hence, SignalTranslator adopts a singleton design pattern.

    因此SignalTranslator采用了singleton设计模式。

    youdao

  • You will design the object as a singleton (this design pattern will limit this object to a single instance) and have the appropriate retrieve and store methods to manipulate the cache.

    对象设计个单子实例singleton)(这个设计模式将把这个对象限制一个单个实例中)使用合适的检索存储方法对高速缓存进行操作

    youdao

  • Don't over - "design pattern" applications - Sometimes it's just easier to write a simple algorithm than it is to incorporate a singleton or facade pattern.

    不要过于注重程序的“设计模式”。有时候一个简单算法,要引入某种模式容易。

    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

  • 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

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

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

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