CN109460222A - Modularization method, apparatus, equipment and the storage medium of application program - Google Patents

Modularization method, apparatus, equipment and the storage medium of application program Download PDF

Info

Publication number
CN109460222A
CN109460222A CN201811318156.9A CN201811318156A CN109460222A CN 109460222 A CN109460222 A CN 109460222A CN 201811318156 A CN201811318156 A CN 201811318156A CN 109460222 A CN109460222 A CN 109460222A
Authority
CN
China
Prior art keywords
layer information
component
interface layer
assembly
application program
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
CN201811318156.9A
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.)
Guangzhou Huya Technology Co Ltd
Original Assignee
Guangzhou Huya 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 Guangzhou Huya Technology Co Ltd filed Critical Guangzhou Huya Technology Co Ltd
Priority to CN201811318156.9A priority Critical patent/CN109460222A/en
Publication of CN109460222A publication Critical patent/CN109460222A/en
Pending legal-status Critical Current

Links

Classifications

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

Abstract

The embodiment of the invention discloses modularization method, apparatus, equipment and the storage mediums of a kind of application program.Wherein, method includes: the interface layer information for obtaining first assembly and needing to call;The interface layer information of the interface layer information and each component that need to call according to the first assembly and the mapping relations for realizing layer information, determine the realization layer information of the second component;The realization layer information of second component is transferred to the first assembly, is called for first assembly according to the realization layer information and realizes layer;Wherein, the first assembly and the second component are belonging respectively to the different function module of application program.The embodiment of the present invention realizes the decoupling between component by service centre, avoids Circular dependency mistake;By being split as component, is individually constructed, reduce compilation time, improve development efficiency, reduce collaborative development difficulty.

Description

Modularization method, apparatus, equipment and the storage medium of application program
Technical field
The present embodiments relate to a kind of modularization method of client Development Framework technology more particularly to application program, Device, equipment and storage medium.
Background technique
It is also higher and higher to the functional requirement of application program with the expansion of the business of mobile terminal and abundant.
Each functional module (Module) of the function of application program dependent on composition application program, in order to realize more, more Complicated function, the code between functional module become increasingly complex with logic, lead to the coupling countless ties between functional module.This makes It obtains compilation time to extend, development efficiency is low, and collaborative development is difficult.
Summary of the invention
The embodiment of the present invention provides modularization method, apparatus, equipment and the storage medium of a kind of application program, is opened with improving Efficiency is sent out, collaborative development difficulty is reduced.
In a first aspect, the embodiment of the invention provides a kind of modularization methods of application program, comprising:
Obtain the interface layer information that first assembly needs to call;
According to the interface layer information and realization layer letter of interface layer information and each component that the first assembly needs to call The mapping relations of breath determine the realization layer information of the second component;
The realization layer information of second component is transferred to the first assembly, so that first assembly is according to the realization Layer information, which is called, realizes layer;
Wherein, the first assembly and the second component are belonging respectively to the different function module of application program.
Second aspect, the embodiment of the invention also provides a kind of modularization devices of application program, comprising:
Module is obtained, the interface layer information for needing to call for obtaining first assembly;
The interface layer of determining module, interface layer information and each component for needing to call according to the first assembly is believed Breath and the mapping relations for realizing layer information, determine the realization layer information of the second component;
Transfer module, for the realization layer information of second component to be transferred to the first assembly, for first group Part calls according to the realization layer information and realizes layer;
Wherein, the first assembly and the second component are belonging respectively to the different function module of application program.
The third aspect, the embodiment of the invention also provides a kind of electronic equipment, the electronic equipment includes:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the modularization method of application program described in any embodiment.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program realizes the modularization method of application program described in any embodiment when the program is executed by processor.
In the embodiment of the present invention, service centre is previously stored with the interface layer information of each component and realizes the mapping of layer information Relationship determines the information for realizing layer, so as to the interface layer information for needing to call according to first assembly for first assembly tune With to realize the decoupling between component by service centre, reduction compilation time improves development efficiency, reduces collaborative development Difficulty;Further, for component, it is only necessary to sent to service centre and need the interface layer information called, i.e., unidirectionally according to Service centre and unidirectional dependence is relied to need the interface layer of invocation component, you can learn that the realization layer information for needing to call, component Belonging functional module is not necessarily to Circular dependency, avoids Circular dependency mistake.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the modularization method for application program that the embodiment of the present invention one provides;
Fig. 2 a is a kind of flow chart of the modularization method of application program provided by Embodiment 2 of the present invention;
Fig. 2 b is a kind of flow chart of mapping relations acquisition methods provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of modularization schematic diagram for application program that inventive embodiments three provide;
Fig. 4 is a kind of architecture diagram of the application program for modularization that the embodiment of the present invention four provides;
Fig. 5 is a kind of structural schematic diagram of the modularization device for application program that the embodiment of the present invention five provides
Fig. 6 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present invention six provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart of the modularization method for application program that the embodiment of the present invention one provides, and the present embodiment can After carrying out modularization to the functional module application program, the case where being called between component.Wherein, application program Including multiple functional modules.After carrying out modularization to functional module, each functional module includes a component.Majority of case Under, between component there are interaction logics, if the directly two-way reference of two functional modules will lead to Circular dependency mistake, this is Because compiler itself does not support that relying on library has Circular dependency.In order to solve drawbacks described above, the embodiment of the present invention constructs service Center, various components have unidirectional dependence to service centre, to realize that the interaction between component is patrolled by service centre Volume, while avoiding Circular dependency mistake.
Method provided in this embodiment can be executed by the modularization device of application program, which can be by hardware And/or software sharing, and be typically integrated in electronic equipment.Specifically, which is service centre, and is integrated in application program In corresponding projects.In conjunction with Fig. 1, this method specifically includes following operation:
S110, the interface layer information that first assembly needs to call is obtained.
It in the present embodiment, describes and distinguishes for convenience, first assembly is as caller, and the second component is as called Person.Wherein, first assembly and the second component can be any component in application program.
In the present embodiment, first assembly and the second component are belonging respectively to the different function module of application program, such as first Component belongs to the login function module of application program, and the second component belongs to the payment function module of application program.In one example, There are interaction logic, engineering better simply for business can set first assembly and the second component for first assembly and the second component It, can mutual call operation in main functional modules.As business is gradually enriched, need first assembly and the second component from master It is split to respectively in functional module in two functional modules, such as first assembly is split in login function module, by second Component is split in payment function module, to form two functional modules including different components.
Optionally, the interface layer for needing to call to service centre's transmitting, such as the application programming interface for needing to call The telecommunications services center (Application Programming Interface, API) is obtained according to the interface layer that first assembly is transmitted Interface layer information.Optionally, interface layer information includes interface layer comspec.
The interface layer information and realization layer letter of S120, the interface layer information and each component that need to call according to first assembly The mapping relations of breath determine the realization layer information of the second component.
Service centre is previously stored with the interface layer information of each component and realizes the mapping relations of layer information, such as business A The interface layer information of component and the mapping relations for realizing layer information, the interface layer information of business B component and reflecting for realization layer information Penetrate relationship, the interface layer information of business C component and the mapping relations for realizing layer information.Optionally, interface layer information includes interface Layer comspec realizes that layer information includes realizing layer comspec.
Service centre is compared in mapping relations and looks into after receiving the interface layer information that first assembly needs to call It looks for, determines that the interface layer information mapped that first assembly needs to call realizes layer information.Assuming that first assembly calls second group Part then realizes that layer information is the realization layer information of the second component.
S130, the realization layer information of the second component is transferred to first assembly, so that first assembly is according to realization layer information It calls and realizes layer.
Optionally, service centre transmits the realization layer information of the second component to the interface layer of first assembly, such as realizes layer Comspec.The realization layer comspec that first assembly is transmitted according to service centre calls and realizes layer.
Optionally, first assembly calls realization layer according to layer comspec is realized by way of reflection.It is with Java Example, the mode of reflection includes but is not limited to: by the getClass method of Object class, obtaining object by object instance method And pass through Class.forName mode.
In the embodiment of the present invention, service centre is previously stored with the interface layer information of each component and realizes the mapping of layer information Relationship determines the information for realizing layer, so as to the interface layer information for needing to call according to first assembly for first assembly tune With to realize the decoupling between component by service centre, reduction compilation time improves development efficiency, reduces collaborative development Difficulty;Further, for component, it is only necessary to sent to service centre and need the interface layer information called, i.e., unidirectionally according to Service centre and unidirectional dependence is relied to need the interface layer of invocation component, you can learn that the realization layer information for needing to call, component Belonging functional module is not necessarily to Circular dependency, avoids Circular dependency mistake.
Embodiment two
Fig. 2 a is a kind of flow chart of the modularization method of application program provided by Embodiment 2 of the present invention, the present embodiment pair Each optional embodiment advanced optimizes in above-described embodiment, optionally, believes obtaining the interface layer that first assembly needs to call Before breath, additional operation " in response to the starting of application program, is obtained in the corresponding projects of application program, each component connects Mouth layer and the mapping relations for realizing layer " realize that layer information provides data basis to provide for component.In conjunction with Fig. 2 a, the present invention The method that embodiment provides includes following operation:
S210, the starting in response to application program are obtained in the corresponding projects of application program, the interface layer of each component Information and the mapping relations for realizing layer information.
Optionally, in response to the starting of application program, service logger is injected.It specifically, will in application program launching Service logger injects service centre.Service logger includes: the interface layer information of each component and realizes that the mapping of layer information is closed System.By injecting service logger in the heart in service, the interface layer information for realizing each component and the mapping for realizing layer information are closed The registration of system.
Optionally, the interface layer information of each component includes: corresponding in application program with the mapping relations for realizing layer information In the compilation process of projects, service centre's registered plug-ins believe the interface layer that component each in projects is scanned Breath and the mapping relations for realizing layer information.Specifically, service centre's registered plug-ins can be Gradle plug-in unit.Below with reference to figure The acquisition process of mapping relations is described in detail in 2b.
S211, in the compilation process of the corresponding projects of application program, service centre's registered plug-ins are to being pre-configured with Projects in the code of each component be scanned, generate interface layer information and realize the mapping relations of layer information, each component Code include current directory code and Jar packet.
S212, service centre's registered plug-ins filter the mapping relations of generation to service logger.
S213, the starting in response to application program, service logger injects in service centre, to obtain the interface layer of each component Information and the mapping relations for realizing layer information.
S220, the interface layer information that first assembly needs to call is obtained.
The interface layer information and realization layer letter of S230, the interface layer information and each component that need to call according to first assembly The mapping relations of breath determine the realization layer information of the second component.
S240, the realization layer information of the second component is transferred to first assembly, so that first assembly is according to realization layer information It calls and realizes layer.
In the present embodiment, by the starting in response to application program, obtain in the corresponding projects of application program, each group The interface layer of part and the mapping relations for realizing layer realize that layer information provides data basis to provide for component;It is taken by injection The mode of business Register realizes the registration of mapping relations.
Embodiment three
Fig. 3 is a kind of modularization schematic diagram for application program that inventive embodiments three provide.For in the prior art on the left of Fig. 3 Application architecture schematic diagram, in the prior art, projects generate application program 1.Application program 1 includes function of tonic chord mould Block, the main functional modules include that there are the first assemblies of interaction logic and the second component.Second component and the second component are in main function It can mutually be called in module, be not in Circular dependency mistake.
With the complication of business, the present embodiment sinks the component in application program 1, and first assembly is divided into first In functional module, by the second component clustering into the second functional module.Further, in component sinking watching, on the right side of Fig. 3, The interface layer of first assembly is stored into the first module, the realization layer of first assembly is stored into the second module, by second The interface layer of component is stored into third module, and the realization layer of the second component is stored into the 4th module.As it can be seen that the first function Module includes first assembly, and first assembly includes the first module and the second module;Second functional module include the second component, second Component includes third module and the 4th module.Arrow on the right side of Fig. 3 indicates the phase intermodulation between first assembly and the second component With relationship.
In the compilation process of the corresponding projects of application program, module of service centre's registered plug-ins to memory interface layer It realizes that the module of layer is scanned with storage, obtains interface layer information and realize the mapping relations of layer information, and by mapping relations It filters to service logger.In application program launching, service logger is injected in the heart in service.
In the present embodiment, each external exposed interface layer of component realizes layer without exposure;Meanwhile each component dependence needs to adjust With the interface layer of component.This is because component needs interface layer and the service centre of invocation component by relying on, will need to adjust It is transferred to service centre with the interface layer of component, corresponding realization layer can be called.As it can be seen that each component passes through external exposed interface Layer, so that other assemblies is made to know oneself interface layer, so that other assemblies can call oneself according to the definition of interface layer, without Need to be concerned about that oneself realizes the interior details of layer.
In some cases, for single projects, if there is component count it is more, then component sink During, more module can be generated.Module is more, and compilation speed is slower, and compilation time growth, development efficiency is caused to be lower The problem of.Based on this, in the application development stage, by chip card by the second module, the 4th module or application program It is compiled as independently operated program, and configured with program environment needed for independent compilation.
In Fig. 3, the second module, the 4th module and application program 1 are marked with dotted rectangle.Developer is in advance at this 1 title of the second module title, the 4th module title or application program is configured in ground environment, is obtained by Gradle plug-in unit local The title configured in environment, and be independently operated program by the corresponding module of title or compiling of application, and configure only Program environment needed for vertical compiling.
One module of configuration perhaps which module of the title of application program or application program are generally required in home environment It needs to be compiled as independently operated program, just configures its title.
Second module, the 4th module and application program are the dependence libraries of other assemblies or other applications, pass through by It is independently operated program as the module or compiling of application for relying on library, and program ring needed for configuring independent compilation Border so that relying on library does not depend on other any environment and any component, and then during collector, does not need to compile It translates and relies on library, reduce the module number for needing to compile, shorten the debug time of component.
Example IV
Fig. 4 is a kind of architecture diagram of the application program for modularization that the embodiment of the present invention four provides.In Fig. 4, application program Including service centre, interface layer, realize layer and infrastructure component layer.
In the present embodiment, interface layer includes interface (UI) interface layer and logical interface layer, realizes that layer includes that layer is realized at interface Layer is realized with logic.Correspondingly, interface layer information includes interface layer information and logical interface layer information, realizes layer packet It includes interface and realizes that layer information and logic realize layer information.Based on this, interface layer information includes: with the mapping relations for realizing layer information The mapping relations and logical interface layer information and logic of interface layer information and interface realization layer information realize layer information Mapping relations.Such as business A component interface layer information and realize the mapping relations of layer information, business B component interface layer information and Realize the mapping relations of layer information, the mapping relations of business C component interface layer information and realization layer information, business D component interface Layer information and the mapping relations for realizing layer information.
In Fig. 4, by taking business A component interface layer as an example, the realization layer in business A component includes that logic realizes that layer, interface are real Existing layer and control logic (presenter) layer.Realize that the logic in layer realizes that layer goes to realize logical interface layer, interface realizes that layer is gone Realize interface layer.The realization layer of business A component go to inherit the abstract interface with service (AbsXService) realize layer and Logic realizes layer.
In Fig. 4, infrastructure component layer includes general (Common) component, routing (Router) component, log Logger) group Part, network (Web) organize valence and report (Report) component etc..
Embodiment five
Fig. 5 is a kind of structural schematic diagram of the modularization device for application program that the embodiment of the present invention five provides.Using journey The modularization device of sequence includes: to obtain module 51, determining module 52 and transfer module 53.
Module 51 is obtained, the interface layer information for needing to call for obtaining first assembly;
Determining module 52, the interface layer information of interface layer information and each component for needing to call according to first assembly Mapping relations with layer information is realized, determine the realization layer information of the second component;
Transfer module 53, for the realization layer information of the second component to be transferred to first assembly, for first assembly according to It realizes that layer information is called and realizes layer;
Wherein, first assembly and the second component are belonging respectively to the different function module of application program.
In the embodiment of the present invention, service centre is previously stored with the interface layer information of each component and realizes the mapping of layer information Relationship determines the information for realizing layer, so as to the interface layer information for needing to call according to first assembly for first assembly tune With to realize the decoupling between component by service centre, reduction compilation time improves development efficiency, reduces collaborative development Difficulty;Further, for component, it is only necessary to sent to service centre and need the interface layer information called, i.e., unidirectionally according to Service centre and unidirectional dependence is relied to need the interface layer of invocation component, you can learn that the realization layer information for needing to call, component Belonging functional module is not necessarily to Circular dependency, avoids Circular dependency mistake.
Optionally, which further includes that mapping relations obtain module, the interface for needing to call in acquisition first assembly Before layer information, in response to the starting of application program, obtain in the corresponding projects of application program, the interface layer of each component is believed Breath and the mapping relations for realizing layer information.
Optionally, mapping relations obtain module in the starting in response to application program, obtain the corresponding project of application program In engineering, the interface layer information of each component and when realizing the mapping relations of layer information is specifically used for: in response to opening for application program It is dynamic, inject service logger;Service logger includes: the interface layer information of each component and the mapping relations for realizing layer information.
Optionally, the mapping relations of the interface layer information of each component and realization layer information, comprising: corresponding in application program In the compilation process of projects, service centre's registered plug-ins believe the interface layer that component each in projects is scanned Breath and the mapping relations for realizing layer information.
Optionally, first assembly includes storing the realization of the first module and storage first assembly of the interface layer of first assembly Second module of layer, the second component include the realization layer for storing the second component of third module and storage of the interface layer of the second component The 4th module;Second module, the 4th module or application program are compiled as independently operated program, and compile configured with independent Translate required program environment.
Optionally, the external exposed interface layer of each component, and rely on the interface layer for needing invocation component.
Optionally, interface layer information includes interface layer information and logical interface layer information, realizes that layer information includes boundary Realize that layer information and logic realize layer information in face;Interface layer information and the mapping relations for realizing layer information include: interface layer The mapping relations of layer information and the mapping relations of logical interface layer information and logic realization layer information are realized in information and interface.
The modularization device of application program provided by the embodiment of the present invention can be performed any embodiment of that present invention and be provided Application program modularization method, have the corresponding functional module of execution method and beneficial effect.
Embodiment six
Fig. 6 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present invention six provides, as shown in fig. 6, the electronics is set Standby includes processor 60, memory 61;The quantity of processor 60 can be one or more in electronic equipment, with one in Fig. 6 For processor 60;Processor 60, memory 61 in electronic equipment can be connected by bus or other modes, in Fig. 6 with For being connected by bus.
Memory 61 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer Sequence and module, if the corresponding program instruction/module of the modularization method of the application program in the embodiment of the present invention is (for example, answer With acquisition module 51, determining module 52 and the transfer module 53 in the modularization device of program).Processor 60 passes through operation storage Software program, instruction and module in memory 61, at the various function application and data of electronic equipment Reason, that is, realize the modularization method of above-mentioned application program.
Memory 61 can mainly include storing program area and storage data area, wherein storing program area can store operation system Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This Outside, memory 61 may include high-speed random access memory, can also include nonvolatile memory, for example, at least a magnetic Disk storage device, flush memory device or other non-volatile solid state memory parts.In some instances, memory 61 can be further Including the memory remotely located relative to processor 60, these remote memories can pass through network connection to electronic equipment. The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Embodiment seven
The embodiment of the present invention seven also provides a kind of computer readable storage medium for being stored thereon with computer program, calculates Machine program when being executed by computer processor for executing a kind of modularization method of application program, this method comprises:
Obtain the interface layer information that first assembly needs to call;
According to the interface layer information and realization layer information of interface layer information and each component that first assembly needs to call Mapping relations determine the realization layer information of the second component;
The realization layer information of second component is transferred to first assembly, so that first assembly is called in fact according to realization layer information Existing layer;
Wherein, first assembly and the second component are belonging respectively to the different function module of application program.
Certainly, a kind of computer-readable storage medium being stored thereon with computer program provided by the embodiment of the present invention Matter, computer program are not limited to method operation as above, can also be performed provided by any embodiment of the invention using journey Relevant operation in the modularization method of sequence
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set The method that standby (can be personal computer, server or the network equipment etc.) executes each embodiment of the present invention.
It is worth noting that, in the embodiment of the modularization device of above-mentioned application program, included each unit and mould Block is only divided according to the functional logic, but is not limited to the above division, and is as long as corresponding functions can be realized It can;In addition, the specific name of each functional unit is also only for convenience of distinguishing each other, the protection model being not intended to restrict the invention It encloses.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of modularization method of application program characterized by comprising
Obtain the interface layer information that first assembly needs to call;
According to the interface layer information and realization layer information of interface layer information and each component that the first assembly needs to call Mapping relations determine the realization layer information of the second component;
The realization layer information of second component is transferred to the first assembly, so that first assembly is believed according to the realization layer Breath, which calls, realizes layer;
Wherein, the first assembly and the second component are belonging respectively to the different function module of application program.
2. the method according to claim 1, wherein obtain first assembly need the interface layer information called it Before, further includes:
In response to the starting of application program, obtain in the corresponding projects of application program, the interface layer information and reality of each component The mapping relations of existing layer information.
3. according to the method described in claim 2, it is characterized in that, the starting in response to application program, obtains and applies journey In the corresponding projects of sequence, the interface layer information of each component and the mapping relations for realizing layer information, comprising:
In response to the starting of application program, service logger is injected;
The service logger includes: the interface layer information of each component and the mapping relations for realizing layer information.
4. according to the method described in claim 3, it is characterized in that, the interface layer information of each component and realization layer information Mapping relations, comprising:
In the compilation process of the corresponding projects of application program, service centre's registered plug-ins are to each group in the projects The mapping relations of interface layer information and realization layer information that part is scanned.
5. the method according to claim 1, wherein
The first assembly includes the of the realization layer of the first module and storage first assembly that store the interface layer of first assembly Two modules, second component include the realization layer for storing the second component of third module and storage of the interface layer of the second component 4th module;
Second module, the 4th module or the application program are compiled as independently operated program, and configured with independent Program environment needed for compiling.
6. the method according to claim 1, wherein the external exposed interface layer of each component, and relying on and needing to call The interface layer of component.
7. method according to claim 1-6, which is characterized in that
The interface layer information includes interface layer information and logical interface layer information, and the realization layer information includes interface reality Existing layer information and logic realize layer information;
The interface layer information and the mapping relations for realizing layer information include: that layer information is realized at interface layer information and interface Mapping relations and logical interface layer information and logic realize the mapping relations of layer information.
8. a kind of modularization device of application program characterized by comprising
Module is obtained, the interface layer information for needing to call for obtaining first assembly;
Determining module, the interface layer information of interface layer information and each component for needing to call according to the first assembly with The mapping relations for realizing layer information, determine the realization layer information of the second component;
Transfer module, for the realization layer information of second component to be transferred to the first assembly, for first assembly root It is called according to the realization layer information and realizes layer;
Wherein, the first assembly and the second component are belonging respectively to the different function module of application program.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now modularization method of the application program as described in any in claim 1-7.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The modularization method of the application program as described in any in claim 1-7 is realized when execution.
CN201811318156.9A 2018-11-07 2018-11-07 Modularization method, apparatus, equipment and the storage medium of application program Pending CN109460222A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811318156.9A CN109460222A (en) 2018-11-07 2018-11-07 Modularization method, apparatus, equipment and the storage medium of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811318156.9A CN109460222A (en) 2018-11-07 2018-11-07 Modularization method, apparatus, equipment and the storage medium of application program

Publications (1)

Publication Number Publication Date
CN109460222A true CN109460222A (en) 2019-03-12

Family

ID=65609556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811318156.9A Pending CN109460222A (en) 2018-11-07 2018-11-07 Modularization method, apparatus, equipment and the storage medium of application program

Country Status (1)

Country Link
CN (1) CN109460222A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377367A (en) * 2019-07-24 2019-10-25 广州虎牙科技有限公司 Arrrangement method, device, electric terminal and computer readable storage medium
CN111290740A (en) * 2020-02-21 2020-06-16 武汉联影医疗科技有限公司 Application program development method and device, computer equipment and storage medium
CN112698888A (en) * 2020-12-28 2021-04-23 广州虎牙科技有限公司 Application modularization, component calling and component initialization method and device
CN112698888B (en) * 2020-12-28 2024-04-19 广州虎牙科技有限公司 Method and device for componentization, component calling and component initializing of application program

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080104237A1 (en) * 2006-10-26 2008-05-01 Gilfix Michael A Auto-generation or auto-execution of web service description language call flow implementation
CN102622241A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Software upgrading method and software upgrading device
CN103530097A (en) * 2012-07-04 2014-01-22 深圳中兴网信科技有限公司 Implement method and device of module crossing middleware platform
CN106790501A (en) * 2016-12-15 2017-05-31 咪咕音乐有限公司 A kind of method for processing business and device redirected based on interface
CN107562415A (en) * 2017-08-18 2018-01-09 武汉斗鱼网络科技有限公司 A kind of paster functional framework implementation method and equipment
CN108255545A (en) * 2016-12-28 2018-07-06 阿里巴巴集团控股有限公司 The funcall method, apparatus of inter-module and component based architecture system
CN108717365A (en) * 2018-06-11 2018-10-30 广州酷狗计算机科技有限公司 The method and apparatus for executing function in the application

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080104237A1 (en) * 2006-10-26 2008-05-01 Gilfix Michael A Auto-generation or auto-execution of web service description language call flow implementation
CN102622241A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Software upgrading method and software upgrading device
CN103530097A (en) * 2012-07-04 2014-01-22 深圳中兴网信科技有限公司 Implement method and device of module crossing middleware platform
CN106790501A (en) * 2016-12-15 2017-05-31 咪咕音乐有限公司 A kind of method for processing business and device redirected based on interface
CN108255545A (en) * 2016-12-28 2018-07-06 阿里巴巴集团控股有限公司 The funcall method, apparatus of inter-module and component based architecture system
CN107562415A (en) * 2017-08-18 2018-01-09 武汉斗鱼网络科技有限公司 A kind of paster functional framework implementation method and equipment
CN108717365A (en) * 2018-06-11 2018-10-30 广州酷狗计算机科技有限公司 The method and apparatus for executing function in the application

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377367A (en) * 2019-07-24 2019-10-25 广州虎牙科技有限公司 Arrrangement method, device, electric terminal and computer readable storage medium
CN111290740A (en) * 2020-02-21 2020-06-16 武汉联影医疗科技有限公司 Application program development method and device, computer equipment and storage medium
CN112698888A (en) * 2020-12-28 2021-04-23 广州虎牙科技有限公司 Application modularization, component calling and component initialization method and device
CN112698888B (en) * 2020-12-28 2024-04-19 广州虎牙科技有限公司 Method and device for componentization, component calling and component initializing of application program

Similar Documents

Publication Publication Date Title
Demangeon et al. Practical interruptible conversations: distributed dynamic verification with multiparty session types and python
WO2017054531A1 (en) Yang model-based compiling method, and corresponding interface, component, and system
Damm et al. Understanding UML: A formal semantics of concurrency and communication in real-time UML
Din et al. Compositional reasoning about active objects with shared futures
CN103150154B (en) The implementation method and device of a kind of application plug
Ameur-Boulifa et al. Behavioural semantics for asynchronous components
CN112035090A (en) Intelligent contract management system and method based on containerization technology
CN109460222A (en) Modularization method, apparatus, equipment and the storage medium of application program
Kraemer et al. Aligning UML 2.0 state machines and temporal logic for the efficient execution of services
Jan et al. Flex‐eWare: a flexible model driven solution for designing and implementing embedded distributed systems
He A comprehensive survey of petri net modeling in software engineering
CN108595331B (en) Asynchronous interface testing method, medium, device and computing equipment
Henrio et al. Verifying the correct composition of distributed components: Formalisation and Tool
Din et al. Compositional reasoning about shared futures
CN101639775B (en) Constructing method of component and device
KR101190597B1 (en) Method port apparatus and composition method for robot software component
CN114489585A (en) Micro-service development framework for managing functional plugins and implementation method
CN111782194B (en) Automatic generation method of portable unit code based on aviation embedded open system architecture
CN115022312A (en) Method and device for realizing multiple intelligent contract engines, electronic equipment and storage medium
CN113626001A (en) API dynamic editing method and device based on script
CN114003232B (en) Transmission service implementation method based on avionics data model
WO2022205013A1 (en) Method and apparatus for generating program data packet, and storage medium
Jakob et al. An aspect-oriented approach to securing distributed systems
Seco Type safe composition in .NET
Fan et al. Adaptor Reconfiguration Based on Property Preserving Compliance in Evolving Cloud Computing

Legal Events

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

Application publication date: 20190312

RJ01 Rejection of invention patent application after publication