群发资讯网

返回主页
observer pattern
观察者模式:一种设计模式
常用释义
英式发音
美式发音
基本释义
  • 观察者模式:一种设计模式,用于在对象之间建立一对多的依赖关系,当一个对象的状态发生改变时,所有依赖于它的对象都会得到通知并自动更新。
例句
  • 1·Figure 1 illustrates how the Observer pattern works.
    图1显示了观察者模式的机制。
  • 2·Figure 5: Structural elements in the Observer pattern.
    图5:observer模式中的结构化元素。
  • 3·This general data pattern is a form of the Observer pattern.
    这种通用数据模式是Observer模式的一种形式。
  • 4·Here is a trait that implements the logic of the Observer Pattern.
    这里是一个实现了观察者模式逻辑的trait。
  • 5·Callbacks are really a special case of the Observer Pattern [GOF1995].
    回调其实是观察者模式[g OF 1995]的一个特例。
  • 6·A unique use of the Observer pattern is to implement it using web services.
    观察者的唯一使用之处就是在Web服务的实现中。
  • 7·Thus, at a high level, the Observer pattern provides a simple asynchronous model.
    因此,从一个较高的层次上,观察者模式提供了一种简单的异步模型。
  • 8·Observer : SPL suggests a standard way of implementing the observer pattern.
    观察者:SPL提出了实现观察者模式的标准。
  • 9·This style is similar to the Observer pattern in that it promotes a publish-subscribe way of working.
    这个风格与Observer模式十分相似,因为它促进一种发布-订阅的工作方式。
  • 10·Figure 6 is a UML sequence diagram showing how the structural elements within the Observer pattern collaborate.
    图6是一个UM l序列图,显示这个Observer模式中的结构元素是如何协作的。