• A static factory method on a generic or a non-generic class?

    一个静态的泛型和非泛型类工厂方法?

    youdao

  • Abstract Factory vs Factory method: Composition vs Inplement?

    抽象工厂与工厂方法:组成与实现?

    youdao

  • Factory Method lets a class defer instantiation to subclasses.

    工厂方法让一个类的实例化延迟到子类中进行。

    youdao

  • A factory method, by convention, begins with create and returns the interface.

    根据约定,factory方法将以create为开头并返回接口。

    youdao

  • In other words, Factory Method lets a class defer the instantiation to its subclasses.

    换句话说,Factory方法令一个类实例化到其子类。

    youdao

  • This section offers a step-by-step description of the Extract and Override factory method refactoring.

    本节将循序渐进地描述“抽取”和“覆盖”工厂方法重构。

    youdao

  • CreateInstance is a factory method that returns an instance of PeerNetwork with a specified peer name.

    createInstance是个工厂(factory)方法,它返回一个带有指定对等点名称的PeerNet work实例。

    youdao

  • This factory method instantiates the collection of course objects by delegating the work to the service layer.

    该工厂方法通过将这项工作委托给服务层来实例化课程对象集合。

    youdao

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

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

    youdao

  • The factory method pattern, as its name implies, defines the implementation of a method used to churn out objects.

    而工厂方法模式,顾名思义,定义的是一个用来大量产出对象的方法的实现。

    youdao

  • The solution here is to provide a method parameter with a factory method for the items to read, as shown in Listing 2.

    这里的解决方案是为要读取的条目提供一个带工厂方法的方法参数,如清单2所示。

    youdao

  • The first class USES a constructor to initialize the properties, and the second class USES a static factory method.

    第一个类使用构造函数初始化属性,第二个类使用静态工厂方法。

    youdao

  • The example gave a client and server bundle (both in the same VM), and the client found the server via a factory method.

    文中的例子给出了一个client和一个serverbundle(两者在同一个VM中),client通过工厂方法找到server。

    youdao

  • In fact, many would have started this approach with a factory object, rather than a factory method — we did, but soon backed away.

    实际上,许多人已经用工厂对象来着手这种方法,而不是用工厂方法—我们以前是这样做的,但很快就放弃了。

    youdao

  • Optional: create a unit test to assure that the original target object's factory method still returns the correct, non-mock object.

    可选的:创建单元测试以确保原始目标对象的工厂方法仍返回正确的非模仿对象。

    youdao

  • The Factory Method Pattern defines an interface for creating an object, but lets subclasses decide which class to instantiate.

    工厂方法模式定义了一个创建对象的接口,但由子类决定实例化的逻辑。

    youdao

  • You use the factory method pattern when an application needs to create objects whose type depend on the implementation of subclasses.

    您可以在应用程序需要创建其类型依赖于子类的实现的对象时,使用工厂方法模式。

    youdao

  • In this way, the object returned from the static factory method could implement any number of interfaces defined when I create the proxy.

    用这种方式,静态工厂方法返回的对象可以实现建立代理时所定义的任意数量的接口。

    youdao

  • You can retrieve an MXBean instance from a static factory method that gives you direct access to the locally running JVM's MXBean interface.

    您可以从一个静态工厂方法获得一个MXBean实例,该方法可以使您直接访问本地运行的JVM的MXBean接口。

    youdao

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

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

    youdao

  • This can be as simple as invoking the base class's factory method and asserting that the returned object is of the correct type. For example.

    这与调用基类的工厂方法并断言返回对象具有正确类型一样简单。

    youdao

  • It describes two kinds of design patterns in COM in detail: Factory Method pattern and Proxy pattern, and tells how to realize the former.

    接着具体讲述了组件对象模型中使用的两种设计模式:工厂方法模式和代理模式。

    youdao

  • Create the SecurityManager instance based on the configuration (using Shiro’s Factory concept that represents the Factory Method design pattern).

    根据配置创建SecurityManager实例(使用Shiro的工厂概念,它表述了 工厂方法设计模式);

    youdao

  • Patterns (such as the Factory Method mentioned in this article) are an important tool for understanding and discussing object-oriented design.

    模式(如本文中提到的Factory Method模式)是理解和讨论面向对象设计的重要工具。

    youdao

  • Concrete classes provide the appropriate implementation for their respective base class. The Factory Method Pattern consists of the following classes.

    concrete类为它们各自的基类提供恰当的实现。

    youdao

  • Define an interface for creating an object, but let subclass decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.

    定义一个用于创建对象的接口,让子类决定实例化哪一个类。工厂方法使一个类的实例化延迟到其子类。

    youdao

  • Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.

    定义一个用于创建对象的接口,让子类决定实例化哪一个类。工厂方法使一个类的实例化延迟到其子类。

    youdao

  • The Factory Method Pattern is a creational pattern that defines an interface for creating an object but lets subclasses decide which actual class to instantiate.

    Factory方法模式是一个创建的模式,它定义一个用来创建对象的接口,而让子类来决定实例化哪个类。

    youdao

  • The Factory Method Pattern is a creational pattern that defines an interface for creating an object but lets subclasses decide which actual class to instantiate.

    Factory方法模式是一个创建的模式,它定义一个用来创建对象的接口,而让子类来决定实例化哪个类。

    youdao

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

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

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