| The theory of program mining, based on the development of components technology, has become one of the hot spots in the area of software engineering. The basic concepts are: analyzing requirements from users; then searching for components in the Internet or component libraries; finally, composing them into the program that meets demands. Therefore, the technology of program mining is of great signification to improve the quality and productivity of the software development.There are several steps in program mining, such as mining for components, analyzing requirements, building the composition structure, composing components, validating program and so on. Components composition is the key to this theory. According to the composition structure, the loosing components are composed into an organic system, then by adding glue codes realizes the composition logic construct that defined in the system structure. The last step is compiling and implementing the system into user's running platform.The concept of component composition involves the description of software architecture, composition mechanisms, components retrieving, composition structure checking and compiling. This paper discusses core technologies of the composition: composition mechanisms, composition structures description, composition mechanisms mapping and the conversion of datum to fit for the composition. In the end, the paper presents a design of composition tool framework and implements a running platform to validate the rationality and feasibility of this thought.Based on the characteristics of software components and structured methodology, four methods of composition mechanisms are proposed to integrate components, which are sequence, alternate, loop and parallel. And then the paper focuses on the formalized composition description and on how to describe the composition structure by XML.Successively, based on Java Message Service (JMS) prototype framework, a design of components composition platform has been brought forth. The architecture of software will be mapped to components, adapters, connectors and composition descriptions. All of them arecontrolled by the controller unit and communicate through asynchronous message service provided by JMS. This part also explains the mapping algorism, the message format, the data conversation and so on. |