Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Template componentized code generating method based on chain-of-responsibility pattern

A technology for generating code and chain of responsibility, applied in the field of code generation, can solve problems such as insufficient flexibility, and achieve the effects of high readability, easy customization, high cohesion and low coupling

Inactive Publication Date: 2014-02-26
BLUEDON INFORMATION SECURITY TECH CO LTD
View PDF2 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This technology generates business code based on the framework of hibernate and struts2, which is not flexible enough. Every company has its own technical system, its own framework and encapsulation method. The code generated in this way does not necessarily conform to All project development needs

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
  • Template componentized code generating method based on chain-of-responsibility pattern

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0017] In order to solve the shortcomings or deficiencies in the prior art of encoding new items, a large number of public codes need to be rewritten, or the public codes of old items need to be debugged and tested multiple times after extraction, the present invention adopts automatic generation of public codes, and for To meet different needs, provide customized solutions for components, so as to achieve the purpose of rapid project development and reduce duplicat...

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 template componentized code generating method based on a chain-of-responsibility pattern. The method solves the problem that a large amount of repeated work exists in software project development through code generation, so that programmers only need to pay attention to service logic of different needs. Besides, according to the template componentized code generating method based on the chain-of-responsibility pattern, a built-in code packaging mode can be adopted, a customized template code packaging mode also can be adopted, the mode for generating relevant codes of a specific module through a free combination generation chain is supported, and meanwhile simplification and flexibility are both taken into consideration. The method can meet different needs and provides a componentization scheme, and therefore the aims of quick development of projects and reduction of repeated work are achieved.

Description

technical field [0001] The present invention relates to the technical field of code generation, and in particular to a method for generating code by template componentization based on a chain of responsibility pattern. Background technique [0002] When starting a new project, it is necessary to design the architecture of the project and rewrite a large amount of public code. If there is an old project and the architecture of the old project meets the current requirements, the public code can be extracted and modified due to the project Different codes lead to specificity, but there will still be more repetitive work and a certain amount of debugging time. [0003] The invention patent with the patent number of 200710002787.5 discloses a persistent layer generation method and device for simple and convenient realization of data persistence processing. The method includes: acquiring database table structure parameters, configuration parameters of association relationship bet...

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/44G06F17/30
Inventor 柯宗贵杨育斌林再贤
Owner BLUEDON INFORMATION SECURITY TECH CO LTD
Features
  • Generate Ideas
  • 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