• Assure that the factory method is accessible to the target object and its subclasses.

    确保目标对象及其子类可以访问工厂方法。

    youdao

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

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

    youdao

  • Apply the Extract method refactoring to this creation code, creating the factory method (discussed on page 110 of Fowler's book; see the Resources section for more information).

    将抽取方法重构应用于这个创建代码,创建工厂方法(在Fowler书籍的第110页中讨论;有关更多信息,请参阅参考资料一节)。

    youdao

  • Once data is initialized, Seam can place the resulting object into one of the available scopes where it can be read over and over without further participation of the factory method.

    一旦初始化数据之后,Seam就可以将生成的对象放到一个可用的作用域中,然后就可以在其中反复读取,而不再需要借助工厂方法。

    youdao

  • At this point, you may be tempted to go one step further and replace the factory method with a full-fledged abstract factory object, as detailed in Design Patterns by Erich Gamma, et al.

    此时,您可能很想更进一步并用成熟的抽象工厂对象替换工厂方法,如ErichGamma等人在设计模式中详细描述的那样。

    youdao

  • Because we overrode the factory method to write this test, it turns out that we no longer have any test coverage of the original creation code (which is now inside the base class's factory method).

    因为我们覆盖了工厂方法来编写这个测试,所以其结果是:我们的测试不再包括任何原始创建代码(现在它在基类的工厂方法内部)。

    youdao

  • This is a typical example of the Factory Method Pattern.

    这是个典型的Factory方法模式实例。

    youdao

  • What's the right way to use the Factory method design pattern?

    使用工厂方法设计模式的正确方法是什么?

    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 Factory Method Pattern defines an interface for creating an object, but lets subclasses decide which class to instantiate.

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

    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

  • 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
- 来自原声例句
小调查
请问您想要如何调整此模块?

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

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