The "bridge" role from the broker pattern was then implemented using the template method pattern to support remote service invocation using several different underlying communication technologies.
中介模式的“桥接”角色是使用模板方法模式实现的,它通过几种不同的基础通信技术,为远程服务调用提供支持。
Template method pattern of GOF and the realization of template method pattern in back tracing algorithm are introduced.
在此介绍采用GOF的模板方法模式及采用回溯算法的模板方法模式的设计与实现。
A servlet that USES the Template Method pattern to encapsulate a three-step workflow.
一个采用Template Method模式的Servlet封装一个包含三个步骤的工作流。
Similarly, classes using the Template Method pattern contain a series of steps, and some are left blank.
类似地,采用Template Method模式的类也包含一系列的步骤,而其余的则留空。
The Template Method pattern suggests that I should move common boilerplate code up the inheritance hierarchy, deferring algorithmic details to child classes.
Template Method模式建议,应当将公共模板代码移到继承层次结构之上,将算法细节推迟到子类。
The Strategy design pattern takes a little more work to implement than the Template Method pattern, but it is more flexible.
策略设计模式比模板方法模式花费了更多的工作去实现,但是它也更灵活。
Now, given that we're using the Template Method pattern, think of the methods in Listing 4 as the blanks and the code in Listing 5 as the story that assembles them
现在,假设我们正在使用Template Method模式,那么我们可以将清单4中的方法看作是空白,而清单5中的代码是组成故事的情节
The Template Method pattern defines the skeleton of an algorithm in a base class, using abstract methods and overriding to defer individual details to child classes.
Template Method模式定义了基类算法的骨架,使用了抽象方法和覆盖将具体细节放到子类中。
The Template Method pattern defines the skeleton of an algorithm in a base class, using abstract methods and overriding to defer individual details to child classes.
Template Method模式定义了基类算法的骨架,使用了抽象方法和覆盖将具体细节放到子类中。
应用推荐