Supercharge Your Innovation With Domain-Expert AI Agents!

Bytecode object copying method and device, equipment and storage medium

A storage medium and bytecode technology, applied in the field of coding, can solve problems such as poor security, high cost, and poor performance, and achieve the effects of improving performance, saving resources, and reducing costs

Pending Publication Date: 2020-12-29
SHANGHAI ZHONGTONGJI NETWORK TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, a bytecode object copy method, device, device and storage medium are provided to solve the problems of low efficiency, high cost, poor security and poor performance in related technologies

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
  • Bytecode object copying method and device, equipment and storage medium
  • Bytecode object copying method and device, equipment and storage medium
  • Bytecode object copying method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0039] figure 1 It is a flow chart of a method for copying a bytecode object provided by the embodiment of the present invention. The method can be executed by the device for copying a bytecode object provided by the embodiment of the present invention, and the device can be realized by software and / or hardware. refer to figure 1 , the method may specifically include the following steps:

[0040] S101. Build a mapper factory, where the mapper factory is used for configuring, registering and generating functions for performing mapping.

[0041] Specifically, the mapper factory can be represented by Mapper Factory, which is mainly used to configure, register and generate functions for performing mapping. Optionally, a mapper factory is a small container that contains a metadata store that other components use to find generated mappers, converters, or object factories, etc.

[0042] S102. Set a conversion class, where the conversion class is used for type conversion.

[0043] I...

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 relates to a byte code object copying method, device and equipment and a storage medium, and the method comprises the steps: constructing a mapper factory which is used for configuring,registering and generating a function for executing mapping; setting a conversion class, wherein the conversion class is used for performing type conversion; setting a mapping class, wherein the mapping class is used for customizing object mapping; based on the mapper factory, the conversion class and the mapping class, when it is judged that byte code mapping is generated in advance through classannotation, completing mapping on a pre-loaded object through the first field annotation and the second field annotation so as to generate byte codes and cache the byte codes. Automatic scanning assembly is adopted, the effect of complex mapping simple application is achieved in cooperation with annotation, the problem that the starting time is too long due to full-object assembly is avoided, resources are saved, and performance, safety and stability are improved; the coding efficiency is improved, the cost is reduced, and the realization is more convenient.

Description

technical field [0001] The present invention relates to the field of encoding technology, in particular to a bytecode object copy method, device, equipment and storage medium. Background technique [0002] In Java applications, it is often necessary to convert objects into different forms to adapt to different APIs (Application Programming Interface, application programming interface), or to transfer objects in different business layers, and objects of different layers have different formats, so , you need to write mapping code to convert the property value in the object from one type to another. [0003] In related technologies, there are three methods of object conversion: first, hard coding; in this method, a large number of boilerplate codes need to be manually created and consume a lot of time, which greatly reduces development efficiency and prolongs the development cycle. Second, the reflection method has poor performance and execution efficiency. Third, the bytecod...

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 Applications(China)
IPC IPC(8): G06F8/41G06F8/71
CPCG06F8/44G06F8/71
Inventor 潘裕江李文芳
Owner SHANGHAI ZHONGTONGJI NETWORK TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More