CN104035804B - A kind of application integration method and device - Google Patents

A kind of application integration method and device Download PDF

Info

Publication number
CN104035804B
CN104035804B CN201410293634.0A CN201410293634A CN104035804B CN 104035804 B CN104035804 B CN 104035804B CN 201410293634 A CN201410293634 A CN 201410293634A CN 104035804 B CN104035804 B CN 104035804B
Authority
CN
China
Prior art keywords
application
son
container
main
sub
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.)
Active
Application number
CN201410293634.0A
Other languages
Chinese (zh)
Other versions
CN104035804A (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.)
State Grid Corp of China SGCC
Beijing China Power Information Technology Co Ltd
Original Assignee
State Grid Corp of China SGCC
Beijing China Power Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, Beijing China Power Information Technology Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201410293634.0A priority Critical patent/CN104035804B/en
Publication of CN104035804A publication Critical patent/CN104035804A/en
Application granted granted Critical
Publication of CN104035804B publication Critical patent/CN104035804B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the present invention provides a kind of application integration method and device, and wherein method includes:Determine main application and wait to be integrated in the son application of the main application;The application description information of record son application, a corresponding application configuration table of son application are marked by application configuration;Main application is configured in application container;Loading method is applied by the way that the main application call is predefined in the application container;Apply loading method by described, according to application configuration table recorded son apply application description information, in application container load son application, establish it is described it is main application and sub- application hierarchical relationship, realize it is described it is main application with sub- application integrate;The main application and son application are controlled by application container.Application integration method provided in an embodiment of the present invention enables to the work of application and development relatively simple.

Description

A kind of application integration method and device
Technical field
The present invention relates to technical field of data processing, more specifically to a kind of application integration method and device.
Background technology
With the development of internet, particularly mobile Internet, the application loaded in electronic equipment is assigned to increasingly More functions, also expand therewith using scale;In this context, user often produces such a demand:Wish to be a old Using addition new opplication, so as to improve old application so that new opplication and old application can be used as an overall applicability; It is application integration that industry, which is referred to as this practice,.
The mode for a old application addition new opplication is at present:The code of old application is recompilated, new opplication is corresponding Code insertion into old application;Although the existing mode for old application addition new opplication realizes the purpose of application integration, but Need to recompilate the code of old application, the work of application and development is relatively complicated.
The content of the invention
In order to solve the above technical problems, the present invention provides a kind of application integration method and device, it is old answer to solve existing With addition new opplication mode present in application and development work it is relatively complicated the problem of.
To achieve the above object, the embodiment of the present invention provides following technical scheme:
A kind of application integration method, applied to electronic equipment, methods described includes:
Determine main application and wait to be integrated in the son application of the main application;
The application description information of record son application, a corresponding application configuration table of son application are marked by application configuration;
Main application is configured in application container;
Loading method is applied by the way that the main application call is predefined in the application container;
Loading method is applied by described, the application description information that the son recorded according to application configuration table is applied, is being answered With son application is loaded in container, the hierarchical relationship of the main application and sub- application is established, realizes the main application and sub- application It is integrated;
The main application and son application are controlled by application container.
It is wherein, described that by the main application call, predefined application loading method includes in the application container:
By the main application, add using with the JS interface corresponding using loading method, calling with the application The corresponding function of support method.
Wherein, described to apply loading method by described, the application that the son recorded according to application configuration table is applied describes Information, son application is loaded in the application container to be included:
The configuration file in the corresponding application bag of son application is read, and, application configuration table corresponding with the sub- application;
If what the configuration file in the application version that the application configuration table read is recorded, with the application bag was recorded Application version is different, then the configuration file in the application bag updates read application configuration table, passes through the application Loading method, the application description information recorded according to the application configuration table after renewal, in the application container described in loading Son application;
If what the configuration file in the application version that the application configuration table read is recorded, with the application bag was recorded Application version is identical, then applies loading method by described, the application description letter recorded according to the application configuration table read Breath, loads the sub- application in the application container.
Wherein, methods described also includes:
The array of the son application of the application container has been loaded onto by list of application record in the application container;
If the array of the son application currently loaded in the application container has been recorded in the list of application, in institute State when the sub- application is loaded in application container, the view of the sub- application is brought to Front, to be shown in the interface of electronic equipment On;
If the array of the son application currently loaded in the application container is not recorded in the list of application, in institute State when the sub- application is loaded in application container, the array of the sub- application is recorded in the list of application, and create for son application Build and apply catalogue.
Wherein, it is described to control the main application and the son application loaded to include by application container:
The control instruction of each application, and the control instruction transmission that will be received by application container are received by application container Applied to corresponding, call interface corresponding with the control instruction in correspondence application, perform the control instruction.
Wherein, it is described to control the main application and the son application loaded to include by application container:
Application message is received by application container, and the application message is transferred to by corresponding application by application container.
Wherein, it is described to control the main application and the son application loaded to include by application container
When any application needs new view, if the application container has discarded view, to need new view Using the discarded view, if the application container, without discarded view, the application for the new view of needs is created Build new view;Wherein, when the view of any application is discarded, the view discarded is placed in the application container.
Wherein, it is described to control the main application and the son application loaded to include by application container:
Received by application container and apply halt instruction;
If the application halt instruction is corresponding with main application, predefined main application in the application container is invoked at Method of shutting down, main application and son application are exited, returns to desktop;
If the application halt instruction is corresponding with son application, predefined sub- application in the application container is invoked at Method of shutting down, the son corresponding using halt instruction is removed from the list of application of application container and is applied, and remove the son The view of application.
Wherein, it is described to control the main application and the son application loaded to include by application container:
Son application is received by application container and deletes instruction;
Delet method is applied by the way that main application call is predefined in the application container;
Delet method is applied by described, stops the sub- application, and delete application configuration table corresponding to the sub- application.
The embodiment of the present invention also provides a kind of application integration device, and applied to electronic equipment, described device includes:
First determining module, for determining main application and waiting to be integrated in the son application of the main application;
First logging modle, for marking the application description information of record son application, a son application pair by application configuration Answer an application configuration table;
First configuration module, for configuring main application in application container;
First calling module, for by the main application call in the application container predefined application loading side Method;
First load-on module, for applying loading method by described, according to application configuration table recorded son apply Using description information, son application is loaded in application container, establishes the hierarchical relationship of the main application and sub- application, described in realization Main application is integrated with sub- application;
Control module, for controlling the main application and son to apply by application container.
Based on above-mentioned technical proposal, application integration method provided in an embodiment of the present invention, answering for application integration will need to be carried out With main application and son application is divided into, the application description information of record son application is marked by application configuration, is configured by application container Main application, realize the main application and sub- application it is integrated during, the embodiment of the present invention can be existed by main application call It is predefined in the application container to apply loading method, so as to apply loading method by described, according to application configuration table institute The application description information of the son application of record, loads son application in application container, so as to set up main application and sub- application Hierarchical relationship, realize the integrated of the main application and sub- application;Meanwhile in the control of main application and son application, the present invention is real Apply example and unified management control is carried out by application container, may be such that main application and son application use as an entirety.The present invention The application integration method that embodiment provides, main application and son application are the modules independent as one, by application configuration table, Application container, it is established that relatively independent main application and the hierarchical relationship of son application, and management is uniformly controlled using application container Main application and son application, realize the integrated of main application and son application;It is provided in an embodiment of the present invention to answer compared to prior art Recompilated with integrated approach without entering line code to the application for carrying out application integration, main application and son application are as one Independent module, it is not required to change, and allows each application individually exploitation, therefore the work of application and development is relatively simple.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is the flow chart of application integration method provided in an embodiment of the present invention;
Fig. 2 is another flow chart of application integration method provided in an embodiment of the present invention;
Fig. 3 is the structured flowchart of application integration device provided in an embodiment of the present invention;
Fig. 4 is the structured flowchart of the first logging modle provided in an embodiment of the present invention;
Fig. 5 is another structured flowchart of application integration device provided in an embodiment of the present invention;
Fig. 6 is the structured flowchart of control module provided in an embodiment of the present invention.
Embodiment
Application integration method provided by the invention is mainly used in the electronic equipments such as mobile device, computer, mainly passes through Modular framework realizes the integrated of application, is based primarily upon mixing application or web applications are realized.Application type is broadly divided at present Native applications, web applications, and mixing application;Mixing application refers to the combination of native applications and web applications, and a part uses Native applications, a part are applied using web, therefore part can be run in primitive environment, can partly be run on web.The present invention Inventor it has been investigated that:Because the globality of native applications is stronger, each application can not be realized by modular framework should With integrated, therefore the present invention is mainly applied as object progress application integration using mixing application or web.
Application integration mode provided in an embodiment of the present invention relates generally to following aspect:
The application for carrying out application integration is divided into main application and son application, main application is the body of application integration, passes through son The integrated of application is realized using with the hierarchical relationship of main application;
Application configuration table is defined, application configuration table can be used for the application description information of record application, using description information It can include:Using ID, Apply Names, application version, application interface height, application interface width, application type, application background Color, using towards (shown using transverse screen or portrait layout is shown, that is, the different directions applied), (applied using starting page address Beginning page is using the page of first entrance after opening, and the attribute is used to load start page) etc., table 1 shows application configuration table Relevant configuration explanation, can refer to.
Using ID
Apply Names
Application version
Application interface height
Application interface width
Application type
Application background color
Using direction
Using starting page address
Table 1
Application container is defined, application container is the control in face that other controls can be placed on it.Container typically follows The user of configurable principle, i.e. container can by the configuration to container parameters, to reach the use demand of oneself, without Need the code of modification container.In the present invention, application container can be used for configuring main application, and loading is applied, described in foundation Main application and the hierarchical relationship of sub- application, so as to realize the integrated of the main application and sub- application;
The methods of defined in application container using loading, stopping, deletion, so that by application container to main application and son Using being controlled, it is included in main application and the execution, the management of application communication etc. after sub- application integration, instructed to application.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
Fig. 1 is the flow chart of application integration method provided in an embodiment of the present invention, and this method can be applied to electronic equipment, special It is not mobile device, reference picture 1, this method can include:
Step S100, determine main application and wait to be integrated in the son application of the main application;
Optionally, main application can be mixing application or web applications, and sub- application can also be mixing application or web applications.
Step S110, the application description information of record son application is marked by application configuration, corresponding one of a son application should Use allocation list;
Database purchase application configuration table can be set in the embodiment of the present invention, and a sub- application can correspond to an application configuration Table, it can record in application configuration table and apply ID, Apply Names, application version, application interface height, application interface width, apply Type, application background color, using direction, description information is applied using starting page address etc..
Optionally, the application description information of main application is also can record in application configuration table.
Step S120, main application is configured in application container;
Optionally, it can realize and main apply matching somebody with somebody in application container by configuring the pointer of main application in application container Put.
It should be noted that control of the application container as a face that other controls can be placed on it, this area Technical staff knows how to realize a configuration applied in application container and held that the embodiment of the present invention does not repeat.
Step S130, loading method is applied by the way that the main application call is predefined in the application container;
Optionally, the methods of embodiment of the present invention can be in advance defined in application container using loading, stopping, deletion, When carrying out the loading of sub- application, the embodiment of the present invention can realize the predefined calling using loading method by main application, from And set up the hierarchical relationship of main application and sub- application.
In embodiments of the present invention, son application is typically write by html+js+css language, and its bottom has primary function (such as the loading function of application) is supported, when applying correlation technique using son (during such as application loading), JS can be passed through A kind of (javascript, client-side scripting language based on object and event-driven and with relative safety) interface interchange phase The primary function of bottom of pass.Therefore, the embodiment of the present invention can by way of main application call is predefined using loading method Think:By the main application, using with the JS interface corresponding using loading method, call and the application loading side The corresponding function of method.Applied so as to pass through the son carried out subsequently with the function corresponding using loading method called Loading.
Step S140, loading method is applied by described, the application that the son recorded according to application configuration table is applied describes Information, in application container load son application, establish it is described it is main application and sub- application hierarchical relationship, realize it is described it is main application with Son application integrates;
The son application that the embodiment of the present invention can be recorded by application configuration table carries out what need to be loaded using description information The determination of the concrete condition of son application, so as to load son application in application container by the application loading method.
Optionally, application container can hold the pointer of sub- application.It should be noted that application container can incite somebody to action as one Other controls are placed on it the control in face, and those skilled in the art are determining loading method, it is determined that the application that need to be loaded Concrete condition after, it is known that how to realize a loading applied in application container, the embodiment of the present invention does not repeat.
Optionally, the pointer for the main application that the embodiment of the present invention can be held by application container, and the pointer of son application, Establish the hierarchical relationship of the main application and sub- application so that main application forms tree-like hierarchical relationship with son application, so far, main Application integration is realized using with son application.
Step S150, the main application and son is controlled to apply by application container.
After main application realizes application integration with son application, how main application and son application are controlled, realize main answer Being turned into the application function with sub- application needs to solve the problems, such as.The visual concrete condition of the embodiment of the present invention, using pre-defined Application stop, delete the methods of, by application container to it is main application and son application be controlled.
Application integration method provided in an embodiment of the present invention, the application that need to carry out application integration is divided into main application and son should With, by application configuration mark record son application application description information, main application is configured by application container, is realizing the master Using with sub- application it is integrated during, the embodiment of the present invention can be predefined by main application call in the application container Apply loading method, so as to by described apply loading method, the application of the son application recorded according to application configuration table is retouched Information is stated, son application is loaded in application container, so as to set up the hierarchical relationship of main application and sub- application, realizes that the master should With integrated with sub- application;Meanwhile in the control of main application and son application, the embodiment of the present invention is united by application container One management control, it may be such that main application and son application use as an entirety.Application integration side provided in an embodiment of the present invention Method, main application and son application are the modules independent as one, pass through application configuration table, application container, it is established that relatively only Vertical main application and the hierarchical relationship of son application, and the main application of management and son application are uniformly controlled using application container, realize Main application and son are applied integrated;Compared to prior art, application integration method provided in an embodiment of the present invention is without to carrying out Line code recompility is entered in the application of application integration, and main application and son application are the modules independent as one, are not required to make more Change, and allow each application individually exploitation, therefore the work of application and development is relatively simple.
Optionally, the application description information that the embodiment of the present invention is applied in the son recorded according to application configuration table, in institute When stating loading application in application container, in the case of renewable application configuration table, the embodiment of the present invention can be applied in renewal After allocation list, the application description information of the son application recorded by the application configuration table after renewal, in the application container Loading son application.Corresponding, Fig. 2 shows another flow chart of application integration method provided in an embodiment of the present invention, reference picture 2, this method can include:
Step S200, determine main application and wait to be integrated in the son application of the main application;
Step S210, the application description information of record son application is marked by application configuration, corresponding one of a son application should Use allocation list;
Step S220, main application is configured in application container;
Step S230, loading method is applied by the way that the main application call is predefined in the application container;
Step S240, the configuration file in the corresponding application bag of sub- application is read, and, it is corresponding with the sub- application to answer Use allocation list;
Optionally, the embodiment of the present invention can read the configuration file in application bag corresponding to son application by application ID, and Corresponding application configuration table.
If the configuration text in the application version that application configuration table step S250, read is recorded, with the application bag The application version that part is recorded is different, then the configuration file in the application bag updates read application configuration table, leads to The application description information applied loading method, recorded according to the application configuration table after renewal is crossed, in the application container The middle loading sub- application;
If the configuration text in the application version that application configuration table step S260, read is recorded, with the application bag The application version that part is recorded is identical, then applies loading method by described, recorded according to the application configuration table read Using description information, the sub- application is loaded in the application container;
Step S270, the main application and son is controlled to apply by application container.
Optionally, also settable list of application is used for the number for recording the son application for being loaded onto application container in application container Group.Obviously, the array of main application also can record in the list of application.
Optionally, in application container during the application of loading, answered if the array of currently-loaded son application has been recorded in With in list, then the embodiment of the present invention can bring to Front the view of the sub- application, to be shown on interface of electronic equipment;If work as The array of preceding loaded son application is not recorded in list of application, then the embodiment of the present invention can record the son in list of application The array of application, and apply catalogue using establishment for the son.
It can be control application that the embodiment of the present invention controls the main application and the sub- application loaded by application container The execution of control instruction, the transmission of application message is controlled, control the use of application view, control application is deleted, and control application stops Only etc..Below by for being described in detail by way of application container controls main application and has loaded sub- application.
Optionally, in terms of the control instruction of application is performed, application will be uniformly sent to for the control instruction of each application Container, a step is carried out by application container and is transferred to each application, so as to realize the execution of control instruction;Specifically, the present invention is implemented Example can receive the control instruction of each application by application container, and be transferred to the control instruction received pair by application container It should apply, call interface corresponding with the control instruction in correspondence application, perform the control instruction.
Optionally, in terms of the transmission of application message, application container be responsible for it is each apply transmission information, the page is beaten Open and close, which such as close, malfunctioned at the information, to be uniformly sent to application container, and each application is further notified by application container;Specifically, this hair Bright embodiment can receive application message by application container, and the application message is transferred into corresponding answer by application container With.When needing to carry out information transmission between, the information of required transmission also will uniformly be sent to application container, by application container Enter the distribution of row information.
Optionally, in the use of control application view, application container can be responsible for reclaiming the discarded view of each application Object, when some view of some application is discarded, the view discarded will not be destroyed, and be placed in application container, when When a certain application needs new view, if having discarded view in application container, the discarded view can be used, if in application container View is not discarded, then carries out the establishment of new view object again.Specifically, the embodiment of the present invention can need newly to regard in any application During figure, if the application container has discarded view, be need new view using the discarded view, if institute State application container and create new view without discarded view, the then application for the new view of needs;Wherein, regarding in any application When figure is discarded, the view discarded is placed in the application container.
Optionally, in terms of controlling using stopping, when application stops, the embodiment of the present invention can first confirm to need what is stopped Using whether based on apply, if main application, then exit it is main application and son application, return desktop, if son application, then by the son Removed using from the list of application of application container, and remove the view of the sub- application.Specifically, the embodiment of the present invention can pass through Application container receives and applies halt instruction, if the application halt instruction is corresponding with main application, is invoked at the application and holds In device it is predefined it is main apply method of shutting down, exit it is main application and son application, return desktop, if it is described application halt instruction with son Using corresponding, then it is invoked at predefined son in the application container and applies method of shutting down, from the list of application of application container It is middle to remove the son application corresponding using halt instruction, and remove the view of the sub- application.
Optionally, control apply deletion in terms of, using delete when, the embodiment of the present invention remove above-mentioned application stop correlation Operation is outer, will also delete the record applied in associated documents, including application configuration table and list of application.Specifically, the present invention is real Instruction can be deleted by application container reception son application by applying example, be answered by the way that main application call is predefined in the application container With delet method, delet method is applied by described, stops the sub- application, and delete application configuration corresponding to the sub- application Table.
Application integration method provided in an embodiment of the present invention is compiled again without entering line code to the application for carrying out application integration Translate, main application and son application are the modules independent as one, are not required to change, and allow each application individually exploitation, therefore The work of application and development is relatively simple.
Application integration device provided in an embodiment of the present invention is introduced below, application integration device described below can With above-described application integration method mutually to should refer to.
Fig. 3 is the structured flowchart of application integration device provided in an embodiment of the present invention, and the device can be applied to electronic equipment, Particularly in mobile device, reference picture 3, the device can include:
First determining module 100, for determining main application and waiting to be integrated in the son application of the main application;
Optionally, main application can be mixing application or web applications, and sub- application can also be mixing application or web applications.
First logging modle 200, for marking the application description information of record son application, a son application by application configuration A corresponding application configuration table;
First configuration module 300, for configuring main application in application container;
First calling module 400, for predefined application to add in the application container by the main application call Support method;
First load-on module 500, for applying loading method by described, the son recorded according to application configuration table is applied Application description information, in application container load son application, establish it is described it is main application and sub- application hierarchical relationship, realize institute State the integrated of main application and sub- application;
Control module 600, for controlling the main application and son to apply by application container.
Optionally, Fig. 4 shows a kind of alternative construction of the first logging modle 200 provided in an embodiment of the present invention, reference Fig. 4, the first logging modle 200 can include:
Reading unit 210, for reading the configuration file in the application bag corresponding to sub- application, and, with the sub- application Corresponding application configuration table;
First loading unit 220, if the application version that the application configuration table for being read is recorded, with the application bag In the application version that is recorded of configuration file it is different, then the configuration file in the application bag updates read application Allocation list, by the application description information applied loading method, recorded according to the application configuration table after renewal, described The sub- application is loaded in application container;
Second loading unit 230, if the application version that the application configuration table for being read is recorded, with the application bag In the application version that is recorded of configuration file it is identical, then loading method is applied by described, according to the application configuration read The application description information that table is recorded, the sub- application is loaded in the application container.
Optionally, Fig. 5 shows another structured flowchart of application integration device provided in an embodiment of the present invention, with reference to Fig. 3 Shown in Fig. 5, application integration device can also include:
Second logging modle 700, for being loaded onto the application by list of application record in the application container The array of the son application of container;
First execution module 800, if the array of the son application for currently being loaded in the application container has been recorded in In the list of application, then when the sub- application is loaded in the application container, the view of the sub- application is brought to Front, with aobvious Show on the interface of electronic equipment;
Second execution module 900, if the array of the son application for currently being loaded in the application container is not recorded in In the list of application, then when the sub- application is loaded in the application container, the sub- application is recorded in the list of application Array, and for the son application establishment apply catalogue.
Optionally, Fig. 6 shows a kind of alternative construction of control module 600, reference picture 6, and control module 600 can wrap Include:
First control unit 610, for receiving the control instruction of each application by application container, and will by application container The control instruction received is transferred to corresponding application, calls interface corresponding with the control instruction in correspondence application, performs The control instruction.
Optionally, control module 600 can also have following alternative construction:
Second control unit (not shown), for receiving application message by application container, and by application container by institute State application message and be transferred to corresponding application;
Or, the 3rd control unit (not shown), for when any application needs new view, if the application container has Discarded view is then the new view of needs using the discarded view, if the application container does not have what is discarded View, the then application for the new view of needs create new view;Wherein, when the view of any application is discarded, the view discarded It is placed in the application container;
Or, the 3rd control unit (not shown), apply halt instruction for being received by application container;If the application stops Only instruct it is corresponding with main application, then be invoked in the application container it is predefined it is main apply method of shutting down, exit main application With sub- application, desktop is returned;If the application halt instruction is corresponding with son application, it is invoked in the application container and makes a reservation for The son application method of shutting down of justice, the son corresponding using halt instruction is removed from the list of application of application container and is applied, And remove the view of the sub- application;
Or, the 4th control unit (not shown), son application, which is received, for passing through application container deletes instruction;Pass through main application It is invoked at and predefined in the application container applies delet method;Delet method is applied by described, stops the sub- application, And delete application configuration table corresponding to the sub- application.
Application integration device provided in an embodiment of the present invention is compiled again without entering line code to the application for carrying out application integration Translate, main application and son application are the modules independent as one, are not required to change, and allow each application individually exploitation, therefore The work of application and development is relatively simple.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be and other The difference of embodiment, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment For, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is said referring to method part It is bright.
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and The interchangeability of software, the composition and step of each example are generally described according to function in the above description.These Function is performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specialty Technical staff can realize described function using distinct methods to each specific application, but this realization should not Think beyond the scope of this invention.
Directly it can be held with reference to the step of method or algorithm that the embodiments described herein describes with hardware, processor Capable software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal 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, professional and technical personnel in the field are enable to realize or using the present invention. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (10)

  1. A kind of 1. application integration method, it is characterised in that applied to electronic equipment, methods described includes:
    Determine main application and wait to be integrated in the son application of the main application;
    The application description information of record son application, a corresponding application configuration table of son application are marked by application configuration;
    Main application is configured in application container;
    Loading method is applied by the way that the main application call is predefined in the application container;
    Loading method is applied by described, the application description information that the son recorded according to application configuration table is applied, is held in application Son application is loaded in device, establishes the hierarchical relationship of the main application and sub- application, realizes the integrated of the main application and sub- application;
    The main application and son application are controlled by application container;
    Wherein, the main application is mixing application or web applications, and the son application is also mixing application or web applications;
    The hierarchical relationship for establishing the main application and sub- application includes:
    The pointer for the main application held by the application container and the pointer of the sub- application, establish the main application With the hierarchical relationship of sub- application so that the main application forms tree-like hierarchical relationship with the son application.
  2. 2. application integration method according to claim 1, it is characterised in that it is described by the main application call described Predefined application loading method includes in application container:
    By the main application, using with the JS interface corresponding using loading method, call and the application loading side The corresponding function of method.
  3. 3. application integration method according to claim 1, it is characterised in that described to apply loading method, root by described The application description information that the son recorded according to application configuration table is applied, son application is loaded in the application container to be included:
    The configuration file in the corresponding application bag of son application is read, and, application configuration table corresponding with the sub- application;
    If the application that the configuration file in the application version that the application configuration table read is recorded, with the application bag is recorded Version is different, then the configuration file in the application bag updates read application configuration table, is loaded by the application Method, the application description information recorded according to the application configuration table after renewal, the son is loaded in the application container should With;
    If the application that the configuration file in the application version that the application configuration table read is recorded, with the application bag is recorded Version is identical, then by the application description information applied loading method, recorded according to the application configuration table read, The sub- application is loaded in the application container.
  4. 4. application integration method according to claim 1, it is characterised in that also include:
    The array of the son application of the application container has been loaded onto by list of application record in the application container;
    If the array of the son application currently loaded in the application container has been recorded in the list of application, answered described During with loading the sub- application in container, the view of the sub- application is brought to Front, to be shown on the interface of electronic equipment;
    If the array of the son application currently loaded in the application container is not recorded in the list of application, answered described During with loading the sub- application in container, the array of the sub- application is recorded in the list of application, and create and answer for son application Use catalogue.
  5. 5. application integration method according to claim 1, it is characterised in that described to control the master by application container With and loaded son application include:
    Receive the control instruction of each application by application container, and be transferred to the control instruction received pair by application container It should apply, call interface corresponding with the control instruction in correspondence application, perform the control instruction.
  6. 6. application integration method according to claim 1, it is characterised in that described to control the master by application container With and loaded son application include:
    Application message is received by application container, and the application message is transferred to by corresponding application by application container.
  7. 7. application integration method according to claim 1, it is characterised in that described to control the master by application container With and loaded son application include
    When any application needs new view, if the application container has discarded view, to need the application of new view It is new to need the application of new view to create if the application container is without discarded view using the discarded view View;Wherein, when the view of any application is discarded, the view discarded is placed in the application container.
  8. 8. application integration method according to claim 1, it is characterised in that described to control the master by application container With and loaded son application include:
    Received by application container and apply halt instruction;
    If the application halt instruction is corresponding with main application, it is invoked at predefined main application in the application container and stops Method, main application and son application are exited, returns to desktop;
    If the application halt instruction is corresponding with son application, it is invoked at predefined son application in the application container and stops Method, the son corresponding using halt instruction is removed from the list of application of application container and is applied, and remove the sub- application View.
  9. 9. application integration method according to claim 1, it is characterised in that described to control the master by application container With and loaded son application include:
    Son application is received by application container and deletes instruction;
    Delet method is applied by the way that main application call is predefined in the application container;
    Delet method is applied by described, stops the sub- application, and delete application configuration table corresponding to the sub- application.
  10. 10. a kind of application integration device, it is characterised in that applied to electronic equipment, described device includes:
    First determining module, for determining main application and waiting to be integrated in the son application of the main application;
    First logging modle, for marking the application description information of record son application, a son application corresponding one by application configuration Open application configuration table;
    First configuration module, for configuring main application in application container;
    First calling module, for applying loading method by the way that the main application call is predefined in the application container;
    First load-on module, for applying loading method by described, the application of the son application recorded according to application configuration table Description information, son application is loaded in application container, establish the hierarchical relationship of the main application and sub- application, realize that the master should With integrated with sub- application;
    Control module, for controlling the main application and son to apply by application container;
    Wherein, the main application is mixing application or web applications, and the son application is also mixing application or web applications;
    The hierarchical relationship for establishing the main application and sub- application includes:
    The pointer for the main application held by the application container and the pointer of the sub- application, establish the main application With the hierarchical relationship of sub- application so that the main application forms tree-like hierarchical relationship with the son application.
CN201410293634.0A 2014-06-26 2014-06-26 A kind of application integration method and device Active CN104035804B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410293634.0A CN104035804B (en) 2014-06-26 2014-06-26 A kind of application integration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410293634.0A CN104035804B (en) 2014-06-26 2014-06-26 A kind of application integration method and device

Publications (2)

Publication Number Publication Date
CN104035804A CN104035804A (en) 2014-09-10
CN104035804B true CN104035804B (en) 2017-11-17

Family

ID=51466579

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410293634.0A Active CN104035804B (en) 2014-06-26 2014-06-26 A kind of application integration method and device

Country Status (1)

Country Link
CN (1) CN104035804B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10990449B2 (en) 2014-10-31 2021-04-27 Convida Wireless, Llc Managing application relationships in machine-to-machine systems
CN105607895B (en) * 2014-11-21 2021-03-02 阿里巴巴集团控股有限公司 Application program operation method and device based on application program programming interface
CN112214260B (en) 2015-09-21 2023-09-22 创新先进技术有限公司 Method and device for loading APP (application) of terminal
CN106802803B (en) * 2017-01-06 2020-06-05 腾讯科技(深圳)有限公司 Application data processing method and device
CN111124391A (en) * 2019-12-18 2020-05-08 中科全维科技(苏州)有限公司 Desktop end software pendant window management method and system
CN111198739B (en) * 2019-12-30 2023-08-15 广州市百果园信息技术有限公司 Application view rendering method, device, equipment and storage medium
CN112000353A (en) * 2020-08-18 2020-11-27 北京三快在线科技有限公司 Application running method and device and storage medium
CN113064676A (en) * 2020-12-29 2021-07-02 上海金融期货信息技术有限公司 Method for remote component sharing mechanism during front-end operation based on JS entrance
CN112748962B (en) * 2021-01-22 2023-10-20 北京五八信息技术有限公司 Application loading method, device, electronic equipment and computer readable medium
CN112558985B (en) * 2021-02-23 2021-08-27 鲁班(北京)电子商务科技有限公司 Sub-application deployment method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070106946A1 (en) * 2005-11-07 2007-05-10 Philip Goetz Method and system for developing interactive Web applications in a unified framework
CN101127655B (en) * 2006-08-18 2012-06-06 国际商业机器公司 Method and system for integrating existing www systems
CN102063509B (en) * 2011-01-12 2013-07-03 南京南瑞继保电气有限公司 Model and modeling method of multi-dimensional data integration of heterogeneous databases of electric power information system
CN102073506A (en) * 2011-02-24 2011-05-25 北京中电普华信息技术有限公司 Java 2 enterprise edition (J2EE) based method and system for processing Web application request
CN102087599A (en) * 2011-02-24 2011-06-08 北京中电普华信息技术有限公司 J2EE-based Web application system development method and device
KR101907422B1 (en) * 2012-02-10 2018-10-12 한국전자통신연구원 Network Application Combining Development Apparatus and Method, and Server using the same

Also Published As

Publication number Publication date
CN104035804A (en) 2014-09-10

Similar Documents

Publication Publication Date Title
CN104035804B (en) A kind of application integration method and device
CN109325195B (en) Rendering method and system for browser, computer device and computer storage medium
CN106502699A (en) A kind of five application page processing method, apparatus and system
CN103914450A (en) Method and device for presenting web graphics in mobile terminal platform
CN110020323A (en) Mix page switching method, frame, computer equipment and the storage medium of application
CN104267981B (en) A kind of method and device of application layout on loading desktop
CN103853734A (en) Drawing content difference comparison method and system
CN108647348A (en) Textual presentation method, apparatus, equipment and storage medium
CN104866391A (en) Terminal information backup method and apparatus based on incremental information system
CN105204873A (en) Terminal and application interface display method
CN104156222A (en) Method for self-defining Android equipment desktop
CN105354090B (en) The management method and device of virtual unit
CN108280174A (en) Front end file construction method and server, page access method and terminal
CN105848135A (en) Multi-operator application customization control method and multi-operator application customization control system based on mobile terminal
US20110016194A1 (en) Connecting galleries to dynamic server-hosted content
CN103309695A (en) Icon loading method and terminal
CN106446114B (en) Data migration method and device
CN102375738A (en) Device and method for managing data of mobile terminal
CN107807831A (en) Business in application program performs method, apparatus, terminal and storage medium
CN110399232A (en) Paste processing method, device, equipment and computer readable storage medium
CN105589687B (en) A kind of Oftware updating method based on cloud platform
CN106330561A (en) Dynamic UI setting method and apparatus
CN109408092A (en) Method and device, storage medium and the electronic equipment of front end version publication
CN106708479A (en) Page rendering method and device
CN109684620A (en) Change to the contract information recording method, device and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant