Online coding dynamic effective method, device, equipment and medium

A dynamic and coding technology, applied in the computer field, can solve the problems of not being able to meet business needs, not being able to dynamically compile, and low efficiency, and achieve the effect of quick and easy deployment and efficient software development

Active Publication Date: 2020-11-24
福建亿能达信息技术股份有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] When the front-end writes java fragments, it cannot be dynamically compiled, and the java business code cannot be changed in real time according to business needs, so it cannot adapt to the scene of frequent business changes. Developers and implementers cannot avoid highly repetitive work and inefficiency

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
  • Online coding dynamic effective method, device, equipment and medium
  • Online coding dynamic effective method, device, equipment and medium
  • Online coding dynamic effective method, device, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] This embodiment provides a method for online encoding to take effect dynamically, including the following steps:

[0034] S1, such as figure 1 As shown, the listening event of the foreground control accepts the enhanced code written. The enhanced code includes a pre-agreed character string used to obtain page parameters, and the code fragment, control ID or code block name, and code fragment type of the enhanced code (The code fragment type is intended to mark whether the enhanced code fragment is a code fragment that acts on the control event, or acts on a general code block fragment that can be called by the enhanced code) is passed as a parameter to the background;

[0035] S2, such as figure 2 As shown, after receiving the parameters in the background, use the regular matching rules to replace the strings used to obtain the page parameters in the code fragments with the values ​​​​of the corresponding page controls in order, that is, replace them with List(String)...

Embodiment 2

[0044] In this embodiment, a device for dynamically validating online coding is provided, such as Figure 5 shown, including:

[0045] The foreground control is used to accept the enhanced code written by listening to the event. The enhanced code includes a pre-agreed character string used to obtain page parameters, and the code fragment, control ID or code block name, and code fragment type of the enhanced code are used as The parameters are passed to the background;

[0046] The parameter replacement module is used to replace the strings used to obtain the page parameters in the code fragments with the values ​​of the corresponding page controls in order by using the regular matching rules after receiving the parameters in the background, and obtain the enhanced code of the replacement; in order The substitutions are: replace the first argument with args.get(0), the second with args.get(1), and so on.

[0047] The class class name generation module is used to query the lat...

Embodiment 3

[0056] This embodiment provides an electronic device, such as Figure 6 As shown, it includes a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, any implementation manner in Embodiment 1 can be realized.

[0057] Since the electronic device introduced in this embodiment is the device used to implement the method in Embodiment 1 of this application, based on the method described in Embodiment 1 of this application, those skilled in the art can understand the electronic device of this embodiment. Specific implementation methods and various variations thereof, so how the electronic device implements the method in the embodiment of the present application will not be described in detail here. As long as a person skilled in the art implements the equipment used by the method in the embodiment of the present application, it all belongs to the protection scope of the present application. ...

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 provides an online coding dynamic effective method, device and equipment and a medium, and the method comprises the steps: S1, receiving a compiled enhancement code through a monitoringevent of a foreground control, and transmitting the compiled enhancement code to a background as a parameter; S2, replacing, by the background, a character string used for obtaining page parameters ina code segment with the values of corresponding page controls in sequence, querying the latest version number of the current control ID through the control ID, generating a random character string serving as a class name, implanting the random character string and the enhancement code of which parameter replacement is completed into a function body of a JavaTemplate template file, and compiling the random character string and the enhancement code into a .Class file; S3, placing the .Class file in a specified path of a server, and loading the file into a jvm memory; and S4, changing the parameter transmitted from the foreground into a corresponding bena entity, carrying a new version number, and storing the new version number and the enhancement after the parameter replacement in a database. According to the invention, java service codes can be changed in real time according to service requirements.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method, device, device and medium for dynamic validation of online encoding. Background technique [0002] Agile development takes the evolution of user needs as the core, and adopts iterative and step-by-step methods for software development. Driven by the trend of agile development, customers have higher and higher demands for rapid version iterations. Traditional software version iteration needs to go through steps such as requirements analysis, code writing, project packaging and deployment (front and back end), configuration file modification, etc. This causes the user to repeat these cumbersome steps for every temporary requirement change, and may also cause other applications to be implicated due to the modification of related classes. Therefore, the online compilation of java codes comes into being, and it can execute corresponding java enhancements (online ...

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): G06F8/30G06F8/41G06F8/71G06F8/72
CPCG06F8/315G06F8/44G06F8/71G06F8/72
Inventor 黄家昌陈福平杨辉邱道椿
Owner 福建亿能达信息技术股份有限公司
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