Information-based Quick Development Framework and method based on modularization
Technical field
The present invention relates to a kind of information-based Quick Development Framework and methods, more particularly to a kind of information based on modularization
Change Quick Development Framework and method.
Background technique
Nowadays, Information-based Item development efficiency and development quality have become enterprise development important indicator and influence because
Element, each informatization enterprise are proposed strong in terms of fast implementing personalized business demand, Quick thread, protection
Demand.How to be adjusted in time according to continually changing business event, accomplish quick response, information-based constantly push is allowed to manage
Have become the significant problem of enterprises pay attention.And Information-based Item Development Framework realize IT application in enterprises in play it is very important
Effect.Module Development Method mode has become one of the quick exploitation implementation of mainstream in Information-based Item Development Framework, but mesh
The preceding degree of modularization in the market is inadequate, and coarse size, reusability is low, is unable to satisfy specific demand, scale etc. is irregular, without shape
At integral framework.Furthermore component is difficult in maintenance, pulls one hair and move the whole body, and lacks extension mechanism, scaling difficulty, and when maintenance expense is taken
Power, higher cost have larger impact to the progress and quality of rectification Information-based Item, and component mode of operation is single, often
It is that single matching uses, needs human intervention in face of complex scene, it is time-consuming, at high cost, of poor quality.Currently, Information-based Item is all
It is more complicated, often used simultaneously using a variety of isomery frames, thus often there is the case where resource contention, lead to developer
It takes considerable time lookup, error correction and correction, seriously affects the progress of information-based exploitation, and lack unified standard to handle
Difference between each frame causes each framework composition difficulty larger, it is difficult to and it realizes the combination of frame, implementation can not be landed on a large scale,
Limit the use of part front end frame.
Summary of the invention
The present invention provides a kind of information-based Quick Development Framework and method based on modularization, at least to solve existing letter
Modularization coarse size, reusability are low in breathization development system, difficult in maintenance, mode of operation is single, in heterogeneous components frame/library
Lack unified standard, there are problems that resource contention.
The present invention provides a kind of information-based Quick Development Framework based on modularization, including front end frame/library, component
Pond, configuration file, intelligent assembly service, component loader, component interpreter, data server;
The front end frame/library set is for constructing different components, including mainstream in the market and non-mainstream front end frame
Frame, and can be integrated and be extended according to specific needs;
The component pool is used to unified maintenance using front end frame/library building component, and each component can have attribute
Information, the attribute information include rule numbers, type, version number, source, the scope of application, compatibility;
The configuration file is configured in actual development, and the one kind or one kind for needing to use are described in configuration file
Component can be also possible to descriptive usage scenario specific to a certain component numerals;
The intelligent assembly service is for receiving the one kind requested in configuration file or a class component, according in configuration file
The attribute information of required component realizes that the concrete operations to component, the operation include intelligent selection, combination and encapsulation;
The component loader is mainly used to charging assembly, including the various resources that different components need, automaticly inspects each
Resource conflict problem between component, the resource conflict problem include JS, CSS;If there is conflict, the component loader
Component is identified and the output that conflicts;
The component interpreter is used to handle component can be with execution script for browser;
The data server provides business datum for handling front end request.
Further, the front end frame/library set include primary JavaScript, AngularJS, VUE.JS,
Bootstrap。
Further, the information-based Quick Development Framework based on modularization further includes that module, the presentation mould is presented
Block is used to show the component after explaining.
Further, the presentation module is selected from one of PC, mobile terminal or a variety of.
Further, the intelligent assembly service further includes handling the function of the interactive command between client and component,
Business datum is obtained from the data server to be bound.
Further, the data server is service server.
Further, the compiler of front end frame is integrated in the component interpreter, and is solved using unified standard
It releases.
It is as follows the invention also discloses a kind of application method of above- mentioned information Quick Development Framework:
Step 1: when information-based Quick Development Framework receives operation requests, load obtains configuration file;
Step 2: by intelligent assembly service according to specific configuration file content to the component in component pool carry out selection or
Appropriate component is constructed by front end frame/library;
Step 3: after component is taken, component can be pushed to component loader by intelligent assembly service;
Step 4: the component that component loader receives push can load together resource required for component, and verify
With the resource conflict problem of other assemblies, if there is resource contention, the component that conflict can will be present is marked, if not conflicting,
Component is directly pushed to component interpreter, carry out component to be translated as perform script by component interpreter and returns execution foot
This, completes exploitation.
Further, service request needs if it exists in the step 3, and intelligent assembly service also needs simultaneously to data service
Device request data, after component and data are all taken, intelligent assembly service can bind component and data, push together
To component loader
The present invention compared with the existing technology, using front end frame/library, component pool, configuration file, intelligent assembly service, group
The combination of part loader, component interpreter, data server greatly improves information-based development efficiency and quality, reduces to group
The maintenance cost of part reduces the risk of system upgrade transformation, improves the reusability of component.Meanwhile the present invention is by using configuration
File, intelligent assembly service, component loader, have broken and have operated single limitation to component, so that exploitation is more intelligent, increase
The intelligence of system, alleviates the burden of developer.In addition, the present invention is by using component loader, component interpreter,
So that the exploitation under heterogeneous components frame/library becomes simpler, the Module Development Method between each frame can be made to fall on a large scale
Ground is implemented, and with the difference to handle between each frame of seeking unity of standard, realizes the combination of heterogeneous components frame.
Detailed description of the invention
Fig. 1 is the general frame figure of frame of the embodiment of the present invention;
Fig. 2 is resume module of embodiment of the present invention flow chart.
Specific embodiment
It in order to enable those skilled in the art to better understand the solution of the present invention, below will be to the skill in the embodiment of the present invention
Art scheme is clearly and completely described, it is clear that and the described embodiment is only a part of the embodiment of the present invention, without
It is whole embodiments.
The method for building up of Quick Development Framework of the embodiment of the present invention is as follows:
Step 1, deployment installation intelligent assembly service, component loader, component interpreter.
Step 2 safeguards component pool, includes the different components under isomery frame/library in component pool, defines the volume of each component
Number, version number, name, function description, source, compatibility, the characteristic attributes such as combination number (if it is combine component).
The configuration file of step 3, standard of compiling, configuration file content format should be able to be identified by Component service, unqualified
Configuration file will be detected and be prompted.
Step 4 writes routing rule, and service application is bound with configuration file.
Step 5, test use.
It is the frame general frame figure that the embodiment of the present invention proposes below as shown in Figure 1, including each front end frame/library set
1., component pool 2., Component service 3., configuration file 4., component loader 5., component interpreter 6., data server 7. and be in
8. existing module forms.
Functions are as follows:
(1) front end frame/library set is 1. for constructing different components, can be mainstream currently on the market and non-mainstream
Front end frame, such as primary JavaScript, AngularJS, VUE.JS, Bootstrap can carry out whole according to specific needs
It closes and extends;
(2) 2. component pool is used to the unified component for safeguarding and using and 1. constructing, and each component can have rule numbers, class
The attributes such as type, version number, source, the scope of application, compatibility, component pool are safeguarded by professional;
(3) 3. configuration file is configured in actual development, and the one kind or one for needing to use is described in configuration file
Class component can be also possible to descriptive usage scenario specific to a certain component numerals;
(4) 4. intelligent assembly service is used to receive the one kind requested in configuration file or a class component, according to configuration file
In number, type, the description etc. of required component realize the intelligent selection of component, combination and encapsulation etc. operated;Component service
Function further includes the interactive command handled between client and component, and business datum is 7. obtained from data server and is bound;
(5) 5. component loader is mainly used to load various assemblies, automatic to examine including the various resources that different components need
The resource conflict problems such as JS and the CSS between each component are looked into, if there is conflict, component can be identified and be conflicted defeated
Out;
(6) 6. component interpreter is used to handle component can be integrated various with execution script for browser in interpreter
The compiler of front end frame is explained using unified standard, and the script after explanation will be shown in client;
(7) 7. data server refers mainly to service server, for handling front end request, provides business datum;
(8) 8. presentation module is used to show the component after explaining, mainly refers to equipment such as PC, movements.
Each resume module process of the embodiment of the present invention is as shown in Fig. 2, when terminal has operation to make requests, and load obtains first
Take configuration file 3., and inform Component service 4. need according to corresponding configuration file 3. content carry out component selection or other
Operation (according to configuration file difference, operation is different);By taking component selects as an example, range of choice be component pool 2. in component, group
Part service 4. component pool 2. in selection component can be worked as to data server 7. request data (if there is service request) simultaneously
After all taking with data, 4. Component service can bind component and data, and push component to component loader 5., group
5. component that part loader receives push can load together resource required for component, and verify the money with other assemblies
Source collision problem, if there is resource contention, the component that conflict can will be present is marked, if do not conflicted, directly by component
It is pushed to component interpreter 6., 6. component be translated as script that terminal is able to carry out and return to terminal to show by interpreter
Show, completes exploitation.
The present invention in order to solve at present configure melt hair platform assembly degree it is inadequate, coarseness, reusability is low, component dimension
Shield is difficult and isomery frame/library lacks the problems such as standard is uniformly processed, to improve the configurationization effect of information-based development platform
Rate, fast implements the target of company standard informationization, and the embodiment of the present invention proposes the information based on modularization of a set of maturation
Change Quick Development Framework and method, realization is managed maintenance, to the component under isomery frame/library in a manner of component pool with intelligence
Energy Component service carries out intelligent screening, combination and encapsulation to component, is carried out using component loader and standard interpreter to component
Compiling and interpreting processing is uniformly loaded and carried out, realizes information system for rapid configuration.
The embodiment of the present invention using front end frame/library, component pool, configuration file, intelligent assembly service, component loader,
The combination of component interpreter, data server greatly improves information-based development efficiency and quality, reduce maintenance to component at
This, reduces the risk of system upgrade transformation, improves the reusability of component.Meanwhile the embodiment of the present invention by using configuration file,
Intelligent assembly service, component loader, have broken and have operated single limitation to component, so that exploitation is more intelligent, increases and are
The intelligence of system alleviates the burden of developer.In addition, the embodiment of the present invention is explained by using component loader, component
Device can make the Module Development Method between each frame extensive so that the exploitation under heterogeneous components frame/library becomes simpler
Landing is implemented, and with the difference to handle between each frame of seeking unity of standard, realizes the combination of heterogeneous components frame.
Finally it should be noted that the above embodiments are merely illustrative of the technical scheme of the present invention and are not intended to be limiting thereof, to the greatest extent
Invention is explained in detail referring to above-described embodiment for pipe, it should be understood by a person of ordinary skill in the art that technology
Personnel read present specification after still can with modifications or equivalent substitutions are made to specific embodiments of the invention, but this
A little modifications are changed within all without departing from the present patent application accompanying claims protection scope.