Plug-in loading method, device, computing equipment and computer storage medium

By receiving the plug-in function package to be encapsulated and calling multiple encapsulation interfaces for separate encapsulation, a plug-in link chain group is generated, which solves the problems of plug-in loading failure and format inconsistency in the existing technology, and achieves slimming down of plug-in development and improvement in loading success rate. .

CN113010218BActive Publication Date: 2024-09-13CHINA MOBILE COMM GRP SHAANXI CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911326738.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-20
Publication Date
2024-09-13
Estimated Expiration
2039-12-20

AI Technical Summary

Technical Problem

Existing plug-in loading methods cause user loading failures due to differences in packaging habits of different developers and technical updates, and users can only load plug-ins in specific formats, which is inconvenient to use.

Method used

By receiving the request for the plug-in function package to be encapsulated, multiple encapsulation interfaces are called to separately encapsulate the plug-in function package and the basic program, and a plug-in link chain group is generated to realize unified loading of plug-ins.

Benefits of technology

It reduces the difficulty of plug-in development, improves the plug-in loading success rate, avoids loading failures caused by technology updates in different fields, and simplifies the user update and loading process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113010218B
    Figure CN113010218B
Patent Text Reader

Abstract

The present invention discloses a plug-in loading method, device, computing equipment and computer storage medium. The method includes: receiving a plug-in encapsulation request carrying a plug-in function package to be encapsulated; calling multiple encapsulation interfaces, using any encapsulation interface to separately encapsulate the plug-in function package to be encapsulated and the plug-in basic program, and obtaining the plug-in corresponding to the encapsulation interface; combining and processing the plug-in links of multiple plug-ins to generate a plug-in link chain group, so as to load the plug-in according to the plug-in link chain group, the plug-in developer only needs to develop new functions, and does not need to consider subsequent loading and interface technology, which reduces the development difficulty and achieves the purpose of slimming down the plug-in development; in addition, by calling multiple interfaces to encapsulate once, the number of encapsulations and parsing times is reduced, and the plug-in links of multiple plug-ins are combined into a plug-in link chain group, which is convenient for users to load plug-ins and improves the success rate of plug-in loading.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a plug-in loading method, device, computing equipment and computer storage medium. Background Art

[0002] Plug-ins rely on software applications to run, or it can be said that the functions of plug-ins are realized by calling plug-ins through software applications. Plug-ins play a very important role in improving network functions, such as playback plug-ins, reading plug-ins, input plug-ins, etc.

[0003] The current plug-in loading method is as follows: developers develop the functional part according to functional requirements, and after the functional part is developed, the general program is copied to the development program, and then packaged into a file package in a general format; the developer sends the packaged plug-in to the plug-in management platform through the development interface on the plug-in management platform, or sends the link to the plug-in management platform; the plug-in management platform stores the packaged plug-in or the plug-in link in the plug-in management layer; the user downloads the updated plug-in through the user interface, and then loads it on the application software, because the user can often only load plug-ins of one or several formats, and the updated plug-in has different storage formats due to different developers, the user needs to re-download the new plug-in format, which causes inconvenience in use; when the user unpacks and loads, the plug-in loading may fail due to the differences in packaging habits of different developers. Summary of the invention

[0004] In view of the above problems, embodiments of the present invention are proposed to provide a plug-in loading method, apparatus, computing device and computer storage medium that overcome the above problems or at least partially solve the above problems.

[0005] According to one aspect of an embodiment of the present invention, a plug-in loading method is provided, comprising:

[0006] Receiving a plug-in packaging request carrying a plug-in function package to be packaged;

[0007] Call multiple encapsulation interfaces, use any encapsulation interface to separately encapsulate the plug-in function package and the plug-in basic program to be encapsulated, and obtain the plug-in corresponding to the encapsulation interface;

[0008] The plug-in links of multiple plug-ins are combined and processed to generate a plug-in link chain group, so as to load the plug-in according to the plug-in link chain group.

[0009] According to another aspect of an embodiment of the present invention, a plug-in loading device is provided, comprising:

[0010] A receiving module, adapted to receive a plug-in encapsulation request carrying a plug-in function package to be encapsulated;

[0011] The encapsulation module is suitable for calling multiple encapsulation interfaces, and using any encapsulation interface to separately encapsulate the plug-in function package and the plug-in basic program to be encapsulated, so as to obtain the plug-in corresponding to the encapsulation interface;

[0012] The generation module is suitable for combining the plug-in links of multiple plug-ins to generate a plug-in link chain group, so as to load the plug-in according to the plug-in link chain group.

[0013] According to another aspect of an embodiment of the present invention, there is provided a computing device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0014] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the above-mentioned plug-in loading method.

[0015] According to another aspect of an embodiment of the present invention, a computer storage medium is provided, in which at least one executable instruction is stored, and the executable instruction enables a processor to execute operations corresponding to the above-mentioned plug-in loading method.

[0016] According to the solution provided by the present invention, plug-in developers only need to develop new functions without considering subsequent loading and interface technologies, which reduces the development difficulty and achieves the purpose of slimming down plug-in development, while avoiding user loading failures due to technology updates in different fields. In addition, by calling multiple interfaces for one encapsulation, the number of encapsulations and parsing times is reduced, and the plug-in links of multiple plug-ins are combined into a plug-in link chain group, which is convenient for users to load plug-ins and improves the success rate of plug-in loading.

[0017] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation method of the embodiment of the present invention is specifically listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the embodiments of the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0019] Figure 1A A flow chart of a plug-in loading method provided by an embodiment of the present invention is shown;

[0020] Figure 1B Schematic diagram of plug-in packaging;

[0021] Figure 2 A schematic diagram showing the structure of a plug-in loading device provided by an embodiment of the present invention is shown;

[0022] Figure 3 A schematic diagram of the structure of a computing device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0023] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0024] Figure 1A FIG. 1 is a flow chart of a plug-in loading method provided by an embodiment of the present invention. Figure 1A As shown, the method comprises the following steps:

[0025] Step S101: receiving a plug-in packaging request carrying a plug-in function package to be packaged.

[0026] The plug-in loading method provided in this embodiment is suitable for loading a plug-in after secondary development of the plug-in.

[0027] The plug-in function package to be packaged is the plug-in function package obtained by the developer after the developer has conducted secondary development of the new function of the plug-in. Specifically, a developer interface is provided to the developer. After the plug-in developer has developed the plug-in function package, the plug-in function package to be packaged can be submitted through the provided developer interface. For example, an "upload button" is provided in the developer interface. The developer can select the plug-in function package to be uploaded by clicking the "upload button". After completing the selection, the plug-in packaging request is submitted, and the plug-in packaging request submitted by the developer carrying the plug-in function package to be packaged is received. The way to submit the plug-in function package to be packaged is not limited to this, and will not be listed one by one here.

[0028] It should be noted that plug-in developers only need to develop new plug-in functions, and do not need to consider the subsequent loading and interface technology after developing the plug-in function package, thus overcoming the problem of high development difficulty caused by considering the subsequent loading and interface technology in the existing solution, and avoiding the problem of user loading failure caused by technology updates in different fields. In this way, developers only need to package once, and there will be no subsequent loading failure due to personal habits of developers.

[0029] Step S102, calling multiple encapsulation interfaces, using any encapsulation interface to separately encapsulate the plug-in function package and the plug-in basic program to be encapsulated, and obtaining the plug-in corresponding to the encapsulation interface.

[0030] After receiving the plug-in encapsulation request, the plug-in function package to be encapsulated is extracted from the request, and then multiple encapsulation interfaces are called, and any encapsulation interface is used to separately encapsulate the plug-in function package and the plug-in basic program to be encapsulated to obtain the plug-in corresponding to the encapsulation interface, wherein the plug-in basic program is a plug-in program after one-time development. Since new functions are added, the original plug-in functions need to be retained. When encapsulating, the plug-in function package and the plug-in basic program are encapsulated.

[0031] Although it is encapsulated separately, only one encapsulation operation needs to be performed, and encapsulation is performed simultaneously for each of the multiple encapsulation interfaces. It should be noted that when encapsulating, only the encapsulation interfaces used for encapsulation are different. The functions of the multiple plug-ins obtained after the encapsulation is completed are the same, that is, the same functional plug-in with different encapsulation interfaces is finally formed.

[0032] Here, multiple encapsulation interfaces are called for separate encapsulation to obtain multiple plug-ins in order to meet the needs of different users for different plug-in formats, to improve the success rate of subsequent plug-in loading, and to avoid plug-in failures caused by plug-in format problems.

[0033] In an optional embodiment of the present invention, the plug-in can be encapsulated by the following method: calling multiple encapsulation interfaces, using any encapsulation interface to load the plug-in basic program onto the plug-in function package to be encapsulated, and generating a plug-in software package of the format type corresponding to the encapsulation interface; and separately encapsulating the plug-in software packages corresponding to the multiple encapsulation interfaces to obtain multiple plug-ins.

[0034] Specifically, the extracted plug-in function package to be encapsulated is parsed, multiple encapsulation interfaces are called, and each encapsulation interface is used to load the plug-in basic program into the parsed plug-in function package to be encapsulated, and a plug-in software package of the format type corresponding to the encapsulation interface is generated. It should be noted that the number of generated plug-in software packages corresponds to the number of encapsulation interfaces. For example, if 5 encapsulation interfaces are called, 5 plug-in software packages are generated. The functions of the generated plug-in software packages are the same, and the difference lies in the different encapsulation interfaces. The format of the generated plug-in software package is related to the encapsulation interface, and the format type of the generated plug-in software package can be: HTML format, JS format, CSS format or image format.

[0035] After generating the corresponding plug-in software package, the plug-in software packages corresponding to the encapsulation interfaces can be individually encapsulated to obtain multiple plug-ins, and the functions of the multiple plug-ins are the same, that is, multiple plug-ins with the same function but different encapsulation interfaces are finally formed.

[0036] Combine the following Figure 1B Explanation: Multiple encapsulation interfaces are type A interface, type B interface, type C interface, and type D interface. Multiple encapsulation interfaces are called, and the plug-in basic program is loaded onto the plug-in function package to be encapsulated to obtain the plug-in software package of type A interface, the plug-in software package of type B interface, the plug-in software package of type C interface, and the plug-in software package of type D interface. Then, the plug-in software package of each encapsulation interface is separately encapsulated to obtain the plug-in of type A interface, the plug-in of type B interface, the plug-in of type C interface, and the plug-in of type D interface. Here, only one encapsulation is required to obtain the plug-ins corresponding to various encapsulation interfaces, which reduces the number of encapsulation and parsing times, thereby providing a success rate guarantee for the subsequent plug-in loading based on the generated plug-in link chain group.

[0037] Step S103, combining the plug-in links of the plurality of plug-ins to generate a plug-in link chain group, so as to load the plug-in according to the plug-in link chain group.

[0038] After multiple plug-ins are obtained according to step S102, the plug-in links corresponding to the multiple plug-ins may be combined to generate a plug-in link chain group, and plug-ins in any format may be downloaded according to the plug-in link chain group.

[0039] At the same time, multiple plug-ins can also be assembled in the same plug-in package, that is, a plug-in package with the same function but different encapsulation interfaces is obtained, and the plug-in package is stored to load the plug-in according to the plug-in package.

[0040] When the user needs to load a plug-in on this device, the plug-in can be directly parsed and then loaded onto the device. This way, it is very simple for the user to update the plug-in without any technical operation. When the user needs to load a plug-in on other devices, the plug-in package can be downloaded to an intermediate device first, and then parsed and loaded on the specific device to be used, ensuring that the plug-in is successfully loaded.

[0041] In an optional embodiment of the present invention, a plug-in management interface is also provided to the management end, and the management end can manage the plug-in through the management interface, such as deleting, encrypting, etc. Specifically, a plug-in management request triggered by the management end is received, and the plug-in is deleted or encrypted according to the plug-in management request.

[0042] According to the solution provided by the present invention, plug-in developers only need to develop new functions without considering subsequent loading and interface technologies, which reduces the development difficulty and achieves the purpose of slimming down plug-in development, while avoiding user loading failures due to technology updates in different fields. In addition, by calling multiple interfaces for one encapsulation, the number of encapsulations and parsing times is reduced, and the plug-in links of multiple plug-ins are combined into a plug-in link chain group, which is convenient for users to load plug-ins and improves the success rate of plug-in loading.

[0043] Figure 2 FIG. 2 shows a schematic diagram of the structure of a plug-in loading device provided by an embodiment of the present invention. Figure 2 As shown, the device includes: a receiving module 201, a packaging module 202, and a generating module 203.

[0044] The receiving module 201 is adapted to receive a plug-in packaging request carrying a plug-in function package to be packaged;

[0045] The encapsulation module 202 is adapted to call multiple encapsulation interfaces, and use any encapsulation interface to separately encapsulate the plug-in function package and the plug-in basic program to be encapsulated, so as to obtain the plug-in corresponding to the encapsulation interface;

[0046] The generation module 203 is adapted to combine the plug-in links of multiple plug-ins to generate a plug-in link chain group, so as to load the plug-in according to the plug-in link chain group.

[0047] Optionally, the encapsulation module is further adapted to: call multiple encapsulation interfaces, use any encapsulation interface to load the plug-in basic program onto the plug-in function package to be encapsulated, and generate a plug-in software package of a format type corresponding to the encapsulation interface;

[0048] The plug-in software packages corresponding to the multiple encapsulation interfaces are individually encapsulated to obtain multiple plug-ins.

[0049] Optionally, the device further comprises: an assembling module adapted to assemble a plurality of plug-ins into the same plug-in package and store the plug-in package so as to load the plug-in according to the plug-in package.

[0050] Optionally, the device further includes: a management module, adapted to receive a plug-in management request, and delete or encrypt the plug-in according to the plug-in management request.

[0051] Optionally, the format type includes: HTML format, JS format, CSS format or image format.

[0052] According to the solution provided by the present invention, plug-in developers only need to develop new functions without considering subsequent loading and interface technologies, thereby reducing the development difficulty and avoiding user loading failures due to technology updates in different fields. In addition, by calling multiple interfaces for one encapsulation, the number of encapsulations and parsing times is reduced, and the plug-in links of multiple plug-ins are combined into a plug-in link chain group, which is convenient for users to load plug-ins and improves the success rate of plug-in loading.

[0053] An embodiment of the present invention provides a non-volatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the plug-in loading method in any of the above method embodiments.

[0054] Figure 3 A schematic diagram of the structure of a computing device provided by an embodiment of the present invention is shown, and the specific embodiment of the present invention does not limit the specific implementation of the computing device.

[0055] like Figure 3 As shown, the computing device may include: a processor, a communications interface, a memory, and a communication bus.

[0056] The processor, the communication interface, and the memory communicate with each other via a communication bus. The communication interface is used to communicate with other devices such as a client or other server network elements. The processor is used to execute a program, and specifically can execute the relevant steps in the above-mentioned embodiment of the plug-in loading method for a computing device.

[0057] Specifically, the program may include program codes including computer operation instructions.

[0058] The processor may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the computing device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0059] The memory is used to store programs. The memory may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.

[0060] The program can be specifically used to enable the processor to execute the plug-in loading method in any of the above method embodiments. The specific implementation of each step in the program can refer to the corresponding description in the corresponding steps and units in the above plug-in loading embodiment, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above-mentioned method embodiment, which will not be repeated here.

[0061] The algorithm or display provided herein is not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language either. It should be understood that various programming languages ​​can be utilized to realize the content of the embodiment of the present invention described herein, and the description of the above specific language is to disclose the best mode of the embodiment of the present invention.

[0062] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0063] Similarly, it should be understood that in order to streamline the embodiments of the present invention and to aid in understanding one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following intention: that the claimed embodiments of the present invention require more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, the inventive aspects lie in less than all the features of the single embodiment disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present invention.

[0064] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0065] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.

[0066] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components according to the embodiments of the present invention. The embodiments of the present invention may also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing an embodiment of the present invention may be stored on a computer-readable medium, or may have the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0067] It should be noted that the above embodiments illustrate rather than limit the present invention, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim listing a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

Claims

1. A plug-in loading method, comprising: receiving a plug-in packaging request carrying a plug-in function package to be packaged, wherein the plug-in function package to be packaged is a plug-in function package obtained by a developer after secondary development of a new function of the plug-in; Call multiple encapsulation interfaces, use any encapsulation interface to separately encapsulate the plug-in function package and the plug-in basic program to be encapsulated, and obtain the plug-in corresponding to the encapsulation interface, wherein the plug-in basic program is the plug-in program after the first development; The plug-in links of the plurality of plug-ins are combined and processed to generate a plug-in link chain group, so as to load the plug-in according to the plug-in link chain group, wherein the plug-in formats and encapsulation interfaces of the plurality of plug-ins are different but the functions are the same.

2. The method according to claim 1, wherein: The calling of multiple encapsulation interfaces, using any encapsulation interface to separately encapsulate the plug-in function package and the plug-in basic program to be encapsulated, and obtaining the plug-in corresponding to the encapsulation interface further comprises: Calling multiple encapsulation interfaces, using any encapsulation interface to load the plug-in basic program onto the plug-in function package to be encapsulated, and generating a plug-in software package of a format type corresponding to the encapsulation interface; The plug-in software packages corresponding to the multiple encapsulation interfaces are individually encapsulated to obtain multiple plug-ins.

3. The method according to claim 1 or 2, wherein: After obtaining the plug-ins corresponding to the multiple encapsulation interfaces, the method further includes: assembling the multiple plug-ins into the same plug-in package, and storing the plug-in package to load the plug-ins according to the plug-in package.

4. The method according to claim 1 or 2, wherein: The method further includes: receiving a plug-in management request triggered by the management end, and deleting or encrypting the plug-in according to the plug-in management request.

5. The method according to claim 2, wherein: The format types include: HTML format, JS format, CSS format or image format.

6. A plug-in loading device, comprising: The receiving module is adapted to receive a plug-in encapsulation request carrying a plug-in function package to be encapsulated, wherein the plug-in function package to be encapsulated is a plug-in function package obtained by developers after secondary development of new functions of the plug-in; The encapsulation module is suitable for calling multiple encapsulation interfaces, and using any encapsulation interface to separately encapsulate the plug-in function package and the plug-in basic program to be encapsulated, to obtain the plug-in corresponding to the encapsulation interface, wherein the plug-in basic program is the plug-in program after one-time development; The generation module is adapted to combine and process the plug-in links of multiple plug-ins to generate a plug-in link chain group, so as to load the plug-in according to the plug-in link chain group, wherein the plug-in formats and encapsulation interfaces of the multiple plug-ins are different but the functions are the same.

7. The device according to claim 6, wherein: The packaging module is further adapted to: Calling multiple encapsulation interfaces, using any encapsulation interface to load the plug-in basic program onto the plug-in function package to be encapsulated, and generating a plug-in software package of a format type corresponding to the encapsulation interface; The plug-in software packages corresponding to the multiple encapsulation interfaces are individually encapsulated to obtain multiple plug-ins.

8. The device according to claim 6 or 7, wherein: The device further comprises: an assembling module adapted to assemble a plurality of plug-ins into a same plug-in package and store the plug-in package so as to load the plug-in according to the plug-in package.

9. A computing device comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the plug-in loading method according to any one of claims 1 to 5.

10. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to execute an operation corresponding to the plug-in loading method according to any one of claims 1 to 5.