观察者模式在Java事件处理中的应用研究  被引量:11

Application Research of Observer Design Pattern in Java Event Handling

在线阅读下载全文

作  者:欧阳宏基[1] 杨卫忠 赵蔷[1] 

机构地区:[1]咸阳师范学院信息工程学院,咸阳712000 [2]陕西省高速公路建设集团公司服务区管理分公司,西安710061

出  处:《微处理机》2013年第4期77-79,共3页Microprocessors

基  金:陕西省教育厅专项科研计划项目(09JK811)

摘  要:分析了观察者(Observer)设计模式的各组成部分和应用场景,探讨了Java事件处理机制的原理以及事件源、事件、监听器与观察者设计模式中各角色的对应关系,给出了利用观察者模式实现Java事件处理机制的三种方式并分析了各自的优缺点。Analyzed the composition of each part of the Observer design pattern and its application scenarios,explored the correspondence between Java event handling mechanism of principle as well as the source of event,event,event listener with the Observer design pattern role.Given three ways of the use of Observer mode to achieve the mechanism of the Java event handling and analyzed their respective advantages and disadvantages.

关 键 词:观察者模式 事件源 事件 监听器 事件处理机制 

分 类 号:TP391[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象