Method for realizing dynamic function online interception expansion of system through multilingual cloud compilation

A technology for realizing system and dynamic functions, applied in the direction of program loading/starting, program control device, etc., can solve problems such as reducing code reuse rate, burden, and difficulty in system development, and achieves improved reusability, improved cooperation, and wide practical significance. Effect

Active Publication Date: 2016-12-21
BEIJING BEISEN CLOUD COMPUTING CO LTD
View PDF7 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This invention has the deficiencies in the following aspects: first what this invention uses is that dynamic compilation is the Microsoft CodeDOM ICodeCompiler compiling method, and is to utilize a mechanism called "Code Document Object Model" (CodeDOM) in the .NET Framework. Developers who write source code programs can use programming language text to generate source code compilation and get compilation results at runtime according to a single model representing the presented code. It is basically a complete black box that can only provide compilation, compilation The final result is success or failure; secondly, every time the code is compiled, another new csc.exe or vbc.exe compilation process will be started outside the current process, and the ICodeCompiler compilation method is only for csc.exe and vbc .exe packaging, this old way, after testing, if multiple script codes are compiled at the same time, the CPU will cause a certain pressure, causing the CPU usage to rise sharply, and in addition to the current process, start a new process to compile the script code , which has a certain impact on the stability and performance of a system, as well as the input and output of compilation results
There are two deficiencies here: first, this invention uses reflection technology, which is actually an interpreted operation, and a lot of work needs to be done inside the underlying running state: binding process, metadata string comparison, parameter Verification, type verification, security verification, generation of a large number of temporary objects, etc., will cause a huge burden on the CPU and GC garbage collector, and the operating efficiency and performance are very low
There are the following points that can be improved. First of all, Spring’s ioc mode is used in this invention. Ioc can be added through code and configuration. This invention is very cumbersome to expand the data source through a large number of configuration files, and this It needs to be configured manually, resulting in additional maintenance costs. The coupling relationship is all in the configuration file, and only conventional relational databases can obtain data. Secondly, this kind of performance problem will occur due to the use of IOC mode (reflection), and again in Service business logic layer, if you need to perform secondary filtering and processing on the extracted data source, you need to manually develop, deploy, and configure offline
[0011] Based on the above statements, we can see that there are the following shortcomings in the existing technology: (1) Expansion is complicated: the code is directly coupled to the existing system or configured into the system through reflection, which makes the entire expansion process very complicated and cumbersome, and breaks the existing system.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for realizing dynamic function online interception expansion of system through multilingual cloud compilation
  • Method for realizing dynamic function online interception expansion of system through multilingual cloud compilation
  • Method for realizing dynamic function online interception expansion of system through multilingual cloud compilation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0065] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but should not be used to limit the scope of the present invention.

[0066] A method for implementing online interception and extension of system dynamic functions through multilingual cloud compilation, said method comprising the following steps:

[0067] S1. According to business requirements, identify the corresponding interception tag on the method that needs to be extended;

[0068] S2. Before compiling the project, determine the interception tag corresponding to the system service that needs to be expanded as the target interception tag;

[0069] S3. For each method in the project, determine whether the target interception tag is identified;

[0070] S4. For each target interception tag, add an interception device code corresponding to the system service that needs to ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for realizing dynamic function online interception expansion of a system through multilingual cloud compilation. By intercepting a tag, compilation and execution of a business logic interception code are realized, and then the compilation and the execution are carried out. The compilation running process specifically comprises the steps of detecting whether expansion interception exists or not, and if the expansion interception exists, determining the business logic interception code; searching for a corresponding instance from a memory, and calling and running the corresponding instance by utilizing a multilingual dynamic script execution engine; and if the corresponding instance does not exist, performing compilation by utilizing a corresponding script compilation engine according to a language type of the business logic interception code to generate the corresponding instance. According to the method, the business logic interception code can be directly introduced and runs after being compiled through multilingual cloud compilation in system running, so that a previous code is not influenced, a dynamic script engine system is realized, the dynamic function interception expansion of the system is realized, and the flexibility, openness, maintainability and expandability of system function expansion are improved.

Description

technical field [0001] The invention relates to the field of software dynamic expansion, and more specifically relates to a method for realizing online interception and expansion of system dynamic functions through multi-language cloud compilation. Background technique [0002] With the rapid development of science and technology and the continuous improvement of social informatization, the application of computers has penetrated into all fields of society. The competition among enterprises and the diverse customer needs have led to the increasingly large and complex enterprise application software systems. . Customers' individual requirements for software systems change frequently, and at the same time require a short development cycle. In reality, it is difficult for common standardized products to meet customers' complex business needs. After the system has been developed, it has met the needs of users. However, when users continue to put forward new requirements, the or...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/445G06F9/44
Inventor 闫观涛刘生权张庆化熊品卿徐东
Owner BEIJING BEISEN CLOUD COMPUTING CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products