观察器是用来处理体系结构内的事件通知的关键模式。
Observer was the key pattern for handling notification of events within the architecture.
使用观察器以创建能为多个订阅者生成事件的可重用服务,而无需(或很少)依赖于其他服务,从而带来更多的重用机会。
Use of observer enabled the creation of reusable services that generated events for multiple subscribers, with few or no dependencies on other services, resulting in greater reuse opportunities.
通知事件通过回调型显式接口以及与之对应的代理和调用程序对象,与观察器进行通信。
Notification events were communicated to observers with call-back explicit interfaces and their respective proxy and invoker objects.
对于从交易系统客户端进入es b流的请求,BusinessEvents是外部服务,或者更为准确地说,是在不影响流的情况下检测事件模式的观察器。
For the requests coming into ESB flow from the trading system client, Business events is an external service, or more precisely, an observer detecting patterns of events without influencing the flow.
观察演示代码中的通配符,客户端还订阅了额外的关闭事件,该事件是由MIDI文件播放器在文件的末尾发布的。
Observe that in the demo code, the client also subscribes to an additional closing event that is published by the MIDI file player at the end of file.
这是一个关键性的链接点,可基于传感器事件的相关性连接新业务可见性的观察以影响业务过程的更改。
This is a critical linkage point to tie the observation of new business insights (or visibility) based on the correlation of sensor events to affecting business process change.
观察器对象订阅那些报告所监视实体中任何状态更改的事件,然后基于那些事件中的信息更新自己的状态。
The observer object subscribes to events that report any state changes in the monitored entity, and then updates its own state based on information in those events.
观察器此后将得到应用,它使用经过良好定义的接口,支持向多个订阅者异步发出事件通知。
Observer was then applied to support notification of events asynchronously to multiple subscribers using well-defined interfaces.
不过,观察者模式与单个事件源关联,而反应器模式则与多个事件源关联。
The Observer pattern is associated with a single source of events, however, whereas the Reactor pattern is associated with multiple sources of events.
正如清单3所示,DOMActivate是事件,消息元素是处理程序,父触发器是观察者。
As shown in Listing 3, DOMActivate is the event, message element is the handler, and parent trigger is the observer.
Swing框架以事件侦听器的形式广泛利用了观察者模式(也称为发布-订阅模式)。
The Swing framework makes extensive use of the Observer pattern (also known as the publish-subscribe pattern) in the form of event listeners.
为确保监视器已被激活,依次为每个realserver启用并禁用Apache进程,观察每个控制器对事件的反应。
To ensure monitoring has been activated, enable and disable the Apache process on each of the realservers in sequence, observing each of the directors for their reaction to the events.
CEI包含事件浏览器应用程序——CBEViewer . ear文件,它可被用于观察cei存储的事件。
CEI includes an event browser application — a CBEViewer.ear file that can be used to view the events that the CEI stores.
结果在6个月的随访中,所有患者未观察到与起搏器相关的房性和室性心律失常及其他不良反应事件。
Results Patients were followed up for 6 months, and no pacemaker-associated atrial and ventricular arrhythmias and other adverse events were observed.
结果在6个月的随访中,所有患者未观察到与起搏器相关的房性和室性心律失常及其他不良反应事件。
Results Patients were followed up for 6 months, and no pacemaker-associated atrial and ventricular arrhythmias and other adverse events were observed.
应用推荐