CN103577170A - Construction method and construction device for web application - Google Patents

Construction method and construction device for web application Download PDF

Info

Publication number
CN103577170A
CN103577170A CN201210264082.1A CN201210264082A CN103577170A CN 103577170 A CN103577170 A CN 103577170A CN 201210264082 A CN201210264082 A CN 201210264082A CN 103577170 A CN103577170 A CN 103577170A
Authority
CN
China
Prior art keywords
task
module
application
configuration information
mission bit
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
CN201210264082.1A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201210264082.1A priority Critical patent/CN103577170A/en
Priority to PCT/CN2013/079286 priority patent/WO2013185668A1/en
Publication of CN103577170A publication Critical patent/CN103577170A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a construction method and a construction device for a web application. The construction method includes acquiring construction configuration information including module information of the application and construction task information of each module; loading a task chain for each module of the application according to the construction configuration information; constructing the task chain for each module; executing each task chain sequentially, and executing each task in a current task chain sequentially. By the technical scheme, construction process for the web application can be completed conveniently and rapidly, and after new modules are added in the web application, construction processes can be added in incremental quantity on the basis of constructed tasks conveniently and reconstruction is not needed, so that implementation complexity is reduced, and development efficiency is improved.

Description

The construction method of network application and device
Technical field
The present invention relates to network (web) technical field, relate in particular to a kind of construction method and device of network application.
Background technology
Computing machine can not directly be understood higher level lanquage, can only directly understand machine language, so higher level lanquage must be translated into machine language, computing machine could be carried out the program of high level language.The mode of translation has two kinds, and a kind of is compiling, and a kind of is to explain, the asynchronism(-nization) of the two translation.Corresponding, higher level lanquage also can be divided into compiling type language and interpreted language conventionally, and common compiling type language has C/C++, Pascal etc., and common interpreted language has JavaScript, VBScript, Python etc.
The program of compiling type language will be passed through the program that the processes such as compiling, link produce machine language before operation, and this process is commonly referred to structure.Conventionally not just compiler and linker of complete constructing environment, can also comprise some Integrated Development Environment (IDE), robotization builds script and testing tool etc.
The program of interpreted language does not need compiling, in working procedure, just translates.The program of interpreted language is built to the process of having saved compiling, generally include the processes such as analysis, merging, test of some codes.
Along with the development of the universal and web technology of internet, use javascript to write web application and become more and more general.For a small amount of javascript file, be easy to build or directly use.But along with the file of javascript and the increasing of project used in web application, the building process of application becomes and becomes increasingly complex.While especially developing a plurality of complicated web application, all will write and safeguard a whole set of building process at every turn, this is very large workload to application developer, has increased the complicacy of application and development, and the tempo of development of the application of having slowed down.
Summary of the invention
The embodiment of the present invention provides a kind of construction method and device of network application, while applying to overcome a plurality of complicated web of current exploitation, because all will write the problem that workload increases, complicacy increases and development efficiency reduces of safeguarding that a whole set of building process causes at every turn.
The embodiment of the present invention provides the construction method of a kind of network (web) application, and the method comprises:
Obtain structure configuration information, described structure configuration information comprises the module information of application and the structure mission bit stream of each module;
According to this, build task chain of each module loading that configuration information is this application; For task chain described in described each module construction;
Carry out successively every task chain, carry out successively each task in current task chain.
Preferably, described in, obtaining structure configuration information comprises:
Loading configuration file parses described structure configuration information from described configuration file.
Preferably, in described configuration file, be added with the newly-increased information of module and the structure mission bit stream of this newly-increased module.
Preferably, in described configuration file, be also added with the self-defined mission bit stream of structure of corresponding described module or described newly-increased module.
The embodiment of the present invention also provides the construction device of a kind of network (web) application, and this device comprises:
Application manager, for obtaining structure configuration information, described structure configuration information comprises the module information of application and the structure mission bit stream of each module; According to this, build task chain of each module loading that configuration information is this application; For task manager of described each module creation, and described structure mission bit stream is passed to corresponding task manager; And, after successfully loading all task chains, carry out successively every task chain;
Described task manager, the described structure mission bit stream sending for receiving described application manager, searches corresponding task according to described structure mission bit stream, after determining that all described structure mission bit streams are all legal, builds described task chain; And, when described application manager is carried out current task chain, carry out successively each task in current task chain.
Preferably, this device also comprises:
Configuration information analyzer for loading configuration file, parses described structure configuration information from described configuration file.
Preferably, described application manager, specifically for: to described configuration information analyzer, send and obtain request, and receive the described structure configuration information that described configuration information analyzer returns.
Preferably, in described configuration file, be added with the newly-increased information of module and the structure mission bit stream of this newly-increased module.
Preferably, be also added with the self-defined mission bit stream of structure of corresponding described module or described newly-increased module in described configuration file, described structure mission bit stream or the self-defined mission bit stream of described structure include task name and corresponding task thereof.
Preferably, described task manager, also for preserving described task name and corresponding task thereof.
Adopt the embodiment of the present invention, can complete easily, rapidly the building process of web application, and add after new module in web application, can be easily add building process and do not need to rebuild building increment on task basis, thereby reduced implementation complexity, improved development efficiency.
Accompanying drawing explanation
Fig. 1 is the relation of application of the present invention and inter-related task thereof;
Fig. 2 is the structural representation of the construction device embodiment of web application of the present invention;
Fig. 3 is the process flow diagram of the construction method embodiment of web application of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, hereinafter in connection with accompanying drawing, embodiments of the invention are elaborated.It should be noted that, in the situation that not conflicting, the embodiment in the application and the feature in embodiment be combination in any mutually.
As shown in Figure 1, each application may comprise one or more modules that need to build respectively, and for each module, may need different structure tasks; Such as the application in Fig. 1, comprise the modules such as modules A, B, when modules A builds, need to pass through file ordering, analyze dependence, remove discarded record, merged file, dwindle 5 tasks of file, and module B needs by analysis dependence, merged file while building, dwindles file, whether tab file type, Study document need 5 tasks of buffer memory.The order of task quantity, kind and the task of using when modules builds in application may be all different.
As shown in Figure 2, be the structural representation of the construction device embodiment of web of the present invention application, this device comprises: application manager 21 and task manager 22, wherein:
Application manager, for obtaining structure configuration information, described structure configuration information comprises the module information of application and the structure mission bit stream of each module; According to this, build task chain of each module loading that configuration information is this application; For task manager of described each module creation, and described structure mission bit stream is passed to corresponding task manager; And, after successfully loading all task chains, carry out successively every task chain;
Described task manager, the described structure mission bit stream sending for receiving described application manager, searches corresponding task according to described structure mission bit stream, after determining that all described structure mission bit streams are all legal, builds described task chain; And, when described application manager is carried out current task chain, carry out successively each task in current task chain.
In addition, this device also comprises: configuration information analyzer 23 for loading configuration file, parses described structure configuration information from described configuration file.
Wherein, described application manager, specifically for: to described configuration information analyzer, send and obtain request, and receive the described structure configuration information that described configuration information analyzer returns.
In order to add new module in application, developer only need to add corresponding newly-added information in configuration file.
In order, increase self-defined task in front module, to be added with the self-defined mission bit stream of structure of corresponding described module or described newly-increased module in described configuration file; Described structure mission bit stream or the self-defined mission bit stream of described structure include task name and corresponding task thereof.
As shown in Figure 3, this process comprises the process of the web application build device structure application based on said structure:
Step 301, building process start, and application manager will obtain the configuration information of structure;
Step 302, configuration information analyzer loading configuration file, the module information in Study document and corresponding structure mission bit stream also return to application manager;
Step 303, according to configuration information, application manager will be task chain of each module loading of application; Concrete, application manager can be the example of the newly-built task manager of each application module, and passes to this example to build task chain by building the required mission bit stream of this module;
The mission bit stream that step 304, task manager pass over according to application manager is searched corresponding task, if all mission bit streams are all legal, required task conspired to create to a chain, and returns to first-in-chain(FIC);
Step 305, application manager successfully load after all task chains, carry out successively each task chain;
Step 306, task manager load the associated documents of this application module, each task of executing the task successively in chain;
When step 307, all tasks carryings finish, whole application build process completes.
If added new module in application, only need in configuration file, add this new module and build accordingly mission bit stream, the structure of application just can carry out smoothly.If existing task cannot satisfy the demands, can add required self-defined task.Concrete method is, inherits basic task and realizes some required functions (for example, while carrying out required run function), then in task manager, registers this task so that this task can correctly be identified and load to task manager.
In addition, configuration file can be the file (filename is generally config.json) of json form, and its content may be of this sort:
Figure BDA00001942234900051
As above application comprises module " core " and " ui " that two needs build, and when wherein " core " builds, need to carry out successively " sort ", " dependency ", " merge " three tasks.Configuration information analyzer can be a javascript object by the Context resolution in configuration file, according to attribute-name direct acquisition module information and built mission bit stream just.In configuration file, also can add the attribute of other various actual needs, so that application manager or task manager are used this information.
A kind of may realization to task is a task prototype of definition, this prototype has defined function and attribute that each task is worked and will be had in a task chain, for example: run () function definition the actual content that will carry out of task, isReady () function definition task whether be ready to carry out (may only have met some this task of precondition could carry out).In the time will adding new self-defined task, run (), isReady () function that this task will realize oneself complete the action (covering the function in prototype) that it needs itself.
After realizing concrete task, task manager need to be understood this task.In task manager, having constructed one enters oral thermometer and tells the situation of task manager about each task.Management role is in the table of task manager, to search the example of the task of obtaining.Wherein two necessary values are: task name and corresponding task.The people and the task manager that create configuration file all should be known task name, and this task could be used normally like this.
The construction device of above-mentioned web application, can complete easily, rapidly the building process of web application, and add after new module in web application, can be easily add building process and do not need to rebuild building increment on task basis, thereby reduced implementation complexity, improved development efficiency.
The embodiment of the present invention provides the construction method of a kind of network (web) application, and the method comprises:
Step 1, obtain structure configuration information, described structure configuration information comprises the module information of application and the structure mission bit stream of each module;
Wherein, described in, obtaining structure configuration information comprises: loading configuration file parses described structure configuration information from described configuration file;
In addition, in order to add new module in application, in described configuration file, be added with the newly-increased information of module and the structure mission bit stream of this newly-increased module;
Further, in order, can increase self-defined task in front module, to be also added with the self-defined mission bit stream of structure of corresponding described module or described newly-increased module in described configuration file;
Step 2, the task chain of each module loading that is this application according to this structure configuration information; For task chain described in described each module construction;
Step 3, carry out every task chain successively, carry out successively each task in current task chain.
Above-mentioned application construction method based on task, can, easily for a web application, also can be expanded very easily constructing system when new module is added in application; In addition, except using built-in task, self-defined task easily, to meet the different demands of this application.
One of ordinary skill in the art will appreciate that all or part of step in said method can come instruction related hardware to complete by program, said procedure can be stored in computer-readable recording medium, as ROM (read-only memory), disk or CD etc.Alternatively, all or part of step of above-described embodiment also can realize with one or more integrated circuit.Correspondingly, each the module/unit in above-described embodiment can adopt the form of hardware to realize, and also can adopt the form of software function module to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.
Above embodiment is only unrestricted in order to technical scheme of the present invention to be described, only with reference to preferred embodiment, the present invention is had been described in detail.Those of ordinary skill in the art should be appreciated that and can modify or be equal to replacement technical scheme of the present invention, and do not depart from the spirit and scope of technical solution of the present invention, all should be encompassed in the middle of claim scope of the present invention.

Claims (10)

1. a construction method for network (web) application, is characterized in that, the method comprises:
Obtain structure configuration information, described structure configuration information comprises the module information of application and the structure mission bit stream of each module;
According to this, build task chain of each module loading that configuration information is this application; For task chain described in described each module construction;
Carry out successively every task chain, carry out successively each task in current task chain.
2. method according to claim 1, is characterized in that:
The described structure configuration information that obtains comprises:
Loading configuration file parses described structure configuration information from described configuration file.
3. method according to claim 2, is characterized in that:
In described configuration file, be added with the newly-increased information of module and the structure mission bit stream of this newly-increased module.
4. it is characterized in that according to the method in claim 2 or 3:
In described configuration file, be also added with the self-defined mission bit stream of structure of corresponding described module or described newly-increased module.
5. a construction device for network (web) application, is characterized in that, this device comprises:
Application manager, for obtaining structure configuration information, described structure configuration information comprises the module information of application and the structure mission bit stream of each module; According to this, build task chain of each module loading that configuration information is this application; For task manager of described each module creation, and described structure mission bit stream is passed to corresponding task manager; And, after successfully loading all task chains, carry out successively every task chain;
Described task manager, the described structure mission bit stream sending for receiving described application manager, searches corresponding task according to described structure mission bit stream, after determining that all described structure mission bit streams are all legal, builds described task chain; And, when described application manager is carried out current task chain, carry out successively each task in current task chain.
6. device according to claim 5, is characterized in that, this device also comprises:
Configuration information analyzer for loading configuration file, parses described structure configuration information from described configuration file.
7. device according to claim 6, is characterized in that:
Described application manager, specifically for: to described configuration information analyzer, send and obtain request, and receive the described structure configuration information that described configuration information analyzer returns.
8. device according to claim 6, is characterized in that:
In described configuration file, be added with the newly-increased information of module and the structure mission bit stream of this newly-increased module.
9. according to the device described in claim 6 or 8, it is characterized in that:
In described configuration file, be also added with the self-defined mission bit stream of structure of corresponding described module or described newly-increased module, described structure mission bit stream or the self-defined mission bit stream of described structure include task name and corresponding task thereof.
10. device according to claim 9, is characterized in that:
Described task manager, also for preserving described task name and corresponding task thereof.
CN201210264082.1A 2012-07-27 2012-07-27 Construction method and construction device for web application Pending CN103577170A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210264082.1A CN103577170A (en) 2012-07-27 2012-07-27 Construction method and construction device for web application
PCT/CN2013/079286 WO2013185668A1 (en) 2012-07-27 2013-07-12 Method and device for constructing web application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210264082.1A CN103577170A (en) 2012-07-27 2012-07-27 Construction method and construction device for web application

Publications (1)

Publication Number Publication Date
CN103577170A true CN103577170A (en) 2014-02-12

Family

ID=49757567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210264082.1A Pending CN103577170A (en) 2012-07-27 2012-07-27 Construction method and construction device for web application

Country Status (2)

Country Link
CN (1) CN103577170A (en)
WO (1) WO2013185668A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224332A (en) * 2015-10-14 2016-01-06 深圳市金证科技股份有限公司 A kind of application program generates method and apparatus
CN105975276A (en) * 2016-05-09 2016-09-28 上海携程商务有限公司 Distributed construction system and method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107463495A (en) * 2017-07-19 2017-12-12 重庆扬讯软件技术股份有限公司 A kind of method for testing software and code increment distributing device of the issue of code increment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1920779A (en) * 2005-08-25 2007-02-28 中兴通讯股份有限公司 Configuration document based program flow control method
CN101354725A (en) * 2008-09-08 2009-01-28 中兴通讯股份有限公司 Method and apparatus for constructing and analyzing WAP page
CN101414945A (en) * 2008-10-15 2009-04-22 上海道仑软件有限公司 Platform system and method for building information system
CN102214103A (en) * 2011-07-08 2011-10-12 珠海脉络软件有限公司 Method and system for establishing and performing task program based on functional unit
CN102479079A (en) * 2010-11-29 2012-05-30 中兴通讯股份有限公司 Method and device for generating application

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1920779A (en) * 2005-08-25 2007-02-28 中兴通讯股份有限公司 Configuration document based program flow control method
CN101354725A (en) * 2008-09-08 2009-01-28 中兴通讯股份有限公司 Method and apparatus for constructing and analyzing WAP page
CN101414945A (en) * 2008-10-15 2009-04-22 上海道仑软件有限公司 Platform system and method for building information system
CN102479079A (en) * 2010-11-29 2012-05-30 中兴通讯股份有限公司 Method and device for generating application
CN102214103A (en) * 2011-07-08 2011-10-12 珠海脉络软件有限公司 Method and system for establishing and performing task program based on functional unit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵跃华 等: "基于敏捷方式的Java代码生成方法的设计", 《计算机工程与设计》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224332A (en) * 2015-10-14 2016-01-06 深圳市金证科技股份有限公司 A kind of application program generates method and apparatus
CN105224332B (en) * 2015-10-14 2019-06-11 深圳市金证科技股份有限公司 A kind of application program generation method and device
CN105975276A (en) * 2016-05-09 2016-09-28 上海携程商务有限公司 Distributed construction system and method
CN105975276B (en) * 2016-05-09 2019-04-09 上海携程商务有限公司 Distribution building system and method

Also Published As

Publication number Publication date
WO2013185668A1 (en) 2013-12-19

Similar Documents

Publication Publication Date Title
US11886907B2 (en) Analytic model execution engine with instrumentation for granular performance analysis for metrics and diagnostics for troubleshooting
US9043759B1 (en) System and method for generating software unit tests simultaneously with API documentation
US9280442B1 (en) System and method for generating coverage reports for software unit tests
US10579349B2 (en) Verification of a dataflow representation of a program through static type-checking
CN106557413A (en) Based on the method and apparatus that code coverage obtains test case
JP2012513648A (en) Debug pipeline
US10936579B2 (en) Verifying data structure consistency across computing environments
US20080086296A1 (en) Model checking parameterized threads for safety
CN113032244B (en) Interface test method, device, computer system and computer readable storage medium
WO2016026328A1 (en) Information processing method and device and computer storage medium
CN101866315A (en) Test method and system of software development tool
EP3311265B1 (en) A computing platform and method thereof for searching, executing, and evaluating computational algorithms
CN105308578A (en) Diagnostics of state transitions
Celik et al. iCoq: Regression proof selection for large-scale verification projects
CN107391528B (en) Front-end component dependent information searching method and equipment
US20130125093A1 (en) Generating object-oriented programming language code from a multi-domain dynamic simulation model
EP2972880B1 (en) Kernel functionality checker
CN103577170A (en) Construction method and construction device for web application
Cristiá et al. A language for test case refinement in the Test Template Framework
RU2656580C2 (en) Determining the order of initialization of static objects
CA2738422C (en) Examining concurrent system states
CN115952089A (en) Software automation unit testing method and device, server and storage medium
EP2535813B1 (en) Method and device for generating an alert during an analysis of performance of a computer application
CN108334313A (en) Continuous integrating method, apparatus and code management system for large-scale SOC research and development
Neto et al. Component models for embedded systems in industrial cyber-physical systems

Legal Events

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

Application publication date: 20140212

RJ01 Rejection of invention patent application after publication