- 重点词汇
- beforeprep. 在…之前;先于,优于;当着…的面;与其…;
- patternn.模式;范例;图案;模型;样品;
- forconj.因为,由于;
- andconj. 和;与;而且;于是;然后
- go through经历;度过;通读;
- alsoadv.也;同样;并且;
- youpron.你;你们,您们;各位;大家;
- appropriateadj. 适当的;恰当的;合适的;
- 相关例句
用这种方式,静态工厂方法返回的对象可以实现建立代理时所定义的任意数量的接口。
互联网摘选
设计模式中的工厂方法模式为系统结构提供了非常灵活强大的动态扩展机制,采用。
互联网摘选
In other words, Factory Method lets a class defer the instantiation to its subclasses.
换句话说,Factory方法令一个类实例化到其子类。
互联网摘选
使用父类的需求在Java语言中经常出现,特别是在使用了Factory Method模式的情况下。
互联网摘选
而工厂方法模式,顾名思义,定义的是一个用来大量产出对象的方法的实现。
互联网摘选
要创建Factory方法模式的实例,执行同Singleton模式相同的步骤。
互联网摘选
您可以在应用程序需要创建其类型依赖于子类的实现的对象时,使用工厂方法模式。
互联网摘选
Factory Method is a structural pattern that lets a class defer instantiation to subclasses.
工厂方法(Factory Method)是一种结构模式,它使一个类延迟实例化到子类。
互联网摘选
该工厂方法通过将这项工作委托给服务层来实例化课程对象集合。
互联网摘选
本节将循序渐进地描述“抽取”和“覆盖”工厂方法重构。
互联网摘选
Some of the more common ones, like Factory Method, are ubiquitous, even in the Java language itself.
一些更为通用的方式,如工厂方法则是普便存在的,甚至存在于Java语言本身。
互联网摘选
Assure that the factory method is accessible to the target object and its subclasses.
确保目标对象及其子类可以访问工厂方法。
互联网摘选
The class returned by the factory method is an adapter to a particular cloud service.
工厂方法返回的类用于一个特定于服务的适配器。
互联网摘选
For example, suppose we want to add a factory method to a List class.
例如,假定想将factory方法添加到List类中。
互联网摘选
Then, I use the factory method pattern so that the coupling is with the interface.
然后再使用工厂方法模式,这样耦合度就与界面相关联了。
互联网摘选
The Extraction of Product Machining Information Based on Factory Method Design Pattern
基于工厂设计模式的产品加工信息提取
互联网摘选
Now, let us make sense of this definition for the Factory Method pattern.
现在,让我们在这个意义上定义的工厂方法模式。
互联网摘选
单例、生成器和工厂方法设计模式被视为是创建型的模式,因它们可协助对象的构建。
互联网摘选