反应器模式正好适用于这一功能。
图3显示了迭代器模式的类图。
图4显示了装饰器模式的类图。
访问器模式如图2 所示。
第四种模式是服务器模式。
用于代码生成的模型-视图-控制器模式。
为了处理资源,构造器使用了访问器模式。
To process the resources, the builder uses the visitor pattern.
DPTK设计为使用模型-视图-控制器模式。
启动计算机时发出以下命令以进入调试器模式。
Issue the following commands when booting the machine to make it go into debugger mode.
装饰器模式的优点是可以轻松地同时跟踪库的多个装饰器。
An advantage of the decorator pattern is that you can easily tack on more than one decorator to the base at a time.
它是披着羊皮的狼,只不过是客户-服务器模式。
可以用熟悉的侦听器模式在GWT中执行事件处理。
You use the familiar Listener pattern to perform event handling in GWT.
XML遵循矩阵查看器模式(XSD)的数据格式。
The XML follows the data format of the matrix viewer schema (XSD).
服务器模式非常适合创建中心备份服务器或项目存储库。
Server mode is ideal for creating a central backup server or project repository.
服务转换器模式也是通过对简单服务代理模式扩展而来。
The service translator pattern also extends the simple service proxy pattern.
这将退出DB 2命令行处理器模式,以便可以更改目录。
This exits the DB2 command line processor mode so that you can change directories.
原型使用SAX解析器机制1和构造器模式来执行该任务。
The prototype USES a SAX parser mechanism 1 coupled with the builder pattern to perform this task.
拦截器模式在此后会得到应用,以实现在扩展性方面的核心项目目标。
The Interceptor pattern was then applied to achieve a core project goal of extensibility.
大多数LDAP服务器模式支持包含用户电子邮件地址的属性。
Most LDAP server schemas support an attribute holding the user's email address.
这些常见的选择器模式可以加以组合,形成复杂的选择器,例如
These common selector patterns can be combined to build complex selectors, such as
ObjectGrid以客户端服务器模式运行时的工作方式。
迭代器模式将提供一种通过对象集合或对象数组封装迭代的方法。
The iterator pattern provides a way to encapsulate looping through a collection or array of objects.
矩阵查看器模式和代码也处理消息,尽管在本例中不包含这部分。
The matrix viewer schema and code also handle messages, though they were not included in this example.
访问器模式实现了层次结构的遍历,并将访问器指定的操作应用于每个节点。
The visitor pattern implements a walk through a hierarchy in which the visitor specifies an operation to apply to the nodes.
编辑流时,根据执行的具体任务,通常需要在两个编辑器模式之间持续来回切换。
When editing flows, you generally tend to switch back and forth between the two editor modes continually, depending on the specific task you are performing.
不过,观察者模式与单个事件源关联,而反应器模式则与多个事件源关联。
The Observer pattern is associated with a single source of events, however, whereas the Reactor pattern is associated with multiple sources of events.
ESB模式由另外三种模式组成:中介器模式、路由器模式和适配器模式。
The ESB pattern comprises three other pat- terns: Mediator, Router, and Adapter.
消息检查器模式用于处理企业内的Web服务调用,以实现企业内部目的。
The message inspector pattern is used to handle Web service invocations within enterprises, for intra-enterprise purposes.
与反应器模式一致,Selector类是Channel的多路复用器。
In keeping with the Reactor pattern, a Selector class is a multiplexor of Channels.
XPath解释器还包括扩展Gamma等的基本解释器模式的优化特性。
The XPath interpreter also includes optimization features that extend the basic interpreter pattern of Gamma et al.
应用推荐