摘要
在面向对象的系统设计中,可复用性是至关重要的。首先结合一个实例,介绍了Java中常见的不可复用的事件处理方式,然后结合command设计模式与Java语言的反射技术,设计实现了一个可复用的事件处理框架。
One of the major goals of object - oriented development is that object - oriented development fields reusable solutions. This paper first introduced a familiar event handling that can not be reused in Java, then designed and implemented a reusable event handling using the command pattern and the reflection of Java.
出处
《信息技术》
2006年第7期34-37,共4页
Information Technology
关键词
复用
反射
事件处理
设计模式
reuse
reflection
event handling
design pattern