CN108363614A - A kind of business module management method, device and the server of application - Google Patents

A kind of business module management method, device and the server of application Download PDF

Info

Publication number
CN108363614A
CN108363614A CN201810187252.8A CN201810187252A CN108363614A CN 108363614 A CN108363614 A CN 108363614A CN 201810187252 A CN201810187252 A CN 201810187252A CN 108363614 A CN108363614 A CN 108363614A
Authority
CN
China
Prior art keywords
module
business
external interface
business module
json objects
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.)
Granted
Application number
CN201810187252.8A
Other languages
Chinese (zh)
Other versions
CN108363614B (en
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.)
Beijing Forever Technology Co Ltd
Original Assignee
Beijing Forever 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 Beijing Forever Technology Co Ltd filed Critical Beijing Forever Technology Co Ltd
Priority to CN201810187252.8A priority Critical patent/CN108363614B/en
Publication of CN108363614A publication Critical patent/CN108363614A/en
Application granted granted Critical
Publication of CN108363614B publication Critical patent/CN108363614B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/465Distributed object oriented systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Abstract

The business module management method of application provided by the invention,Device and server,Applied to software technology field,This method is that external interface is arranged in business module,Any business module can realize the reference to other business modules by external interface,Then the external interface of each business module is stored in the module management file pre-created,The external interface of each business module is managed by module management file consolidation,When some business module needs REFER object business module,Access modules are needed to manage file,The external interface of the target service module in module management file is stored in by the reference of preset interface identifier,And the reference to target service module is realized by the external interface,Method provided by the invention,The external interface of business module is focused in module management file,The reference code of external interface is avoided to be dispersed in each code for needing to quote the business module of other business modules,Effectively reduce the chaotic situation of business module reference.

Description

A kind of business module management method, device and the server of application
Technical field
The present invention relates to software technology fields, and in particular to a kind of business module management method, device and the service of application Device.
Background technology
Application program (referred to as applying) generally requires to design a variety of different business modules, such as an oa in exploitation (office automation) applies the business moulds such as the task creation for needing to design oa applications in exploitation, flow tracking, finance reimbursement Block.And in the iteration escalation process of application, it generally requires to delete certain business modules or increases certain business modules, if respectively There are adduction relationships between business module, then how to reduce the modification for being relied on business module, adjustment for other business moulds The influence of block just seems particularly necessary.
The way to manage for the business module applied at present is mainly, for there are each business modules of dependence, in quilt External interface is provided in the business module of dependence supplies other business module applications, other business modules that need to only quote corresponding external Interface, you can realize that the reference to other modules, this mode can effectively reduce the coupling between business module, make business mould Block structure is more clear.However, this mode spreads all over application due to the reference code of the external interface for other business modules Each corner of code easily causes to quote chaotic risk there are business module, and is once relied on business module and is deleted It removes, code change amount is big;Therefore the business module way to manage for how improving application, to reduce the chaotic feelings of business module reference Condition becomes those skilled in the art's problem needed to be considered.
Invention content
In view of this, the embodiment of the present invention provides a kind of business module management method, device and the server of application, with drop The chaotic situation of low business module reference.
To achieve the above object, the embodiment of the present invention provides the following technical solutions:
In a first aspect, the present patent application provides a kind of business module management method of application, including:
Start application, the application divides in advance there are multiple business modules;
Load the module management file pre-created;
The external interface of each business module is stored in the module management file;
Determine the external interface for being stored in the target service module in the module management file, wherein the target industry Business module is one of the multiple business modules applied and divided in advance;
Quote the external interface of the target service module;
Load the target service module.
Preferably, the module management file include the first json objects, and have defined in the first json objects to A few key-value pair, wherein the entitled interface identifier of the key-value pair, the value of key-value pair, which corresponds to, uses the same interface mark The external interface of knowledge;
The module management file that the load pre-creates, including:
The first json objects in the module management file pre-created described in reference load the first json objects In each key-value pair.
Preferably, the external interface by each business module is stored in the module management file, including:
The 2nd json objects are quoted in each business module, and described the is assigned by preset interface identifier in each business module Two json objects, wherein the second json objects have the function for providing external interface;
By each key-value pair stored in the interface identifier of the 2nd json objects acquisition and the first json objects Title is matched, and determines the target key value pair in the first json objects;
External interface in each business module is stored in the target key value centering of the first json objects.
Preferably, the 2nd json objects of reference in each business module, including:
All business modules are traversed, the reference for including in preset index file in each business module is loaded The function of the 2nd json objects.
Preferably, the determination is stored in the external interface of the target service module in the module management file, including:
Obtain the corresponding interface identifier of external interface of preset target service module;
By the first json pairs in the interface identifier of the external interface of the target service module and the module management file The key-value pair title of elephant is matched, and determines target key value pair;
The external interface of the reference target service module, including:
Quote the value of the target key value pair;
The load target service module, including:
Load the target service module corresponding to the value of the target key value pair.
Preferably, the value of the reference target key value pair, including:
Call back function is quoted, the value of the target key value centering storage is extracted by the call back function.
Preferably, the business module management method for the application that the present patent application provides, the module management file is by qml feet This language creates.
Second aspect, the present patent application provide a kind of business module managing device of application, including:
Start unit, for starting application, the application divides in advance multiple business modules;
First loading unit, for loading the module management file pre-created;
Storage unit, for the external interface of each business module to be stored in the module management file;
Determination unit, for determining the external interface for being stored in the target service module in the module management file, In, the target service module is one of the multiple business modules applied and divided in advance;
Precedents, the external interface for quoting the target service module;
Second loading unit, for loading the target service module.
Optionally, the storage unit, including:
Assignment subelement connects for quoting the 2nd json objects in each business module by preset in each business module Mouth mark assigns the 2nd json objects, wherein the second json objects have the function for providing external interface;
Coupling subelement is deposited in the interface identifier and the first json objects for obtaining the 2nd json objects The title of each key-value pair of storage is matched, and determines the target key value pair in the first json objects;
Storing sub-units, the object key for the external interface in each business module to be stored in the first json objects It is worth centering.
The third aspect, the present patent application provide a kind of server, including:Memory and processor;The memory storage There is the program executed suitable for the processor, to realize the business module management method of first aspect any one of them application Step.
Based on the above-mentioned technical proposal, the business module management method for the application that the present patent application provides, is first each business External interface is arranged in module, and any business module can realize the reference to other business modules by external interface, then will be each The external interface of business module is stored in the module management file pre-created, and each business is managed by module management file consolidation The external interface of module needs access modules to manage file, passes through when some business module needs REFER object business module Preset interface identifier reference is stored in the external interface of the target service module in module management file, and by this to external The existing reference to target service module of cause for gossip, the business module management method of application provided by the invention, by pair of business module External tapping focuses in module management file, other business modules manage file by access modules and quote other business modules, Rather than the external interface for directly quoting other business modules by business module in the prior art is used, avoid drawing for external interface It is dispersed in code in the code of each business module for needing to quote other business modules, it is mixed effectively to reduce business module reference Random situation.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is the flow chart of the business module management method of application provided in an embodiment of the present invention;
Fig. 2 is the structure diagram of the business module managing device of application provided in an embodiment of the present invention;
Fig. 3 is the structure diagram of the storage unit of the business module managing device of application provided in an embodiment of the present invention;
Fig. 4 is the structure diagram of server provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is the flow chart of the business module management method of application provided in an embodiment of the present invention, and this method can be applied to Electronic equipment, the optional such as laptop of the electronic equipment, smart mobile phone, PC (personal computer), which have, applies load demand User equipment, it is clear that the electronic equipment in some cases also can be selected network side server realize;Referring to Fig.1, this hair The business module management method for the application that bright embodiment provides may include:
Step S100, start application.
Optionally, user can click the application icon that electronic equipment screen is shown, trigger the startup of application;Certainly, user Also the startup of application can be triggered by the shortcut of other definition.
Using multiple business modules can be marked off as desired, often exist between each business module adduction relationship or Say dependence, i.e., the function of some business module, which is realized, depends on other business modules;For example, an oa (office automation) Using that can mark off task business, reimbursement business, weekly business etc. according to exploitation demand, each business can pass through code reality Reveal corresponding business module, and develop demand and generally require to connect each other between business module, by between business module Mutually reference, can effectively reduce the amount of writing of code, shorten the development cycle of application.
Step S110, the module management file pre-created is loaded.
Optionally, the form of module management file can be that (qml is a kind of descriptive script, module to qml files The file format of file is managed using .qml as suffix), it can realize module management file by pre-creating module management qml It pre-creates;As the embodiment of the present invention can be created that the qml files of module management (should in engineering by the script of qml Qml files are using .qml as suffix), realize the establishment of module management qml;Obviously, the form of module management file is not limited to Qml, module management file can also be the file of extended formatting form;
When application starts, the embodiment of the present invention can be loaded using the module management file pre-created.
Optionally, the first json defined in module management file (such as module management qml) of the embodiment of the present invention (JavaScript Object Notation, JS object tag) object, the institute of the application is stored by the first json objects There is the external interface of business module.
Optionally, at least one key-value pair is can define in the first json objects, the format of a key-value pair can be: {key:[]};Wherein, the corresponding values of content representation key for including in [], can refer to the corresponding arrays of key;Optionally, in this hair In bright embodiment, the key of a key-value pair can indicate that an interface identifier, value can indicate this in the first json objects The array of the external interface of the corresponding business module of interface identifier, i.e., it is all to be recordable in using the external interface of the interface identifier In the corresponding arrays of the key, so that being recordable in the same array using the external interface of same interface identifier.In this way The advantages of setting is that external interface can be grouped by user as needed, and interface identifier can be used to distinguish group, lead to Cross the title of rationally setting interface identifier, can convenient for users in programming process to the reference of interface identifier and identification, drop There is the probability of code error during low programming, enhances the readability of code file;Further, pass through interface identifier External interface is subjected to Classifying Sum, when needing to quote some external interface in program operation, it is only necessary to search for the external interface The interface identifier corresponding to key-value pair being stored in, rather than entire program code is traversed, it can just find desired pair External tapping effectively improves the efficiency of program execution.
The module management file being pre-created is loaded, as quotes the first json objects in module management file, and add The key-value pair being arranged in the first json objects is carried, is prepared for receipt of subsequent external interface.
As a kind of optional example, the representation of a key-value pair can be as in the first json objects:{“person”: [{interfaceObj}]};" person " indicates that interface identifier, interfaceObj are to external in wherein the first json objects Mouthful.
Step S120, the external interface of each business module is stored in module management file.
Optionally, each needs externally provide the business module that interface can be quoted in other words by other business modules and are respectively provided with There is external interface, reference external interface, which can be realized, quotes the corresponding business module of the external interface, external interface and business mould Block corresponds setting.
What needs to be explained here is that the present invention can the business module in need for externally providing reference interface be equal in application External interface is set, and the content of external interface can be the attribute of certain business modules, externally provide the file of interface or logic Path, business module specific call back function etc., there are one each is respectively provided with by the business module that other business modules are quoted External interface.
It is provided by the invention a kind of the external interface of each business module of application to be optionally stored in module management file In method, such as be named as on methods, the specific code of on methods is stored in module management file, can will by methods The external interface that each business module is provided is stored in module management file, and the parameter of on methods can be the 2nd json Object, i.e. on methods can be based on the 2nd json object implementatio8s of definition;The key of a key-value pair can be with table in 2nd json objects Show an interface identifier, value can indicate that (interface function is for the corresponding external interface of the interface identifier and interface function The method for returning to external interface), after quoting interface function, interface function returns to the external interface of business module.
Since module management file is global profile, reference module management text can be achieved from anywhere in application code Part, for each business module, if need to quote other business modules to be known, it is therefore desirable in advance be needs be by External interface is arranged in the business module of reference, while needing to record the mapping relations of the business module and external interface that are cited, When a certain business module needs to quote other business modules, need using completely the same with the external interface described in mapping relations External interface, only in this way just can guarantee other effective business modules.Meanwhile during writing application code, need about The correspondence for determining external interface and interface identifier, quote the business module of other business modules and the business module that is cited all The correspondence for clearly knowing external interface and interface identifier, to facilitate the management and use of external interface, in each business module Middle reference is stored in the 2nd json objects in the on methods in module management file, and by preset interface in each business module Mark assigns the partial parameters in the 2nd json objects, wherein the 2nd json objects are also equipped with the letter for providing external interface Reference external interface may be implemented in number, the function.
Later, by the interface identifier that the 2nd json objects obtain and the first json being also stored in module management file The title of each key-value pair stored in object is matched, and key-value pair title is identical as the interface identifier that the 2nd json objects obtain Key-value pair, the target key value pair in as the first json objects, target key value pair herein can be stored in the first json Any key-value pair in object, determines target key value to rear, and the external interface in each business module is stored in the first json pairs The target key value centering of elephant.
For example, an optional form of the 2nd json objects can be:{“flag”:“select”,“callback”: function(param){return{}}};Wherein, " flag " indicates interface identifier, " callback " table in the 2nd json objects Show the interface function for returning to external interface.By quoting the 2nd json objects, may be implemented pair for each business module applied External tapping is stored in module management file.
Optionally, for convenience of the on methods in each business module reference module management file, each business module, which creates, to be had Index file creates for example, the business module index file can be based on qml scripts, and (index qml files are made with .qml For suffix), it is clear that the form of index file is not limited to qml, and index file can also be the file of extended formatting form.
Optionally, being created in index file has load-on module, which, which is stored with to can be achieved to quote, is stored in module The function of on methods in management, traverses all business modules in code, and obtains the index file of each business module, and The load-on module in the index file of each business module is loaded, on methods are quoted, the external interface of each business module is stored In the module management file.
Step S130 determines the external interface for being stored in the target service module in module management file.
When any business module needs to quote other business modules, the business module being cited is target service mould Block, target service module can be using any one in the multiple business modules marked off in advance.
It should be noted that (being subsequently known as reference service for needing to quote the business module of other business modules Module), target service module is known, because programmer understands which business module needs to quote other business modules, this It is meant that the interface identifier corresponding to the external interface of reference service module precognition target service module, when reference service module When needing to quote other target service modules, the interface identifier of target service module can be directly acquired.
Obtain target service module the corresponding interface identifier of external interface after, by its with first in module management file The title of each key-value pair in json objects is matched, and determines target key value to (target key value is in the first json objects One in multiple key-value pairs of storage), the value of target key value pair is the external interface of target service module.
Step S140, the external interface of REFER object business module.
After the external interface for obtaining target service module, need further exist for quoting the external interface, due to business module External interface be stored in module management file in the key-value pair of the first json objects as the value of key-value pair, therefore, reference The external interface of target service module, the as value of REFER object key-value pair.
Optionally, the method for the external interface of a kind of REFER object business module provided by the invention, such as be named as Regist methods, regist methods can be used for the corresponding external interface of interface identifier of reference service module, the parameter of this method For an interface identifier and a call back function, the interface identifier in parameter determines target service for searching external interface Key-value pair where the external interface of module, call back function can be used for returning to the array corresponding to searched external interface, i.e., External interface corresponding with target service module is returned, that is, returns to the value of target key value centering storage.
Optionally, if during quoting other business modules, the interface identifier of mistake or pair of mistake have been used External tapping, or wish that the business module quoted does not provide external interface, referencing operation will be prompted, such as pop-up pair Frame is talked about, reference failure is reminded.
Step S150 loads target service module.
After the external interface for obtaining target service module, you can pass through the external interface REFER object business module.
By the business module management method of application provided by the present application, the external interface of business module is focused on into module It manages in file, other business modules manage file by access modules and quote other business modules, rather than use existing skill The external interface for directly quoting other business modules in art by business module avoids the reference code of external interface from being dispersed in each In the code for needing to quote the business module of other business modules, the chaotic situation of business module reference is effectively reduced.
Optionally, an Application Example of the business module management method of application provided by the present application can be as follows:
User double-clicks the startup icon for the application installed in PC machine, and application is divided into multiple business moulds in advance as desired Block, PC machine, which obtains, starts order, starts application.After starting application, the module management qml files pre-established in load application, After load-on module manages qml files, all business modules are traversed, and load the index file stored in each business module Index.qml, the side in the load-on module reference module management file stored in the index file by each business module External interface is stored in module management file by method by methods, later, needs the business mould for quoting other business modules Block quotes the regist methods in module management file, by the interface identifier of the external interface of the target service module of precognition, Reference is stored in the target key value pair in the first json objects in module management file, and stored in REFER object key-value pair The external interface of target service module realizes the reference to target service module.
By the business module management method of application provided by the present application, the external interface of business module is focused on into module It manages in file, other business modules manage file by access modules and quote other business modules, rather than use existing skill The external interface for directly quoting other business modules in art by business module avoids the reference code of external interface from being dispersed in each In the code for needing to quote the business module of other business modules, the chaotic situation of business module reference is effectively reduced.
Further, the juche idea of the business module management method based on application provided by the present application, the present patent application is also The method that business module externally provides external interface is provided, the content of this method is as follows:
It will apply and be divided into multiple business modules in advance according to demand, the quantity for dividing business module depends on application institute in fact The complicated and simple degree of existing function and user deposit respectively for a variety of situations such as the use demand of application, and by each business module It is stored in independent file.
Index file is created in the corresponding independent file of each business module, optionally, the index created herein File is the same with the index file addressed in the business module management method of application provided by the present application, can be based on qml script languages Speech creates, (a kind of optional name form be index.qml), it is clear that the form of index file is not limited to qml, index file It can also be the file of extended formatting form.
Include load-on module in the index file of each business module, module management text above-mentioned is quoted for each business module On methods in part, the external interface of each business module is stored in module management file, and business module can be by accessing mould Block management file obtains the external interface of other business modules offer, realizes that business module externally provides the purpose of external interface.
Another step, the juche idea of the business module management method based on application provided by the present application, the present patent application is also The method that business module quotes the external interface of other business modules is provided, for need to quote other business modules to external The business module of mouth, it is only necessary to quote the regist methods addressed in the module management method of application provided by the present application, obtain it His business module is stored in the external interface in module management file, can be direct if getting corresponding external interface The corresponding business module of the external interface is quoted, if corresponding external interface cannot be obtained, illustrates that the external interface is not deposited Or the corresponding business module of the external interface has been unloaded or the corresponding business module of the external interface is not yet developed.
It should be noted that whether business module externally provides external interface or business module quotes other to external Mouthful, the field contents such as involved interface identifier, external interface are arranged by programmer, are being provided external interface, are being drawn With in the operations such as other external interfaces, programmer clearly knows the content of the specific field to be used, need not pass through other Approach obtains.
Since the code content of each business module is stored respectively in independent file by the present invention, and module management is led to The realization of module management file is crossed, more independent between each business module, specific work(between the code revision of business module, business module The reference of energy and the deletion of business module will not all impact other business modules, effectively improve the dimension of the code of application Shield property and durability.
The business module managing device of application provided by the present application is introduced below, the business of application described below Module management device may be considered to realize the business module management method of application provided by the present application, be needed in central equipment The functional module framework of setting;Be described below content can with above it is cross-referenced.
Fig. 2 is a kind of structure diagram of the business module managing device of application provided in an embodiment of the present invention, with reference to Fig. 2, The device may include:
Start unit 10, for starting application, the application divides in advance multiple business modules;
First loading unit 20, for loading the module management file pre-created;
Storage unit 30, for the external interface of each business module to be stored in the module management file;
Determination unit 40, for determining the external interface for being stored in the target service module in the module management file, Wherein, the target service module is one of the multiple business modules applied and divided in advance;
Precedents 50, the external interface for quoting the target service module;
Second loading unit 60, for loading the target service module.
Optionally, with reference to Fig. 3, a kind of storage unit of the business module managing device of application provided in an embodiment of the present invention Structure diagram, which may include:
Assignment subelement 301 will be preset in each business module for quoting the 2nd json objects in each business module Interface identifier assigns the 2nd json objects, wherein the second json objects have the function for providing external interface;
Coupling subelement 302, the interface identifier for obtaining the 2nd json objects and the first json objects The title of each key-value pair of middle storage is matched, and determines the target key value pair in the first json objects;
Storing sub-units 303, the mesh for the external interface in each business module to be stored in the first json objects It marks in key-value pair.
Fig. 4 is the hardware structure diagram of server provided in an embodiment of the present invention, shown in Figure 4, including:May include: At least one processor 100, at least one communication interface 200, at least one processor 300 and at least one communication bus 400;
In embodiments of the present invention, processor 100, communication interface 200, memory 300, communication bus 400 quantity be It is at least one, and processor 100, communication interface 200, memory 300 complete mutual communication by communication bus 400;It is aobvious So, communication connection shown in processor 100 shown in Fig. 4, communication interface 200, memory 300 and communication bus 400 is illustrated only It is optional;
Optionally, communication interface 200 can be the interface of communication module, such as the interface of gsm module;
Processor 100 may be a central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.
Memory 300 may include high-speed RAM memory, it is also possible to further include nonvolatile memory (non- Volatile memory), a for example, at least magnetic disk storage.
Wherein, processor 100 is specifically used for executing the application program in memory, to realize the industry of application described above Business module management method.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other The difference of embodiment, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place is said referring to method part It is bright.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, depends on the specific application and design constraint of technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein General Principle can in other embodiments be realized in the case where not departing from core of the invention thought or scope.Therefore, originally Invention is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein Consistent widest range.

Claims (10)

1. a kind of business module management method of application, which is characterized in that including:
Start application, the application divides in advance there are multiple business modules;
Load the module management file pre-created;
The external interface of each business module is stored in the module management file;
Determine the external interface for being stored in the target service module in the module management file, wherein the target service mould Block is one of the multiple business modules applied and divided in advance;
Quote the external interface of the target service module;
Load the target service module.
2. the business module management method of application according to claim 1, which is characterized in that the module management file packet The first json objects are included, and have at least one key-value pair defined in the first json objects, wherein the title of the key-value pair For interface identifier, the value of key-value pair corresponds to the external interface using the same interface identifier;
The module management file that the load pre-creates, including:
The first json objects in the module management file pre-created described in reference load in the first json objects Each key-value pair.
3. the business module management method of application according to claim 2, which is characterized in that described by each business module External interface is stored in the module management file, including:
The 2nd json objects are quoted in each business module, and described second is assigned by preset interface identifier in each business module Json objects, wherein the second json objects have the function for providing external interface;
By the title of each key-value pair stored in the interface identifier of the 2nd json objects acquisition and the first json objects It is matched, determines the target key value pair in the first json objects;
External interface in each business module is stored in the target key value centering of the first json objects.
4. the business module management method of application according to claim 3, which is characterized in that described in each business module The 2nd json objects are quoted, including:
All business modules are traversed, are loaded described in the reference for including in preset index file in each business module The function of 2nd json objects.
5. the business module management method of application according to claim 2, which is characterized in that the determination is stored in described The external interface of target service module in module management file, including:
Obtain the corresponding interface identifier of external interface of preset target service module;
By the first json objects in the interface identifier of the external interface of the target service module and the module management file Key-value pair title is matched, and determines target key value pair;
The external interface of the reference target service module, including:
Quote the value of the target key value pair;
The load target service module, including:
Load the target service module corresponding to the value of the target key value pair.
6. the business module management method of application according to claim 5, which is characterized in that the reference object key The value of value pair, including:
Call back function is quoted, the value of the target key value centering storage is extracted by the call back function.
7. according to the business module management method of any applications of claim 1-6, which is characterized in that the module management File is created by qml scripts.
8. a kind of business module managing device of application, which is characterized in that including:
Start unit, for starting application, the application divides in advance multiple business modules;
First loading unit, for loading the module management file pre-created;
Storage unit, for the external interface of each business module to be stored in the module management file;
Determination unit, for determining the external interface for being stored in the target service module in the module management file, wherein institute It is one of the multiple business modules applied and divided in advance to state target service module;
Precedents, the external interface for quoting the target service module;
Second loading unit, for loading the target service module.
9. the business module managing device of application according to claim 8, which is characterized in that the storage unit, including:
Assignment subelement, for quoting the 2nd json objects in each business module, by preset interface mark in each business module Know and assign the 2nd json objects, wherein the second json objects have the function for providing external interface;
Coupling subelement stores in the interface identifier and the first json objects for obtaining the 2nd json objects The title of each key-value pair is matched, and determines the target key value pair in the first json objects;
Storing sub-units, the target key value pair for the external interface in each business module to be stored in the first json objects In.
10. a kind of server, which is characterized in that including:Memory and processor;The memory is stored with suitable for the processing Device execute program, with realize claim 1-7 any one of them application business module management method the step of.
CN201810187252.8A 2018-03-07 2018-03-07 Application service module management method and device and server Active CN108363614B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810187252.8A CN108363614B (en) 2018-03-07 2018-03-07 Application service module management method and device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810187252.8A CN108363614B (en) 2018-03-07 2018-03-07 Application service module management method and device and server

Publications (2)

Publication Number Publication Date
CN108363614A true CN108363614A (en) 2018-08-03
CN108363614B CN108363614B (en) 2022-04-12

Family

ID=63003766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810187252.8A Active CN108363614B (en) 2018-03-07 2018-03-07 Application service module management method and device and server

Country Status (1)

Country Link
CN (1) CN108363614B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825448A (en) * 2019-09-18 2020-02-21 五八有限公司 Method, device, electronic equipment and storage medium for realizing mutual calling of multiple service modules

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006277156A (en) * 2005-03-29 2006-10-12 Matsushita Electric Ind Co Ltd Method, device, and program for dynamically connecting object modules, computer-readable recording medium for program, program conversion method for forming object module, object module, and information processor
CN101221498A (en) * 2007-01-08 2008-07-16 华为技术有限公司 System and method for managing service modules
CN101295250A (en) * 2008-06-26 2008-10-29 腾讯科技(深圳)有限公司 Method and device for calling software module
CN102436396A (en) * 2011-09-09 2012-05-02 山东中创软件工程股份有限公司 Method and system for calling application integration
CN104834555A (en) * 2015-03-30 2015-08-12 百度在线网络技术(北京)有限公司 Method for invoking functional module, related device and device repairing method
US20160239358A1 (en) * 2008-04-14 2016-08-18 International Business Machines Corporation Extensible data interface for shared service module
CN106648563A (en) * 2015-10-30 2017-05-10 阿里巴巴集团控股有限公司 Method and device for dependence decoupling processing of shared module in application program
CN106681734A (en) * 2016-12-30 2017-05-17 广州华多网络科技有限公司 Response method and device for function interface call
CN107203419A (en) * 2016-03-17 2017-09-26 阿里巴巴集团控股有限公司 Intermodule call method, apparatus and system in application program
CN107273138A (en) * 2017-07-04 2017-10-20 杭州铜板街互联网金融信息服务有限公司 Decoupling method and system based on interaction between Android business modules

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006277156A (en) * 2005-03-29 2006-10-12 Matsushita Electric Ind Co Ltd Method, device, and program for dynamically connecting object modules, computer-readable recording medium for program, program conversion method for forming object module, object module, and information processor
CN101221498A (en) * 2007-01-08 2008-07-16 华为技术有限公司 System and method for managing service modules
US20160239358A1 (en) * 2008-04-14 2016-08-18 International Business Machines Corporation Extensible data interface for shared service module
CN101295250A (en) * 2008-06-26 2008-10-29 腾讯科技(深圳)有限公司 Method and device for calling software module
CN102436396A (en) * 2011-09-09 2012-05-02 山东中创软件工程股份有限公司 Method and system for calling application integration
CN104834555A (en) * 2015-03-30 2015-08-12 百度在线网络技术(北京)有限公司 Method for invoking functional module, related device and device repairing method
CN106648563A (en) * 2015-10-30 2017-05-10 阿里巴巴集团控股有限公司 Method and device for dependence decoupling processing of shared module in application program
CN107203419A (en) * 2016-03-17 2017-09-26 阿里巴巴集团控股有限公司 Intermodule call method, apparatus and system in application program
CN106681734A (en) * 2016-12-30 2017-05-17 广州华多网络科技有限公司 Response method and device for function interface call
CN107273138A (en) * 2017-07-04 2017-10-20 杭州铜板街互联网金融信息服务有限公司 Decoupling method and system based on interaction between Android business modules

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825448A (en) * 2019-09-18 2020-02-21 五八有限公司 Method, device, electronic equipment and storage medium for realizing mutual calling of multiple service modules
CN110825448B (en) * 2019-09-18 2023-10-27 五八有限公司 Method, device, electronic equipment and storage medium for realizing multi-service module mutual calling

Also Published As

Publication number Publication date
CN108363614B (en) 2022-04-12

Similar Documents

Publication Publication Date Title
US9990101B2 (en) Managing GUI control auto-advancing
RU2611966C2 (en) Data enrichment recommending system
CN103038788B (en) Providing multiple network resources
US9146735B2 (en) Associating workflows with code sections in a document control system
US20200403998A1 (en) Descendent case role alias
US10235701B2 (en) Creating managing, and provisioning packages of online applications
CN109614347B (en) Processing method and device for multi-level cache data, storage medium and server
CN108416199A (en) A kind of user authority control method of application, device and server
CA2451164A1 (en) Customizable components
CN110955559B (en) System and method for virtual machine resource marking
CN108279882B (en) Framework generation method, device, equipment and computer readable medium
EP2972818B1 (en) Application registration and interaction
CN108270626A (en) A kind of method, apparatus, equipment and the readable storage medium storing program for executing of upgrade server firmware
US11755564B2 (en) Compute-efficient effective tag determination for data assets
CN104216902A (en) Paging data loading method, device and system based on server paging
CN110517018A (en) A kind of any jump method of node based on activiti workflow and device
WO2019162830A1 (en) Chronologically ordered out-of-place update key-value storage system
US8621550B1 (en) Information technology resource compliance templates
CN108459842B (en) Model configuration method and device and electronic equipment
US20170132195A1 (en) Method and Apparatus Providing Contextual Suggestion in Planning Spreadsheet
CN108363614A (en) A kind of business module management method, device and the server of application
CN112486952A (en) Flow creation method, system, storage medium and electronic device
CN113076086B (en) Metadata management system and method for modeling model object using the same
CN111722881B (en) Resource expansion method, system and device of container cloud platform
CN104040537A (en) Systems and methods of automatic generation and execution of database queries

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
GR01 Patent grant
GR01 Patent grant