A method and apparatus for program expansion

A program extension, computer program technology, applied in the computer field, can solve problems such as many codes, difficult modification, inability to understand the main line of functions, etc., to avoid expansion and improve maintainability.

Inactive Publication Date: 2018-12-28
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when there are more new requirements and more functions need to be added, the process of the original code will become longer and longer, and the corresponding code will become more and more
When the number of codes increases to a certain level, it is easy to cause difficulties in reading and maintenance, and it is impossible to understand the main line of functions
It is very difficult to modify multiple functional logics in the code

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 and apparatus for program expansion
  • A method and apparatus for program expansion
  • A method and apparatus for program expansion

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] The core of this application is to provide a program extension method, a code execution method for expanding requirements, a program extension device, a code execution device, a server, and a computer-readable storage medium, and add classes to the original code logic through a chain of responsibility, Avoid directly adding code to the original code logic, which improves the maintainability of the code.

[0042] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative ef...

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 program extension method, which is applied to an original logic code, wherein the original logic code is divided into N layers according to flow steps, N is a positive integer greater than or equal to 1, and the method comprises the following steps: when a first addition class is received, determining a target layer of the first addition class in the original logic code;creating a responsibility link interface for the target hierarchy, wherein, the duty link interface points to the demand function interface of the target level; the class name of the first incrementalclass is added to the requirements function interface so that the first incremental class is loaded when the program runs to the target hierarchy; adding additional classes to the original code logicthrough the responsibility chain, which avoids adding code directly to the original code logic and improves the maintainability of the code. The present application also discloses a code execution method, a program expansion device, a code execution device, a server and a computer-readable storage medium for extending requirements, which have the above beneficial effects.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular to a program extension method, a code execution method for extension requirements, a program extension device, a code execution device, a server, and a computer-readable storage medium. Background technique [0002] With the continuous development of information technology, more and more program functions need to be realized through programs. Therefore, in the process of program development, it is necessary to continuously add new requirements and new functions to the original program flow. [0003] In the prior art, the method of adding new requirements is to directly add corresponding codes in the original process so as to realize adding new requirements and functions in the original process. But when there are more new requirements and more functions need to be added, the process of the original code will become longer and longer, and the corresponding code will ...

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/72G06F8/36G06F9/448G06F9/445
CPCG06F8/36G06F8/72G06F9/44521G06F9/4488
Inventor 王祥
Owner ZHENGZHOU YUNHAI INFORMATION TECH 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