Observer and proxy patterns pack a double punch to ease implementation 采用观察者设计模式和代理设计模式简化实现
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 观察者设计模式定义了事件侦听器与事件创建者之间的多对一依赖关系。
Implementing the observer design pattern is fairly straightforward when the entire application is written in the java language 如果整个应用程序都使用java编程语言编写,实现观察者设计模式相当简单。