This is a typical example of the Factory Method Pattern.
这是个典型的Factory方法模式实例。
Now, let us make sense of this definition for the Factory Method pattern.
现在,让我们在这个意义上定义的工厂方法模式。
Then, I use the factory method pattern so that the coupling is with the interface.
然后再使用工厂方法模式,这样耦合度就与界面相关联了。
To create an instance of the Factory Method Pattern, perform the same steps as for the Singleton Pattern.
要创建Factory方法模式的实例,执行同Singleton模式相同的步骤。
The factory method pattern, as its name implies, defines the implementation of a method used to churn out objects.
而工厂方法模式,顾名思义,定义的是一个用来大量产出对象的方法的实现。
The Factory Method Pattern defines an interface for creating an object, but lets subclasses decide which class to instantiate.
工厂方法模式定义了一个创建对象的接口,但由子类决定实例化的逻辑。
You use the factory method pattern when an application needs to create objects whose type depend on the implementation of subclasses.
您可以在应用程序需要创建其类型依赖于子类的实现的对象时,使用工厂方法模式。
It describes two kinds of design patterns in COM in detail: Factory Method pattern and Proxy pattern, and tells how to realize the former.
接着具体讲述了组件对象模型中使用的两种设计模式:工厂方法模式和代理模式。
Concrete classes provide the appropriate implementation for their respective base class. The Factory Method Pattern consists of the following classes.
concrete类为它们各自的基类提供恰当的实现。
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方法模式是一个创建的模式,它定义一个用来创建对象的接口,而让子类来决定实例化哪个类。
Create the SecurityManager instance based on the configuration (using Shiro’s Factory concept that represents the Factory Method design pattern).
根据配置创建SecurityManager实例(使用Shiro的工厂概念,它表述了 工厂方法设计模式);
What's the right way to use the Factory method design pattern?
使用工厂方法设计模式的正确方法是什么?
The "Cockerel design" is manufactured by hand during 2007-2008 at the Old Factory, in the museum part of Jingdezhen area, the plates moulded by hand and the pattern put on with a paper method.
该公鸡图案是2007-2008年期间在景德镇博物馆的一部分,即为老瓷器厂内手工绘画而成,器形用模具而成并用纸贴固定图案的方法。
The "Cockerel design" is manufactured by hand during 2007-2008 at the Old Factory, in the museum part of Jingdezhen area, the plates moulded by hand and the pattern put on with a paper method.
该公鸡图案是2007-2008年期间在景德镇博物馆的一部分,即为老瓷器厂内手工绘画而成,器形用模具而成并用纸贴固定图案的方法。
应用推荐