您要查找的是不是:
- The Factory Method Pattern defines an interface for creating an object, but lets subclasses decide which class to instantiate. 工厂方法模式定义了一个创建对象的接口,但由子类决定实例化的逻辑。
- factory method pattern 工厂方法模式
- Factory Method lets a class defer instantiation to subclasses. 通过重新实现子类中的接口,创建什么样的对象。
- May call the factory method to create a Product object. 可以调用工厂方法来创建一个产品对象。
- In this article, software consultants Alexander Day Chaffee and William Pietri present a refactoring technique to create mock objects based on the factory method design pattern. 在本文中,软件顾问Alexander Day Chaffee和William Pietri将演示一种重构技术,该技术根据工厂方法设计模式来创建模仿对象。
- Are constructed using factory methods from. 中的工厂方法构造的。
- The direct method pattern is shown as Exhibit 11-6, and the indirect method pattern is shown as Exhibit 11-7. 直接法下的现金流量表如表11-6所示,间接法下的现金流量表如表11-7。
- Assure that the factory method is accessible to the target object and its subclasses. 确保目标对象及其子类可以访问工厂方法。
- This is a hybrid of the artisan and factory methods. 这是上述两种生产方式的结合。
- The static modifier is used for the factorial method. static修饰符用于阶乘方法。
- Now consider a variant of this where instead of using a constructor, Spring is told to call a static factory method to return an instance of the object. 现在考虑一下替换掉构造函数的变体,Spring被告知调用一个静态工厂方法来返回一个对象的实例
- Extract the creation code into a factory method, override this factory method in a test subclass, and then make the overridden method return a mock object instead. 将创建代码抽取到工厂方法,在测试子类中覆盖该工厂方法,然后使被覆盖的方法返回模仿对象。
- Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory method lets a class defer instantiation to subclasses. 定义一个用于创建对象的接口,让子类决定实例化哪一个类。
- It is now our aim to set up a factory. 我们现在的目的是创办一座工厂。
- Holographic Method Pattern Measurement Equipments 全像方式图样量测设备
- The mechanism for supplying (optional) arguments to the factory method, or setting properties of the object instance after it has been returned from the factory, will be described shortly. 至于为工厂方法提供参数(可选的),以及对象实例被工厂方法返回后设置该实例的属性,将会在后面叙述。
- Speckle method pattern measurement equipment 斑点图形量测设备球面运动链
- A second disadvantage of static factory methods is that they are not readily distinguishable from other static methods. 第二个缺点是,它们与其它的静态方法没有任何区别。
- The method seems good but it needs to be tried out. 这个方法似乎不错,但需要试验一下。
- One advantage of static factory methods is that, unlike constructors, they have names. 静态工厂方法的一个好处是,与构造函数不同,静态工厂方法具有名字。