CN109324798A - A kind of implementation method of JIT Just-In-Time web form metadata - Google Patents

A kind of implementation method of JIT Just-In-Time web form metadata Download PDF

Info

Publication number
CN109324798A
CN109324798A CN201811072334.4A CN201811072334A CN109324798A CN 109324798 A CN109324798 A CN 109324798A CN 201811072334 A CN201811072334 A CN 201811072334A CN 109324798 A CN109324798 A CN 109324798A
Authority
CN
China
Prior art keywords
jit
parameter
service
engine
metadata
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811072334.4A
Other languages
Chinese (zh)
Inventor
李文峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Inspur Genersoft Information Technology Co Ltd
Original Assignee
Shandong Inspur Genersoft Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Inspur Genersoft Information Technology Co Ltd filed Critical Shandong Inspur Genersoft Information Technology Co Ltd
Priority to CN201811072334.4A priority Critical patent/CN109324798A/en
Publication of CN109324798A publication Critical patent/CN109324798A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/43Checking; Contextual analysis

Abstract

The present invention provides a kind of implementation method of JIT Just-In-Time web form metadata, belongs to JIT Just-In-Time technology technical field, and major function of the present invention is to receive the Json metadata of Web list, and source code executable when running is generated using pug template engine.It supports to use various UI widget libraries, generates the Web form interface that can be interacted.

Description

A kind of implementation method of JIT Just-In-Time web form metadata
Technical field
The present invention relates to JIT Just-In-Time technology more particularly to a kind of realizations of JIT Just-In-Time web form metadata Method.
Background technique
JIT (Just-In-Time Compiler) Just-In-Time has use in Java and C#, even if compiler can be with The intermediate language of the bytecode of java or C# is converted into be transmitted directly to the instruction repertorie of processor.
Angular also provides JIT technology in front end, by Angular source code Just-In-Time at the JS code of ES5 standard, Directly run in a browser.
The concept of JIT has been applied in the exploitation of Web list by the present invention, the friendship that Form Designer is pulled by user Mutual mode completes program function design (i.e. Web list).By the interface layout, pattern, interactive mode of Web list after the completion of design And interaction logic is saved at Json format descriptor (i.e. Web capture with form metadata).Web capture with form metadata how is allowed to exist It really gets into smooth in running environment, it is necessary to which the metadata of Json format is converted into the source code that really can be performed.At this moment Need JIT just to complete this work.
Summary of the invention
In order to solve the above technical problems, the invention proposes a kind of realization sides of JIT Just-In-Time web form metadata Method
Major function of the present invention is to receive the Json metadata of Web list, can be held when being generated and run using pug template engine Capable source code.It supports to use various UI widget libraries, generates the Web form interface that can be interacted.
Mainly include several steps:
1) relevant configured parameter of Just-In-Time is received and parsed through by order line.
Configuration parameter includes:
The file directory of Web list Json metadata
Code building catalogue
UI widget library used in interface
2) JIT service context is created using parameter, passes to JIT Just-In-Time service for service context as parameter And execute service.
3) Angular source code when generating operation using pug template engine parsing Web list Json metadata.
4) source code is output to specified file directory.
In the order line under nodejs environment, the configuration parameter of Just-In-Time is received, and parse to parameter.
Service context is created using the command line parameter after parsing, JIT engine zinc plant engineering is obtained by IOC container, JIT engine is created, the CreateTask method of engine is called to create task, service context is passed to task and executed and is appointed Business.
Analysis service context creates generator queue, executes generator queue, is generated and is run using pug template engine When source code.
According to the source code issuing path in service context, by the source code file of generation and it is output to specified file mesh Record.
Detailed description of the invention
Fig. 1 is the principle of the present invention schematic diagram.
Specific embodiment
More detailed elaboration is carried out to the contents of the present invention below:
A kind of implementation method of JIT Just-In-Time web form metadata of the invention mainly includes the following contents:
1, it when calling JIT service by nodejs order line, receives compiling parameter and carries out Parameter analysis of electrochemical;
2, service context is created using the command line parameter after parsing, and starts JIT service;
3, it executes and organizes generator queue in service process, execute generator queue in order, it is raw using pug template engine At source code;
4, the source code after generating compiling is output to specified file directory.
JIT service, and incoming configuration parameter are called in the first step, the input instruction of nodejs order line.
Jit--metaDataPath=' E:/metaData ' -- publishPath=' E:/publish ' -- UiLibrary=' kendoui '
Second step, analyzes the instruction and configuration parameter, calling JIT are serviced.
Third step, creates engine instance by factory, creates task using engine instance, constructs service context, will take Business context passes to task as parameter and runs task.
4th step organizes generator queue, and executes queue, generates source code using pug template engine and is output to finger Determine file directory.
Here is tissue generator queue, and executes the source code of queue.
Here is generator source code: generating source code using pug template engine and is output to specified file catalogue.

Claims (6)

1. a kind of implementation method of JIT Just-In-Time web form metadata, which is characterized in that
The Json metadata for receiving Web list generates source code executable when running using pug template engine.
2. the method according to claim 1, wherein
It comprises the following steps:
1) relevant configured parameter of Just-In-Time is received and parsed through by order line;
2) JIT service context is created using parameter, service context is passed into the service of JIT Just-In-Time as parameter and is held Row service;
3) Angular source code when generating operation using pug template engine parsing Web list Json metadata;
4) source code is output to specified file directory.
3. according to the method described in claim 2, it is characterized in that,
Configuration parameter includes:
The file directory of Web list Json metadata;
Code building catalogue;
UI widget library used in interface.
4. according to the method described in claim 2, it is characterized in that,
When calling JIT service by nodejs order line, receives compiling parameter and carry out Parameter analysis of electrochemical.
5. according to the method described in claim 4, it is characterized in that,
Service context is created using the command line parameter after parsing, JIT engine zinc plant engineering, creation are obtained by IOC container JIT engine calls the CreateTask method of engine to create task, service context is passed to task and executes task.
6. according to the method described in claim 5, it is characterized in that,
It executes and organizes generator queue in service process, execute generator queue in order, generate source generation using pug template engine Code.
CN201811072334.4A 2018-09-14 2018-09-14 A kind of implementation method of JIT Just-In-Time web form metadata Pending CN109324798A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811072334.4A CN109324798A (en) 2018-09-14 2018-09-14 A kind of implementation method of JIT Just-In-Time web form metadata

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811072334.4A CN109324798A (en) 2018-09-14 2018-09-14 A kind of implementation method of JIT Just-In-Time web form metadata

Publications (1)

Publication Number Publication Date
CN109324798A true CN109324798A (en) 2019-02-12

Family

ID=65265202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811072334.4A Pending CN109324798A (en) 2018-09-14 2018-09-14 A kind of implementation method of JIT Just-In-Time web form metadata

Country Status (1)

Country Link
CN (1) CN109324798A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101807209A (en) * 2010-04-14 2010-08-18 深圳市同洲电子股份有限公司 Method and system for manufacturing webpage, client and server
CN105739963A (en) * 2014-12-12 2016-07-06 博雅网络游戏开发(深圳)有限公司 Method and device for generating webpage
US9600272B2 (en) * 2014-03-27 2017-03-21 Microsoft Technology Licensing, Llc Hierarchical directives-based management of runtime behaviors
CN106648587A (en) * 2016-09-28 2017-05-10 福州宇嘉软件科技有限公司 Annotation-based Web application code generation method
CN107766344A (en) * 2016-08-15 2018-03-06 阿里巴巴集团控股有限公司 The method, apparatus and browser that a kind of template renders

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101807209A (en) * 2010-04-14 2010-08-18 深圳市同洲电子股份有限公司 Method and system for manufacturing webpage, client and server
US9600272B2 (en) * 2014-03-27 2017-03-21 Microsoft Technology Licensing, Llc Hierarchical directives-based management of runtime behaviors
CN105739963A (en) * 2014-12-12 2016-07-06 博雅网络游戏开发(深圳)有限公司 Method and device for generating webpage
CN107766344A (en) * 2016-08-15 2018-03-06 阿里巴巴集团控股有限公司 The method, apparatus and browser that a kind of template renders
CN106648587A (en) * 2016-09-28 2017-05-10 福州宇嘉软件科技有限公司 Annotation-based Web application code generation method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HAYLEY2016: "前端模板引擎——带你学习Jade/Pug模板引擎", 《CSDN:HTTPS://BLOG.CSDN.NET/QQ_32614411/ARTICLE/DETAILS/81906184》 *

Similar Documents

Publication Publication Date Title
CN111881401B (en) WebAssemble-based browser deep learning method and system
KR101385420B1 (en) Execution of dynamic languages via metadata extraction
Bozga et al. Source-to-source architecture transformation for performance optimization in BIP
US9043766B2 (en) Language translation using preprocessor macros
CN106951305B (en) Method for generating midCore script from QVT-R language based on model conversion
US10162628B2 (en) Transactional distributed data analysis and transformation
Pérez-Castillo et al. Reengineering technologies
CN115639980A (en) Draggable front-end logic arrangement method and device for low-code platform
Rivero et al. From interface mockups to web application models
CN107203401A (en) A kind of front end project build method, apparatus and system
CN113031932A (en) Project development method and device, electronic equipment and storage medium
Guana et al. Chaintracker, a model-transformation trace analysis tool for code-generation environments
Brabra et al. Model-driven orchestration for cloud resources
US10387126B2 (en) Data marshalling optimization via intermediate representation of workflows
CN110045950A (en) Static page based on nodejs develops scaffold method
Daniel et al. From people to services to ui: Distributed orchestration of user interfaces
CN105700934A (en) Intelligent compiling method and intelligent compiling system
US9612829B2 (en) System and method for pattern based services extraction
Gupta Language-based software engineering
CN109324798A (en) A kind of implementation method of JIT Just-In-Time web form metadata
Bailis et al. Research for practice: Tracing and debugging distributed systems; programming by examples
CN103678485A (en) Virtual experiment process node driving and movable packaging system
JP2008293186A (en) Method and apparatus for automatically generating steel plant control program
Märtin et al. Patterns and models for automated user interface construction–in search of the missing links
CN104750482A (en) Method for constructing dynamic script execution engine based on MapReduce

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190212

RJ01 Rejection of invention patent application after publication