CN-115718604-B - Dynamic expansion system and method
Abstract
The invention provides a dynamic expansion system and a method, which relate to the technical field of computers, wherein the system comprises a plug-in end and a platform end, and the plug-in end comprises a packaging module and a plug-in; the platform end comprises an uploading module, a management module and an operation and maintenance module, wherein the plug-in is used for expanding functions of the platform end, the packaging module is used for generating a plug-in installation package for the plug-in, the uploading module is used for uploading the plug-in installation package to the management module, the management module is used for loading and installing the plug-in installation package, and the operation and maintenance module is used for acquiring and calling data information of the installed plug-in of the management module. The invention calls the plug-ins through the operation and maintenance module, so that the relevance among the plug-ins is low, and the complete closed loop flow of loading and installing the plug-ins to the input system is formed through the sequential application of the packaging module, the uploading module, the management module and the operation and maintenance module, the plug-in installation and use operation is carried out when the system operates, and the core code of the system is not required to be modified, so that the automatic updating is realized, and the expansibility of the dynamic expansion system is improved.
Inventors
- ZHANG ZHILONG
- FANG JUNHAO
- MA BAOHUI
- CHAI ZHIPENG
Assignees
- 哈尔滨海邻科信息技术有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20221123
Claims (7)
- 1. The dynamic expansion system is characterized by comprising a plug-in end and a platform end, wherein the plug-in end is in communication connection with the platform end, the plug-in end comprises a packing module and a plug-in, the packing module is in communication connection with the plug-in, the platform end comprises an uploading module, a management module and an operation and maintenance module, and the uploading module, the management module and the operation and maintenance module are in communication connection in sequence; The plug-in is used for expanding the functions of the platform end; The packaging module is used for generating a plug-in installation package from the plug-ins; The uploading module is used for uploading the plug-in installation package to the management module; the management module is used for loading and installing the plug-in installation package; the operation and maintenance module is used for acquiring and calling the data information of the installed plug-in of the management module; The operation and maintenance module comprises a virtual machine unit and a plug-in operation and maintenance unit, wherein the virtual machine unit is in communication connection with the plug-in operation and maintenance unit, the virtual machine unit is integrated with a class loader, and the class loader is used for acquiring data information of the installed plug-in and uploading the data information to the plug-in operation and maintenance unit, and the plug-in operation and maintenance unit is used for calling the data information; The plug-in comprises Flyway components, and the Flyway components are used for independently loading initialization data of the plug-in; The platform end further comprises an insert ecological circle module, the insert ecological circle module is in communication connection with the management module, and the ecological circle module comprises an acquisition unit, an analysis unit, a compatible unit and an output unit; The acquisition unit is used for acquiring ecological circle business demand data and at least one ecological circle plug-in; the analysis unit is used for analyzing the ecological circle plug-in to obtain at least one dependency and dependency information corresponding to the ecological circle plug-in, wherein the dependency information comprises dependency data and dependency version; The compatible unit is used for traversing the dependency information, and when the dependency data is unique, the unique dependency of the dependency data is reserved; the output unit is used for outputting the only dependence of the dependent data and the dependence with high dependence version as an ecological circle deployment package and uploading the ecological circle deployment package to the management module.
- 2. The dynamic expansion system of claim 1, wherein the management module comprises a preloading unit, and the preloading unit is configured to preload the package for installing the plug-in unit and select an installation mode of the package for installing the plug-in unit according to preset information.
- 3. The dynamic expansion system of claim 2, wherein the management module further comprises a plug-in management unit for offloading, starting and stopping the installed plug-ins.
- 4. The dynamic expansion system of claim 1, wherein the platform further comprises a plug-in monitoring module, the plug-in monitoring module is respectively in communication connection with the management module and the operation and maintenance module, and the plug-in monitoring module integrates PluginListener interfaces for monitoring states of the plug-ins and the installed plug-ins.
- 5. The dynamic expansion system of claim 1, wherein the platform end further comprises a plurality of plug-in interfaces, the plug-in interfaces are in communication connection with the management module, the plug-in interfaces comprise a definition unit and a calling unit, the definition unit is used for defining the plug-in interfaces according to functions of a specified plug-in, and the calling unit is used for calling the specified plug-in.
- 6. The dynamic expansion system of claim 1, wherein the platform end further comprises an integrated dictionary module, the integrated dictionary module is communicatively connected to the management module, and the integrated dictionary module is configured to integrate the underlying components that basically run on the platform end.
- 7. A dynamic expansion method implemented based on the dynamic expansion system of any one of claims 1-6, comprising: obtaining an insert in an insert end, wherein the insert is used for expanding functions of a platform end; Packaging the plug-in into a plug-in installation package through a packaging module in the plug-in end; Uploading the plug-in installation package to a management module in the platform end through an uploading module in the platform end; Loading and installing the plug-in installation package through the management module; and acquiring and calling the data information of the installed plug-in of the management module through an operation and maintenance module in the platform end.
Description
Dynamic expansion system and method Technical Field The invention relates to the technical field of computers, in particular to a dynamic expansion system and a dynamic expansion method. Background The software system development is to design the software system according to the specific conditions and specific requirements of enterprises, provide corresponding personalized development services, and along with the development of science and technology and the rising of middle-hardness enterprises, the informatization level of the enterprises is continuously improved, and many enterprises have conscious that the use of the special software system can greatly improve the fund utilization rate and the working efficiency of staff, and can also reduce the cost and connect with the existing business. But existing software systems have not met the business needs of society. In the prior art, when a software system is developed, because the problems of stability and the like of the system are considered, the default setting is that the software system needs to be restarted to reload and read configuration files in the memory of the software system, so that in order to update service functions of the software system, when a plug-in is installed, the plug-in is only installed in a hard disk, the software system cannot directly load the plug-in into the system memory, namely cannot directly use the function of the plug-in, the use of the plug-in can be completed only by manually restarting the software system, and the plug-in cannot be automatically updated, so that the expansion capability of the software system is poor. Disclosure of Invention The invention solves the problem that the use of the plug-in can be completed only by manually restarting the software system, and the plug-in cannot be automatically updated, so that the expansion capability of the software system is poor. In order to solve the problems, the invention provides a dynamic expansion system and a dynamic expansion method. The invention provides a dynamic expansion system, which comprises a plug-in end and a platform end, wherein the plug-in end is in communication connection with the platform end, the plug-in end comprises a packaging module and a plug-in, and the packaging module is in communication connection with the plug-in; the plug-in is used for expanding the functions of the platform end; the packaging module is used for generating a plug-in installation package for the plug-in; the uploading module is used for uploading the plug-in installation package to the management module; the management module is used for loading and installing the plug-in installation package; The operation and maintenance module is used for acquiring and calling the data information of the installed plug-in of the management module. Optionally, the management module includes a preloading unit, where the preloading unit is used to preload the package for installing the plug-in unit, and select an installation mode of the package for installing the plug-in unit according to preset information. Optionally, the management module further includes a plug-in management unit, where the plug-in management unit is configured to perform unloading, start and stop operations on the installed plug-ins. Optionally, the operation and maintenance module comprises a virtual machine unit and a plug-in operation and maintenance unit, the virtual machine unit is in communication connection with the plug-in operation and maintenance unit, the virtual machine unit is integrated with a class loader, the class loader is used for acquiring data information of the installed plug-in, uploading the data information to the plug-in operation and maintenance unit, the plug-in operation and maintenance unit is used for calling the data information, and the class loader is also used for realizing a self-defining function. Optionally, the plug-in includes Flyway components, flyway components for independently loading initialization data for the plug-in. Optionally, the platform end further comprises an insert ecological ring module, wherein the insert ecological ring module is in communication connection with the management module, and the ecological ring module comprises an acquisition unit, an analysis unit, a compatible unit and an output unit; The acquisition unit is used for acquiring ecological circle business demand data and at least one ecological circle plug-in; the analysis unit is used for analyzing the ecological circle plug-in to obtain dependence and dependence information corresponding to at least one ecological circle plug-in, wherein the dependence information comprises dependence data and dependence version; the compatible unit is used for traversing the dependency information, and when the dependency data is unique, the unique dependency of the dependency data is reserved; the output unit is used for outputting the only dependence and the dependence with high dependence version