observer design pattern 中文意思是什麼
observer design pattern
解釋
基於觀察者設計模式-
Jobserver is one of two abstract classes that implement the observer design pattern. ? a class that extends jobserver is able to attach itself to a jobservable object and observe the state of the observable object. ? this is an equivalent of the jobserver object listening for an event fired by the jobservable class it is attached to
實現觀察者模式的兩個抽象類之一,從觀察者類擴展的類能夠負載於一個觀察對象,並且能夠觀察對象的狀態變化,這相當于觀察者對象接受由被觀察對象觸發的事件。 -
The observer design pattern
觀察者設計模式 -
By using the observer design pattern, you ve reduced the coupling between the event source and listeners
通過使用觀察者設計模式,您已經減少了事件源與偵聽器之間的耦合。 -
The observer design pattern defines a many - to - one dependency between event listeners and an event creator
觀察者設計模式定義了事件偵聽器與事件創建者之間的多對一依賴關系。 -
Those familiar with design patterns in object - oriented programming will notice the observer design pattern
(那些熟悉面向對象編程中的設計模式的人將注意到觀察程序設計模式。 -
Implementing the observer design pattern is fairly straightforward when the entire application is written in the java language
如果整個應用程序都使用java編程語言編寫,實現觀察者設計模式相當簡單。 -
The java programming language provides support for defining event listeners based on the observer design pattern, but this isn t sufficient when you need to use objects written in other languages
Java編程語言為定義基於觀察者設計模式( observer design pattern )的事件偵聽器提供了支持,但當您需要使用以其他語言編寫的對象時,這還不夠。
分享友人