在软件系统开发中,不同模块间需要进行信息的交互、数据的传递,并处理不同情况发生时的逻辑关系。尤其涉及多级模块协调同步时,这种协同响应机制就更为复杂。基于Java语言的属性事件协同技术能有效处理此类问题。通过构造共享的属性事件池,利用事件的触发与响应机制实现不同模块间的协同沟通。对该技术的构思、技术过程及基于Java语言的实现进行了介绍。
In the process of software development, the design messages exchanging and data transferring among consisting modules is the most important part. Especially, in the implementation of cooperation of multiple modules, the implementation technologies are even more complex. The property event features of Java programming language can greatly simple such job. By constructing a shared property event pool and utilizing the event triggering and responding mechanism, multiple modules can efficiently share messages and data, and be able to cooperate orderly. The Design of such cooperation technology was discussed, and the involved key technologies, implementing processes and source codes were presented.