The invention discloses a
software architecture method based on a
microkernel and a plug-in, which comprises the following steps: on the basis of establishing a dynamic plug-in model, firstly, constructing a basic framework application program for loading a plug-in and providing a necessary execution environment for the operation of the plug-in; secondly, formulating naming rules of the plug-ins,and ensuring uniqueness of plug-in naming of different developers; secondly, sequentially formulating a physical organization rule of the plug-in, constructing a plug-in life cycle layer, constructinga plug-in
service layer and constructing a theme event
service layer; and finally, constructing a plug-in container, adding a cross-process
message forwarding function in the plug-in container and the main frame, and providing a cross-process unified message interaction service. According to the method,
software framework core service functions such as theme event interaction and cross-process unified interaction are realized, and the method has the characteristics of high
reusability, high expansibility, dynamic plug-in loading and the like of an OSGI technology, and also has cross-platform,high-efficiency and cross-process capabilities.