A method, device, equipment and medium for online coding to take effect dynamically

A dynamic and coding technology, applied in the computer field, can solve problems such as inability to dynamically compile, unable to meet business needs, and low efficiency, and achieve the effect of efficient software development and quick and easy implementation and deployment

Active Publication Date: 2022-06-07
福建亿能达信息技术股份有限公司
View PDF0 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
  • A method, device, equipment and medium for online coding to take effect dynamically
  • A method, device, equipment and medium for online coding to take effect dynamically
  • A method, device, equipment and medium for online coding to take effect dynamically

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] The present embodiment provides a method for online encoding to take effect dynamically, comprising the following steps:

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

[0035] S2, such as figure 2 As shown in the figure, after receiving the parameters in the background, the regular matching rules are used to replace the strings used to obtain page parameters in the code fragment with the values ​​of the corresponding page controls in order, that is, parameters of t...

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 string used to obtain page parameters, and the code fragment of the enhanced code, the control ID or code block name, and the code fragment type are used as Parameters are passed to the background;

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

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

Embodiment 3

[0056] This embodiment provides an electronic device, such as Image 6 As shown, a memory, a processor and a computer program stored in the memory and running on the processor are included. When the processor executes the computer program, any one of the implementation manners of the first embodiment can be implemented.

[0057] Since the electronic device introduced in this embodiment is the device used to implement the method in the first embodiment of the present application, based on the method introduced in the first embodiment of the present application, those skilled in the art can understand the electronic device in this embodiment. The specific implementation manner and various modifications thereof, so how the electronic device implements the methods in the embodiments of the present application will not be described in detail here. As long as the devices used by those skilled in the art to implement the methods in the embodiments of the present application fall with...

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 present invention provides a method, device, device and medium for online coding to take effect dynamically. The method includes: S1. The enhanced code is accepted and written by the listening event of the foreground control, and is passed to the background as a parameter; S2. The background code fragment The string used to obtain the page parameters is replaced with the value of the corresponding page control in order, and then the latest version number of the current control ID is queried through the control ID, and a string of random strings used as the class name is generated, together with the parameter replacement The completed enhanced code is implanted into the function body of the JavaTemplate template file, and then compiled into a .class file; S3, placing the .class file in the path specified by the server, and loading this class into the memory of the jvm; S4, The parameters passed from the foreground are converted into corresponding bean entities and stored in the database together with the new version number and the enhancements completed by parameter replacement. The invention can change java business codes in real time according to business requirements.

Description

technical field [0001] The present invention relates to the field of computer technology, and in particular, to a method, device, device and medium for online coding dynamic validation. Background technique [0002] Agile development takes the evolution of users' needs as the core, and adopts an iterative and step-by-step approach to software development. In view of the general trend of agile development, customers' demands for rapid version iteration are getting higher and higher. Traditional software version iteration requires steps such as requirement analysis, code writing, project packaging and deployment (front-end and back-end), and configuration file modification. This causes users to repeat these tedious steps every time the temporary requirements change, and other applications may be implicated due to the modification of related classes. Therefore, the online compilation of java code comes into being, which can perform corresponding java enhancement (online compi...

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
Patent Type & Authority Patents(China)
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