Before you generate the code and go through it, be aware that you also need to add the appropriate methods for the Factory Method Pattern.

  • 在您生成代码并检查之前,要知道您也需要为Factory方法模式添加适当的方法。
  • 来源:互联网摘选更新时间:2026-07-01 14:39:43

  • 重点词汇
  • beforeprep. 在…之前;先于,优于;当着…的面;与其…;
  • patternn.模式;范例;图案;模型;样品;
  • forconj.因为,由于;
  • andconj. 和;与;而且;于是;然后
  • go through经历;度过;通读;
  • alsoadv.也;同样;并且;
  • youpron.你;你们,您们;各位;大家;
  • appropriateadj. 适当的;恰当的;合适的;
  • 相关例句
1、

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

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

互联网摘选

2、

The factory method pattern, an element of the design pattern, provides a very flexible and powerful dynamic-expanding mechanism for system structure.

设计模式中的工厂方法模式为系统结构提供了非常灵活强大的动态扩展机制,采用。

互联网摘选

3、

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

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

互联网摘选

4、

The need for using a supertype arises frequently in the Java language, especially when the Factory Method pattern is used.

使用父类的需求在Java语言中经常出现,特别是在使用了Factory Method模式的情况下。

互联网摘选

5、

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

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

互联网摘选

6、

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

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

互联网摘选

7、

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

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

互联网摘选

8、

Factory Method is a structural pattern that lets a class defer instantiation to subclasses.

工厂方法(Factory Method)是一种结构模式,它使一个类延迟实例化到子类。

互联网摘选

9、

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

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

互联网摘选

10、

Refactoring: Extract and override factory method

重构:抽取和覆盖工厂方法

互联网摘选

11、

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

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

互联网摘选

12、

Some of the more common ones, like Factory Method, are ubiquitous, even in the Java language itself.

一些更为通用的方式,如工厂方法则是普便存在的,甚至存在于Java语言本身。

互联网摘选

13、

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

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

互联网摘选

14、

The class returned by the factory method is an adapter to a particular cloud service.

工厂方法返回的类用于一个特定于服务的适配器。

互联网摘选

15、

For example, suppose we want to add a factory method to a List class.

例如,假定想将factory方法添加到List类中。

互联网摘选

16、

Then, I use the factory method pattern so that the coupling is with the interface.

然后再使用工厂方法模式,这样耦合度就与界面相关联了。

互联网摘选

17、

This is a typical example of the Factory Method Pattern.

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

互联网摘选

18、

The Extraction of Product Machining Information Based on Factory Method Design Pattern

基于工厂设计模式的产品加工信息提取

互联网摘选

19、

Now, let us make sense of this definition for the Factory Method pattern.

现在,让我们在这个意义上定义的工厂方法模式。

互联网摘选

20、

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

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

互联网摘选

  • 今日热词
  • 热门搜索

英语网英语词典(dict.25820.com)为您提供在线翻译英语词典单词大全英译汉汉译英等英语服务!可按单词字数词义分类查询。支持lj:关键词格式查询例句。

用户反馈
请选择反馈类型(可多选):
您的联系方式:
反馈内容:
提交成功 小编会尽快处理
回到顶部
点击反馈