Summary of the invention
In view of the above problems, the present invention has been proposed in order to a kind of method, network applications manager and system that network application is managed that overcomes the problems referred to above or address the above problem at least in part is provided.
According to one aspect of the present invention, a kind of method that on the network application platform client network application is managed is provided, this network application platform comprises one or more network application, this network application platform client is suitable for the script that presents webpage and be associated, and this method comprises: at network application platform client place load networks application manager; Obtain the configuration information of each network application in this network application platform by network applications manager, the network application configuration information comprises: the show state of network application and the routing information of this network application, and wherein show state comprises and represents and hide; Be the network application that represents for show state, obtain this network application from the routing information of this network application correspondence; And loaded the network application obtain by network applications manager.
Alternatively, the method according to this invention also comprises step: network applications manager obtains the configuration information of each network application every the default time interval, when the configuration information of accessed network application changes, change the network application that loads according to the network application configuration information after changing.
Alternatively, the step of the network application that change loads according to the network application configuration information after the change comprises: determine the network application that show state changes; The unloading show state becomes hiding network application from representing, and the loaded and displayed state becomes the network application that represents from hiding.
Alternatively, wherein network application has defined loading interface that load networks uses and the unloading interface of unloading network application, and network applications manager comes load networks to use by calling loading interface, and unloads network application by calling the unloading interface.
Alternatively, the network application configuration information also comprises: the picture address of the icon correspondence of each network application, the network linking address of each network application correspondence and the position of appearing of each network application on the network application platform client.
Alternatively, wherein the network application platform client comprises the tool bar that is presented on the webpage, and each network application has the position of appearing on tool bar.
According to another aspect of the present invention, a kind of network applications manager that on the network application platform client network application is managed is provided, wherein, this network applications manager is loaded into network application platform client place, this network application platform comprises one or more network application, this network application platform client is suitable for the script that presents webpage and be associated, this network applications manager comprises: the configuration information acquisition module, be suitable for obtaining the configuration information of each network application in this network application platform, the network application configuration information comprises: the show state of network application and the routing information of this network application, and wherein show state comprises and represents and hide; The network application acquisition module, being suitable for obtaining show state from the routing information of network application correspondence is the network application that represents; The network application load-on module is suitable for load networks and uses the network application that acquisition module obtains.
Alternatively, the configuration information acquisition module obtains the configuration information of each network application every the default time interval, when the configuration information of accessed network application changed, informing network was used load-on module and is changed the network application that loads according to the network application configuration information after changing.
Alternatively, the network application load-on module is further adapted for: determine the network application that show state changes; The unloading show state becomes hiding network application from representing, and the loaded and displayed state becomes the network application that represents from hiding.
Alternatively, wherein network application has defined loading interface that load networks uses and the unloading interface of unloading network application, and the network application load-on module comes load networks to use by calling loading interface, and unloads network application by calling the unloading interface.
Alternatively, the network application configuration information also comprises: the picture address of the icon correspondence of each network application, the network linking address of each network application correspondence and the position of appearing of each network application on the network application platform client.
According to another aspect of the present invention, a kind of network application platform system is provided, comprising: one or more provides the server of network application; A plurality of network application platform clients are suitable for the script that presents webpage and be associated, and come operational network to use alternately with one or more server; And according to network applications manager of the present invention, when network applications manager is loaded on the network application platform client, network application is managed.
Alternatively, wherein the network application platform client comprises the tool bar that is presented on the webpage, and each network application has the position of appearing on tool bar.
According to method, network applications manager and the system that network application is managed of the present invention, realize management to network application by network applications manager, particularly, network applications manager obtains the configuration information of each network application, and determine the network application that to represent according to configuration information, and obtain and load this network application from the corresponding routing information of the network application that will represent.In the present embodiment, except the routing information place of network application correspondence storage networking is used, also store the configuration information of network application separately, thereby can realize management to network application according to configuration information.Solve problems of the prior art thus, obtained the beneficial effect that can carry out dynamic management to network application.
Above-mentioned explanation only is the general introduction of technical solution of the present invention, for can clearer understanding technological means of the present invention, and can be implemented according to the content of specification, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Though shown exemplary embodiment of the present disclosure in the accompanying drawing, yet should be appreciated that and to realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order to understand the disclosure more thoroughly that these embodiment are provided, and can with the scope of the present disclosure complete convey to those skilled in the art.
The embodiment of the invention provides a kind of method that on the network application platform client network application is managed, this network application platform comprises one or more network application, this network application platform client is suitable for the script that presents webpage and be associated, by the method in the embodiment of the invention, can manage network application neatly.
Fig. 1 shows the method flow diagram that on the network application platform client network application is managed that the embodiment of the invention provides.Alternatively, in the present embodiment, for the ease of realizing each network application concentrated presented and manage, this network application platform client comprises the tool bar that is presented on the webpage (this webpage mainly refers to host's page that background technology is partly mentioned), and each network application has the position of appearing on this tool bar.In this way, all network applications all can be presented on the tool bar, thus realized network application concentratedly present and manage not only convenient management, also user-friendly these network applications.
This method starts from step S110, in step S110, at network application platform client place load networks application manager.
This network applications manager can be embedded on host's page of client by code, after embedding this network applications manager, to show a tool bar framework on host's page of client, this tool bar framework can be presented on the optional position of host's page as required, for example top, below etc.
During specific implementation, can load this network applications manager by following code:
By above-mentioned JS code, just the tool bar framework of " lottery ticket " can be embedded in host's page, to realize the purpose of load networks application manager.
Loaded after the above-mentioned network applications manager by step S110, in step S120, obtained in this network application platform the configuration information of each network application of storage in advance by this network applications manager.This network application configuration information comprises: the show state of each network application and the routing information of this network application.Wherein, the routing information of network application refers to the path that the resource file of this network application is stored, and can obtain the resource file of this network application by this routing information.The resource file of network application refers to the JS code of this network application function of specific implementation.The show state of network application comprises and represents and hide can determine to need to load which network application by the show state of network application.
Alternatively, identify each network application for convenience, can further include the identification information (for example ID or title) of network application in the network application configuration information.In order to present network application in the mode that more attracts the user, the network application configuration information can also comprise picture address and the position of appearing of each network application on the network application platform client of the icon correspondence of each network application, so that display network is used the positional information of corresponding icon and definite this network application etc.In addition, the network application configuration information can also comprise the network linking address of each network application correspondence, can make things convenient for network applications manager according to this network linking address like this, obtains the greater functionality of this network application from client.
Above-described network application configuration information can define and store by following code:
In above-mentioned code, defined the configuration information of " logo " and " bbs " these two network applications respectively by the JSON form, these two network applications ID number by separately distinguished.Be example with " logo " network application, by " url ": " //p0.qhimg.com/d/wan/u8/logo_qipai.png " defined the picture address of the icon correspondence of this network application, by " link ": " //qipai.360.cn " defined the network linking address of this network application correspondence, defined the show state of this network application by " app_active ", define the position of appearing of this network application by " position ", defined the routing information of this network application by " resource ".
Above-mentioned network application configuration information can be stored on first memory module, and this first memory module can be arranged on to this client and provide on the server of service.Therefore, network applications manager can get access to the network application configuration information of storing on it by visiting this first memory module.
Particularly, network applications manager can use the AJAX technology to obtain when obtaining above-mentioned network application configuration information, for example, can finish acquisition process by following code:
By above-mentioned code, just finished the operation of obtaining configuration information.Subsequently, in step S130, be the network application that represents for show state, obtain this network application from the routing information of this network application correspondence.
Particularly, in step S130, at first need the configuration information of each network application of obtaining among the analytical procedure S120, therefrom determining show state is the network application (value that is " app_active " in the above-mentioned code is 1 network application) that represents; Further determine show state then and be the routing information (being the value of " resource " in the above-mentioned code) of the network application that represents, getting access to these show states according to routing information is the network application that represents.
Introduced above, the routing information of network application refers to the path that the resource file of this network application is stored, and the resource file of network application refers to the JS code of this network application function of specific implementation.In the present embodiment, the JS code of each network application is formed a JS storehouse, and this JS storehouse can be stored on second memory module, and this second memory module also can be arranged on to this client and provide on the server of service.Selectively, this JS storehouse even also can be stored on the first above-mentioned memory module.To obtain show state be the network application that represents to network applications manager by visiting this JS storehouse.Except the above-described mode that realizes network application function by the JS code, those skilled in the art also can adopt other programming language (for example PHP etc.) to realize the function of network application, correspondingly, when adopting other Languages, above-mentioned JS storehouse also correspondingly replaces with other code library (for example PHP storehouse).
In addition, owing in configuration information, provide the routing information that is associated at each network application, so, realize that the JS code of each network application function also can be stored in respectively on the different servers.
Next, in step S140, loaded the network application of obtaining by network applications manager.
Above-mentioned JS storehouse is made up of a plurality of JS files, can store the JS code of one or more network applications in each JS file, perhaps stores the part JS code of a network application.Adopt loose managerial structure combination between a plurality of JS files.Alternatively, the load networks loading interface of using and the unloading interface that unloads network application in the JS of network application file, have been defined.Network applications manager comes load networks to use by calling this loading interface, unloads network application (opportunity and mode about the unloading network application will be introduced in the back) by calling this unloading interface.
Loading interface and unloading interface about network application can define by following code:
By top code, for each network application has defined the init interface function that is used for loading this network application, and the destroy interface function that is used for this network application of unloading.Therefore, when network applications manager needed a certain network application of load or unload, init interface function or the destroy interface function that only need call this network application got final product.By such mode, once network application of a load or unload of network applications manager, and need not whole JS storehouse is changed, can not have influence on other network application yet.
Particularly, network applications manager can be realized by following code when load networks is used:
In above-mentioned code, realize loading to network application by the init interface function.
By the mode of introducing above, the method that network application is managed that has just realized that the embodiment of the invention provides.In above-mentioned management method, mainly realized the original upload process to network application, so that the network application that will need to show is presented on the tool bar of the client host page.
And, in the mode of Jie Shaoing, can in the configuration information of network application, pass through the position of appearing of position parameter-definition network application on tool bar, thereby can determine the position of each network application on tool bar neatly in the above.
In addition, because in the procedure for displaying of the client host page, also may need the network application that shows on the tool bar is managed further, for example, according to user's needs, perhaps, according to the ruuning situation of server, may need some network applications of hiding are originally represented, some network applications that represent are originally hidden, to this, just may need corresponding network application is carried out the operation of dynamic load or unloading.
Alternatively, in order to realize the dynamic management to network application, server can be revised the configuration information of network application according to the actual requirements, correspondingly, network applications manager obtains the configuration information of each network application every the default time interval from server, when the configuration information of accessed network application changes, change the network application that loads according to the network application configuration information after changing.Particularly, network applications manager can keep by the module of storage networking application configuration information on polling technique and the server being connected, for example, can initiate a http request every the module of five fens clockwise storage networking application configuration informations, obtain current network application configuration information, and current network application configuration information with on the network application configuration information that once gets access to compare when changing, come the dynamic management network application according to the change situation.Perhaps, the network application configuration information after also can will being changed on one's own initiative when the network application configuration information changes by the module of storage networking application configuration information sends to network applications manager.
Particularly, when network applications manager finds that the network application configuration information changes, determine the network application that show state changes; The unloading show state becomes hiding network application from representing, and the loaded and displayed state becomes the network application that represents from hiding.
Wherein, the loaded and displayed state can be carried out with reference to the load mode the step S140 from hiding the detailed process that becomes the network application that represents.The unloading show state can be realized by calling the destroy interface function from representing the detailed process that becomes hiding network application, according to one embodiment of present invention, realize that the specific code of unloading is as follows:
Because in the embodiment of the invention, each network application unified loading interface and unloading interface have been defined, therefore, when load networks is used, can be by a certain network application of load or unload selectively of modular mode, and do not influence the normal operation of all the other network applications, make the load or unload network application operating process flexibly and convenient.And when needs added or delete a certain network application, therefore need not did not need to interrupt the operation of tool bar to the new issue of laying equal stress on of making amendment of JS code yet.
The embodiment of the invention also provides a kind of network applications manager that on the network application platform client network application is managed.Fig. 2 shows the structural representation of the network application platform system that comprises this network applications manager.Wherein, network application platform comprises one or more network applications.The network application platform system comprises that server 400 and network application platform client 200(are hereinafter to be referred as client 200).Wherein, server 400 is used to client 200 that all kinds of services are provided, and the quantity of server 400 can be for one or more.The quantity of client 200 is generally a plurality of, and wherein each client for example can be various PCs or all kinds of mobile device (for example mobile phone, palmtop PC) etc.Above-mentioned client 200 is suitable for the script that presents webpage and be associated.
As shown in Figure 2, in order further to present the network application that comprises on the network application platform on the webpage that presents in client 200 and the script that is associated, the network applications manager 300 that at first needs the embodiment of the invention is provided is loaded into client 200 places from for example server 400.During concrete the loading, can this network applications manager 300 be embedded on host's page of client 200 by code, after embedding this network applications manager, to show a tool bar framework on host's page of client 200, this tool bar framework can be presented on the optional position of host's page as required, for example top, below etc.Particularly, can load this network applications manager by following code:
By above-mentioned JS code, just the tool bar framework of " lottery ticket " can be embedded in host's page, to realize the purpose of load networks application manager.
The network applications manager 300 that the embodiment of the invention is provided just can manage by the network application that presents on 300 pairs of clients 200 of this network applications manager after being loaded on the client 200.
Particularly, the network applications manager 300 that provides of the embodiment of the invention comprises configuration information acquisition module 310, network application acquisition module 320 and network application load-on module 330.Introduce the operation principle of each module in the network applications manager 300 below in detail.
Configuration information acquisition module 310 obtains the configuration information of each network application of storing in advance in this network application platform, and the configuration information of this network application comprises: the show state of each network application and the routing information of this network application.Wherein, the routing information of network application refers to the path that the resource file of this network application is stored, and can get access to the resource file of this network application by this routing information.The resource file of network application refers to the JS code of this network application function of specific implementation.The show state of network application comprises and represents and hide can determine to need to load which network application by the show state of network application.
Alternatively, identify each network application for convenience, can further include the identification information (for example ID or title) of network application in the network application configuration information.In order to present network application in the mode that more attracts the user, the network application configuration information can also comprise picture address and the position of appearing of each network application on the network application platform client of the icon correspondence of each network application, so that display network is used the positional information of corresponding icon and definite this network application etc.In addition, the network application configuration information can also comprise the network linking address of each network application correspondence, can obtain the greater functionality of this network application according to this network linking address easily like this.Above-mentioned network application configuration information can be stored on first memory module, and this first memory module can be arranged on to this client 200 and provide on the server 400 of service.But the description about appropriate section among the concrete storage mode reference method embodiment of network application configuration information repeats no more herein.
It is the network application that represents that network application acquisition module 320 obtains show state from the routing information of network application correspondence.Particularly, network application acquisition module 320 at first needs the configuration information of each network application that analysis configuration information acquisition module 310 obtains, and therefrom determining show state is the network application that represents; Further determine show state then and be the routing information of the network application that represents, getting access to these show states according to routing information is the network application that represents.Introduced above, the routing information of network application refers to the path that the resource file of this network application is stored, and the resource file of network application refers to the JS code of this network application function of specific implementation.In the present embodiment, the JS code of each network application is formed a JS storehouse, and this JS storehouse can be stored on second memory module, and this second memory module also can be arranged on to this client 200 and provide on the server 400 of service; Alternatively, this JS storehouse even also can be stored on the first above-mentioned memory module.To obtain show state be the network application that represents to network applications manager by visiting this JS storehouse.Except the above-described mode that realizes network application function by the JS code, those skilled in the art also can adopt other programming language (for example PHP etc.) to realize the function of network application, correspondingly, when adopting other Languages, above-mentioned JS storehouse also correspondingly replaces with other code library (for example PHP storehouse).
In addition, owing in configuration information, provide the routing information that is associated at each network application, so, realize that the JS code of each network application function also can be stored in respectively on the different servers.
Network application load-on module 330 load networks are used the network application that acquisition module 320 obtains.Above-mentioned JS storehouse is made up of a plurality of JS files, and the JS code of the one or more network applications of storage in each JS file adopts loose managerial structure combination between a plurality of JS files.Alternatively, the load networks loading interface of using and the unloading interface that unloads network application in the JS of network application file, have been defined.Network application load-on module 330 comes load networks to use by calling this loading interface, unloads network application by calling this unloading interface.
By the mode of introducing above, the network applications manager 300 that the embodiment of the invention provides just can be realized the management to network application.In above-mentioned process, network applications manager 300 has mainly been realized the original upload process to network application, so that the network application that will need to show is presented on the tool bar of the client host page.
In addition, because in the procedure for displaying of the client host page, also may need the network application that shows on the tool bar is managed further, for example, according to user's needs, perhaps, according to the ruuning situation of server, may need some network applications of hiding are originally represented, some network applications that represent are originally hidden, to this, just may need corresponding network application is carried out the operation of dynamic load or unloading.
Alternatively, in order to realize the operation of dynamic load or unloading, server can be revised the configuration information of network application according to the actual requirements, correspondingly, configuration information acquisition module 310 obtains the configuration information of each network application every the default time interval, when the configuration information of accessed network application changed, informing network was used load-on module 330 and is changed the network application that loads according to the network application configuration information after changing.Particularly, configuration information acquisition module 310 can keep by the module of storage networking application configuration information on polling technique and the server being connected, for example, can initiate a http request every the module of five fens clockwise storage networking application configuration informations, obtain current network application configuration information, and current network application configuration information with on the network application configuration information that once gets access to compare when changing, come the dynamic management network application according to the change situation.Perhaps, the network application configuration information after also can will being changed on one's own initiative when the network application configuration information changes by the module of storage networking application configuration information sends to configuration information acquisition module 310.
Correspondingly, when configuration information acquisition module 310 found that the network application configuration information changes, network application load-on module 330 was further adapted for: determine the network application that show state changes; The unloading show state becomes hiding network application from representing, and the loaded and displayed state becomes the network application that represents from hiding.Wherein network application has defined loading interface that load networks uses and the unloading interface of unloading network application, and network application load-on module 330 comes load networks to use by calling loading interface, and unloads network application by calling the unloading interface.
Because in the embodiment of the invention, each network application unified loading interface and unloading interface have been defined, therefore, when load networks is used, can be by a certain network application of load or unload selectively of modular mode, and do not influence the normal operation of all the other network applications, make the load or unload network application operating process flexibly and convenient.
The embodiment of the invention also provides a kind of network application platform system, and as shown in Figure 2, this network application platform system comprises: one or more provides the server 400 of network application; A plurality of network application platform clients 200 are suitable for the script that presents webpage and be associated, and move above-mentioned network application alternately with one or more server 400; And network applications manager 300, when network applications manager 300 is loaded on the network application platform client 200, network application is managed.
Wherein, network application platform client 200 comprises the tool bar that is presented on the webpage, and each network application has the position of appearing on this tool bar.
Network applications manager 300 in the above-mentioned network application platform system further comprises configuration information acquisition module 310, network application acquisition module 320 and network application load-on module 330, about wherein concrete function and the operation principle of each module can repeat no more with reference to the description of appropriate section among the last embodiment herein.
According to method, network applications manager and the system that network application is managed of the present invention, realize management to network application by network applications manager, particularly, network applications manager obtains the configuration information of each network application, and determine the network application that to represent according to configuration information, and obtain and load this network application from the corresponding routing information of the network application that will represent.In the present embodiment, except the routing information place of network application correspondence storage networking is used, also store the configuration information of network application separately, thereby can realize management to network application according to configuration information.Solve problems of the prior art thus, obtained the beneficial effect that can carry out dynamic management to network application.
Intrinsic not relevant with any certain computer, virtual system or miscellaneous equipment with demonstration at this algorithm that provides.Various general-purpose systems also can be with using based on the teaching at this.According to top description, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also at any certain programmed language.Should be understood that and to utilize various programming languages to realize content of the present invention described here, and the top description that language-specific is done is in order to disclose preferred forms of the present invention.
In the specification that provides herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can be put into practice under the situation of these details not having.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the description to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes in the above.Yet the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires the more feature of feature clearly put down in writing than institute in each claim.Or rather, as following claims reflected, inventive aspect was to be less than all features of the disclosed single embodiment in front.Therefore, follow claims of embodiment and incorporate this embodiment thus clearly into, wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can adaptively change and they are arranged in one or more equipment different with this embodiment the module in the equipment among the embodiment.Can become a module or unit or assembly to the module among the embodiment or unit or combination of components, and can be divided into a plurality of submodules or subelement or sub-component to them in addition.In such feature and/or process or unit at least some are mutually repelling, and can adopt any combination to disclosed all features in this specification (comprising claim, summary and the accompanying drawing followed) and so all processes or the unit of disclosed any method or equipment make up.Unless clearly statement in addition, disclosed each feature can be by providing identical, being equal to or the alternative features of similar purpose replaces in this specification (comprising claim, summary and the accompanying drawing followed).
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included among other embodiment, the combination of features of different embodiment means and is within the scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with compound mode arbitrarily.
Each parts embodiment of the present invention can realize with hardware, perhaps realizes with the software module of moving at one or more processor, and perhaps the combination with them realizes.It will be understood by those of skill in the art that and to use microprocessor or digital signal processor (DSP) to realize according to some or all some or repertoire of parts in the server of the embodiment of the invention in practice.The present invention can also be embodied as for part or all equipment or the device program (for example, computer program and computer program) of carrying out method as described herein.Such realization program of the present invention can be stored on the computer-readable medium, perhaps can have the form of one or more signal.Such signal can be downloaded from internet website and obtain, and perhaps provides at carrier signal, perhaps provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment under the situation of the scope that does not break away from claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed in element or step in the claim.Being positioned at word " " before the element or " one " does not get rid of and has a plurality of such elements.The present invention can realize by means of the hardware that includes some different elements and by means of the computer of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to come imbody by same hardware branch.Any order is not represented in the use of word first, second and C grade.Can be title with these word explanations.
In the method for the invention, the network application configuration information can also comprise: the picture address of the icon correspondence of each network application, the network linking address of each network application correspondence and the position of appearing of each network application on the network application platform client.
In the method for the invention, the network application platform client can comprise the tool bar that is presented on the webpage, and each network application has the position of appearing on described tool bar.
In network applications manager of the present invention, the network application configuration information also comprises: the picture address of the icon correspondence of each network application, the network linking address of each network application correspondence and the position of appearing of each network application on the network application platform client.