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

Secondary development adaptation method

A communication method, the technology of step 2, applied in the direction of program control devices, etc., can solve the problems of loss of scalability and maintainability, and achieve the effects of improving scalability and maintainability, lowering the learning threshold, and reducing coupling

Inactive Publication Date: 2011-04-13
郑州冠天科技股份有限公司
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Data generation and page layout are completed in the same file, completely losing scalability and maintainability

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
  • Secondary development adaptation method
  • Secondary development adaptation method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The present invention will be further described below in conjunction with accompanying drawing and embodiment:

[0019] Such as figure 1 As shown, the present invention includes three modules: a script engine, a template engine and a document parsing interface, and the script engine calls the document parsing interface through a script language to extract data content. The scripting language adopts the dynamic language library Rhino for script parsing.

[0020] The template engine uses the template language Freemarker framework to parse the page template model.

[0021] The document parsing interface converts the original page content into standard tags through HTMLParser, and defines a good data extraction interface.

[0022] Depend on figure 1 It can also be seen that the inventive method steps are as follows:

[0023] Step 1, the controller obtains the original page data content;

[0024] Step 2, the controller creates a document parsing interface, and puts the ...

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 secondary development adaptation method, which comprises the following steps that: 1, a controller acquires original page data contents; 2, the controller establishes a document parsing interface and puts the interface into a script engine library simultaneously; 3, the controller calls a script engine to extract effective data, and in the process of calling the script engine, the engine automatically loads a corresponding script file for parsing, writing and executing work; and 4, the controller calls a template engine. By using the script engine and the template engine to extract data and generate a page, the adaptation method avoids a chaotic development mode and can greatly improve the development efficiency of secondary development personnel. Because the development of the data extraction and page generation is performed in different files, the development coupling is reduced, and the expansibility and maintainability of the system are improved.

Description

technical field [0001] The invention relates to a development and adaptation method, in particular to a secondary development and adaptation method. Background technique [0002] At present, in the process of porting the B / S system to the mobile phone platform, secondary development and adaptation are required to write the data extraction and page layout codes in the same XML. In this way, the two different business logics of data extraction and page layout are closely combined, resulting in code confusion and high error rates during the adaptation process, while also reducing scalability and maintainability. [0003] Page generation needs to be carried out from top to bottom, which loses the biggest feature of flexible use of data. It cannot communicate with the system internally, and cannot add other external information. [0004] The existing technology adopts the principle of DOM plus template language to generate pages, but adopts the technology of closely combining d...

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/44
Inventor 朱馗
Owner 郑州冠天科技股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products