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 techn

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

Example Embodiment

[0016] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.

[0017] In order to solve the shortcomings or shortcomings of coding new projects in the prior art, the need to rewrite a large number of public codes and or to perform multiple debugging tests after extracting the public codes of old projects, the invention adopts the automatic generation of public codes, and To meet different needs, provide customized solutions for components, so as to achieve rapid project development and reduce repetit...

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
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