CN107526605B - Method and device for realizing application program loading service assembly - Google Patents

Method and device for realizing application program loading service assembly Download PDF

Info

Publication number
CN107526605B
CN107526605B CN201610442988.6A CN201610442988A CN107526605B CN 107526605 B CN107526605 B CN 107526605B CN 201610442988 A CN201610442988 A CN 201610442988A CN 107526605 B CN107526605 B CN 107526605B
Authority
CN
China
Prior art keywords
software development
development kit
application program
plug
service component
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
CN201610442988.6A
Other languages
Chinese (zh)
Other versions
CN107526605A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610442988.6A priority Critical patent/CN107526605B/en
Publication of CN107526605A publication Critical patent/CN107526605A/en
Application granted granted Critical
Publication of CN107526605B publication Critical patent/CN107526605B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Abstract

The disclosure discloses a method and a device for loading service components by an application program. The method comprises the following steps: acquiring a service instruction triggered and generated in an application program; triggering a plug-in framework integrated by the application program to read a configuration file according to the service instruction; loading the software development kit plug-in specified by the configuration file to obtain a software development kit integrated by the software development kit plug-in; calling a service component through the integrated software development kit. In addition, a device for loading the service component by the application program is also provided. The method and the device for loading the service components by the application program can dynamically switch the service components, and avoid the limitation that the application program cannot normally run once the service components are defective.

Description

Method and device for realizing application program loading service assembly
Technical Field
The present disclosure relates to the field of computer application technologies, and in particular, to a method and an apparatus for implementing application program loading service components.
Background
In operation of the application program, the service provided by the application program is realized by loading the service component. For example, for an application program that implements a web browsing function, the service component is referred to as a browser kernel.
Taking a browser kernel as an example, a browser deployed in the terminal device allows an application program to call its own browser kernel, so as to implement a web browsing service in the application program. In this implementation, an application is required to integrate a software development kit provided by the browser, and the application can call the browser kernel through the integrated software development kit.
However, in this implementation, only a single browser kernel can be invoked because the software development kit provided by the browser is embedded in the application. A defect in the browser kernel can cause the application to fail to operate properly and can only be resolved by replacing the application.
Therefore, the existing application program loading service components have the limitation that the service components cannot be dynamically switched.
Disclosure of Invention
In order to solve the technical problem that service components cannot be dynamically switched in the related art, the disclosure provides a method and a device for realizing application program loading service components.
A method for realizing application program loading service components comprises the following steps:
acquiring a service instruction triggered and generated in an application program;
triggering a plug-in framework integrated by the application program to read a configuration file according to the service instruction;
loading the software development kit plug-in specified by the configuration file to obtain a software development kit integrated by the software development kit plug-in;
calling a service component through the integrated software development kit.
A method for realizing application program loading service components comprises the following steps:
when an application program is triggered and started, dynamically deploying a software development kit plug-in configured by a server according to a service component supported by the application program, and obtaining the service component supported by the software development kit plug-in;
acquiring a service instruction triggered and generated in an application program;
dynamically loading a specified software development kit plug-in according to the service instruction, and obtaining an integrated software development kit through the dynamic loading of the software development kit plug-in;
calling a service component through the integrated software development kit.
An apparatus for implementing an application loading service component, the apparatus comprising:
the instruction acquisition module is used for acquiring a service instruction which is triggered and generated in the application program;
the configuration reading module is used for triggering the self-integrated plug-in framework of the application program to read the configuration file according to the service instruction;
the plug-in loading module is used for loading the plug-in of the software development kit specified by the configuration file to obtain the software development kit integrated by the plug-in of the software development kit;
and the calling module is used for calling the service component through the integrated software development toolkit.
An apparatus for implementing an application loading service component, the apparatus comprising:
the deployment module is used for dynamically deploying the software development kit plug-in configured by the server according to the service components supported by the application program when the application program is triggered and started, and obtaining the service components supported by the software development kit plug-in;
the service initiating module is used for acquiring a service instruction which is triggered and generated in the application program;
the specified loading module is used for dynamically loading specified software development kit plug-ins according to the service instructions and obtaining integrated software development kit through the dynamic loading of the software development kit plug-ins;
and the component calling module is used for calling the service component through the integrated software development toolkit.
An apparatus for implementing an application loading service component, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a service instruction triggered and generated in an application program;
triggering a plug-in framework integrated by the application program to read a configuration file according to the service instruction;
loading the software development kit plug-in specified by the configuration file to obtain a software development kit integrated by the software development kit plug-in;
calling a service component through the integrated software development kit.
An apparatus for implementing an application loading service component, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when an application program is triggered and started, dynamically deploying a software development kit plug-in configured by a server according to a service component supported by the application program, and obtaining the service component supported by the software development kit plug-in;
acquiring a service instruction triggered and generated in an application program;
dynamically loading a specified software development kit plug-in according to the service instruction, and obtaining an integrated software development kit through the dynamic loading of the software development kit plug-in;
calling a service component through the integrated software development kit.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
when a service instruction generated by triggering an application program is obtained, a plug-in framework integrated with the application program is triggered according to the service instruction to read a configuration file, a software development kit plug-in specified by the configuration file is loaded, a software development kit integrated with the software development kit plug-in is obtained, and a service component is called through the integrated software development kit, in the implementation, the software development kit used for calling the service component is integrated in the software development kit in a plug-in form, the software development kit and the application program are mutually independent, and the loading of the specified software development kit plug-in is realized through the dynamic loading in the application program, so that the dynamic switching of the service component can be realized through dynamically loading the required software development kit, and once the service component has a defect, the problem can be solved only by upgrading the software development kit plug-in, the whole application program does not need to be replaced, and therefore, the problems caused by the replacement are avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a schematic illustration of an implementation environment according to the present disclosure;
FIG. 2 is a block diagram illustrating an apparatus in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating a method for implementing an application loading service component in accordance with an illustrative embodiment;
FIG. 4 is a flowchart illustrating a method for implementing an application loading service component in accordance with another illustrative embodiment;
FIG. 5 is a flowchart illustrating a method for implementing an application loading service component in accordance with another illustrative embodiment;
FIG. 6 is a flowchart illustrating the steps of dynamically deploying a software development kit plug-in for a server configuration according to a service component supported by an application program itself when the application program is triggered to start according to the corresponding embodiment of FIG. 5;
FIG. 7 is a flowchart illustrating a method for implementing an application loading service component in accordance with another illustrative embodiment;
FIG. 8 is a flowchart illustrating a method for implementing an application loading service component in accordance with another illustrative embodiment;
FIG. 9 is a flow diagram illustrating a server-side method for implementing an application loading service component in accordance with another illustrative embodiment;
FIG. 10 is a flowchart of steps performed by the corresponding embodiment of FIG. 9 to perform matching processing based on service component information to generate a processing result and return the processing result to an application;
FIG. 11 is a flowchart of steps for a corresponding embodiment of FIG. 10 for generating a process result from a missed service component and returning the process result to an application;
FIG. 12 is a schematic diagram of an application program evaluated in accordance with an exemplary embodiment;
FIG. 13 is a flowchart illustrating dynamic deployment in accordance with an illustrative embodiment;
FIG. 14 is a flow diagram illustrating a calling services component using a software developer package plug-in accordance with an illustrative embodiment;
FIG. 15 is a flowchart illustrating a dynamic loading implementation in accordance with an illustrative embodiment;
FIG. 16 is a flowchart illustrating an implementation of an application calling a software development kit plug-in, according to an illustrative embodiment;
FIG. 17 is a flowchart illustrating an implementation of a software development kit plug-in accordance with an illustrative embodiment;
FIG. 18 is a block diagram illustrating an apparatus for implementing an application loading service component in accordance with an illustrative embodiment;
FIG. 19 is a block diagram illustrating an apparatus for implementing an application loading service component in accordance with another illustrative embodiment;
FIG. 20 is a block diagram illustrating an apparatus for implementing an application loading service component in accordance with another illustrative embodiment;
FIG. 21 is a block diagram of a dynamic deployment module of the corresponding embodiment of FIG. 20;
FIG. 22 is a block diagram illustrating an apparatus for implementing an application loading service component in accordance with another illustrative embodiment;
FIG. 23 is a block diagram illustrating an apparatus for implementing an application loading service component in accordance with another illustrative embodiment;
FIG. 24 is a block diagram of a matching processing module of the corresponding embodiment of FIG. 23;
fig. 25 is a block diagram of a result generation unit of the corresponding embodiment of fig. 24.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
FIG. 1 is a schematic illustration of an implementation environment according to the present disclosure. The implementation environment includes: a server 110 and at least one terminal device 130.
The association between the server 110 and the terminal device 130 includes a network association and/or a protocol of hardware, and a data association therebetween.
Optionally, the terminal device 130 may be various mobile terminals, and may also be various intelligent devices.
Fig. 2 is a block diagram illustrating an apparatus 200 according to an example embodiment. For example, the apparatus 200 may be a terminal device in the implementation environment shown in FIG. 1. The terminal device may be a mobile terminal such as a smart phone or a tablet computer. For example, the system can also be various intelligent devices such as an intelligent television, an intelligent television set-top box, an intelligent air conditioner, an intelligent camera and the like.
Referring to fig. 2, the apparatus 200 may include one or more of the following components: a processing component 202, a memory 204, a power component 206, a multimedia component 208, an audio component 210, a sensor component 214, and a communication component 216.
The processing component 202 generally controls overall operation of the device 200, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations, among others. The processing components 202 may include one or more processors 218 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 202 can include one or more modules that facilitate interaction between the processing component 202 and other components. For example, the processing component 202 can include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.
The memory 204 is configured to store various types of data to support operations at the apparatus 200. Examples of such data include instructions for any application or method operating on the apparatus 200. The memory 204 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. Also stored in memory 204 are one or more modules configured to be executed by the one or more processors 218 to perform all or a portion of the steps of any of the illustrated methods described below.
The power supply component 206 provides power to the various components of the device 200. The power components 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 200.
The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The audio component 210 is configured to output and/or input audio signals. For example, audio component 210 includes a Microphone (MIC) configured to receive external audio signals when apparatus 200 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 204 or transmitted via the communication component 216. In some embodiments, audio component 210 also includes a speaker for outputting audio signals.
The sensor component 214 includes one or more sensors for providing various aspects of status assessment for the device 200. For example, the sensor assembly 214 may detect an open/closed state of the device 200, the relative positioning of the components, the sensor assembly 214 may also detect a change in position of the device 200 or a component of the device 200, and a change in temperature of the device 200. In some embodiments, the sensor assembly 214 may also include a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 216 is configured to facilitate wired or wireless communication between the apparatus 200 and other devices. The device 200 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 200 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the methods described below.
FIG. 3 is a diagram illustrating a method for implementing an application loading service component in accordance with an exemplary embodiment. The method for implementing application loading service components is applied to the mobile terminal 110 in the implementation environment shown in fig. 1, and as shown in fig. 3, the method for implementing application loading service components, which may be executed by a terminal device, may include the following steps.
In step 310, a service instruction triggered to be generated in the application program is obtained.
The application program refers to a program that is installed in the terminal device and needs to implement a service. For example, the application program may be a program for implementing a browsing service through a web page, and the web browsing service is a service implemented by the application program; for another example, the application may be a program with a payment service attached, and the payment service is a service implemented by the application. In other words, the application program may be any program including a program having a general service function.
The service instruction is used for triggering execution of corresponding operation in the application program so as to implement the service provided by the application program, such as the network browsing service, the payment service and the like, in the application program.
The service instructions are triggered to be generated as a service in the application is initiated. For example, the application program is triggered to load a network address to initiate a web browsing service, and at this time, the application program is triggered to generate a service instruction so as to perform an operation related to the web browsing service.
It should be further precisely noted that the application refers to a main body program of the application.
In step 330, the framework plug-in integrated by the application program itself is triggered to read the configuration file according to the service instruction.
The plug-in framework refers to a module with the capability of calling the plug-in, and the application program integrates the module so as to call the plug-in. The configuration file is a software development kit plug-in that controls dynamic loading in the application. The available software development kit plug-ins are loaded in the dynamic loading of the application by declaring such an available software development kit plug-in the configuration file.
The configuration file may be configured on the server side, or may be configured on the software side, which is not limited herein. The configuration file configured by the server side is a configuration file which is issued to the application program after the server completes configuration according to operation needs. On the other hand, the application program selects the software development kit plug-in to be used through the configuration file and declares the software development kit plug-in the configuration file, so that the selected software development kit plug-in can be used.
And when the service instruction is triggered, the plug-in framework integrated by the application program reads the configuration file so as to know which software development kit plug-in is appointed to load.
In step 350, the software development kit plug-ins specified by the configuration file are loaded to obtain the software development kit integrated by the software development kit plug-ins.
The software development kit plug-in is a plug-in integrated with a software development kit. The software development kit plug-in and the application program are independent. The software development kit plug-in is registered in an installation directory of the application program, in other words, the application program is used as a host of the software development kit plug-in, and the software development kit plug-in realizes a part of functions in the application program.
For example, the software development kit plug-in may be a browser software development kit plug-in that integrates the browser development kit itself. Due to the fact that the types and versions of the corresponding webpage browsing service components, namely browser kernels, are different, various browser kernels which can be called exist, and accordingly various browser development toolkit plug-ins are correspondingly deployed.
A software development kit plug-in integrates a software development kit. The application program deploys a plurality of software development kit plug-ins, and during running of the application program, loading of the plug-ins of the specified software development kit is realized through dynamic loading, so that an integrated software development kit is obtained. The specified software development kit plug-in is uniquely corresponding to the service component that is currently desired to be invoked.
By dynamic loading, the application program is not limited to loading a single software development kit any more, and any software development kit can be obtained as required.
In step 350, the service component is invoked via the integrated software development kit.
The software development kit and the service component are uniquely corresponding, and one software development kit is used for calling one service component. Therefore, through the dynamically loaded software development kit plug-in, the calling of the service component uniquely corresponding to the software development kit integrated by the plug-in is realized.
Therefore, the software development kit is independent from the application program through the software development kit plug-in which is independent from the application program, so that even if the browser kernel uniquely corresponding to the software development kit has defects, the whole application program does not need to be replaced, and only the software development kit plug-in needs to be changed.
That is to say, the software development kit can be upgraded without replacing the whole application program, and the software development kit can be independently upgraded, so that the advantages of low cost, low flow, high coverage speed, wide application range and the like are brought.
Specifically, the application program loads the related data and code information of the specified software development kit plug-in into the memory block, and a foundation is laid for the mutual calling between the application program and the software development kit plug-in. The software development kit plug-in defines an agent view class, the agent view class is used as a calling interface of different software development kits and is a general interface defined between the application program and the software development kit, and therefore the application program has the capability of calling the different software development kits.
And the related data and code information of the software development kit plug-in specified by the configuration file are loaded into the memory block to obtain the software development kit plug-in loaded into the memory block, and at the moment, the application program accesses the integrated software development kit through the proxy view class defined by the software development kit plug-in.
Thus, specific implementation details for step 350 may include: and calling the accessed software development kit, and calling the service component through the called software development kit.
Through the software development kit plug-in and the dynamic loading of the software development kit plug-in, the dynamic switching of the software development kit plug-in the application program is realized, and further, the switching of the service component does not need to replace the application program again.
Through the implementation process, the application program of the same online version can use various service components, such as various browser kernels, so that the data effects of the various service components can be compared, and the stability and reliability of the application program are further improved.
Fig. 4 is a flowchart illustrating a method for implementing an application loading service component, which is used in the running process of an application in a terminal device of the implementation environment shown in fig. 1, according to an exemplary embodiment. As shown in fig. 4, the method for implementing the application program to load the service component may include the following steps.
In step 410, when the specified software development kit plug-in fails to load, loading a default software development kit plug-in, and obtaining the integrated software development kit through the loading of the default software development kit plug-in.
First, it should be noted that the application program deploys a default software development kit plug-in, and the deployment of the default software development kit plug-in is used for realizing a required service by loading the default software development kit even when the application program fails to perform dynamic loading of the software development kit plug-in.
That is, whether dynamic loading is successful or not is judged, if so, service component calling is directly carried out through the dynamically loaded software development kit plug-in, and if so, a default software development kit plug-in is loaded through a plug-in framework integrated by the application program, so that services in the application program can be realized even if dynamic loading is failed, and the running reliability of the application program is improved.
The default software development kit plug-in, like the aforementioned software development kit plug-in, differs only in the integrated software development kit. The default software development kit plug-in is also provided with a proxy view class so as to realize the mutual calling of the application program and the default development kit plug-in.
In step 430, the default service component is invoked by the integrated software development kit.
The software toolkit integrated by the default software development toolkit plug-in also has a default service component uniquely called by the default service toolkit plug-in, similar to the service component, the service in the application program is realized through the calling of the default service component, and the application program is further ensured to have the service of the default service component supporting the application program, such as basic webpage page access capability.
Therefore, in the implementation of the application program loading service component of the present disclosure, no matter what kind of software development kit is dynamically integrated, the software development kit plug-in is not concerned with, and the default software development kit plug-in is not concerned with, the desired service component can be called by dynamically loading the software development kit plug-in according to the supported service component, the switching of the service component can be realized, the whole application program does not need to be replaced again, and the efficient dynamic update of the software development kit can be supported.
FIG. 5 is a flowchart illustrating a method for implementing an application loading service component in accordance with an illustrative embodiment. The method for implementing the application loading service component is applied to the terminal device 130 of the implementation environment shown in fig. 1, and as shown in fig. 5, the method for implementing the application loading service component, executed by the terminal device 130, may include the following steps.
In step 510, when the application is triggered to start, the software development kit plug-in of the server configuration is dynamically deployed according to the service components supported by the application itself.
When the application program is triggered and started, dynamic deployment of the software development kit plug-ins in the application program is carried out. The dynamic deployment is realized under the cooperation of the server, and the software development kit plug-ins configured by the server are deployed for the application program, so that the dynamic deployment of the software development kit plug-ins can be carried out according to the operation requirement, the loading of the service components in the application program can be adapted to the operation requirement, and the adaptability of the service component loading in the application program is improved.
And step 530, receiving a service component issued by the server, wherein the service component is supported by the software development tool plug-in configured by the server.
After the dynamic deployment of the software development kit plug-in is completed in the application program, the service component can be obtained from the server through the software development kit plug-in, and the service component is installed and deployed.
Specifically, a server for realizing dynamic deployment of a software development kit plug-in an application program is an operation server of the application program, and the server is used as an application program cloud end for dynamically updating the application program; the server issuing the service component is different from other servers operating the server in specific implementation. Taking a browser kernel as an example, a server issuing the browser kernel is a server corresponding to the browser, namely an operation server of the browser, different types of browser kernels all have the only corresponding server, and the software development kit plug-in obtains the browser kernel through the only corresponding server.
That is to say, for the operation of the application program, the software development kit plug-in is dynamically deployed through the configuration of the server, and the issued service component can be automatically obtained, so that on one hand, effective control is ensured, and on the other hand, the efficiency is improved under the effective control.
FIG. 6 is a depiction of the details of step 510, shown in accordance with an exemplary embodiment. This step 510 may include the following steps.
Step 511, when the application program is triggered and started, acquiring service component information corresponding to the self-supported service component of the application program.
When the application program is started, the dynamic deployment of the software development kit plug-in is carried out. According to the initialization and operation processes of the application program, the application program supports at least one service component, and the condition that the application program supports the service component needs to be obtained, so that the dynamic deployment of the software development kit plug-in adaptive to the condition is facilitated.
Therefore, service component information corresponding to the service component supported by the application program itself is obtained, and the service component information identifies information such as the version number of the service component and the service component supported by the application program itself. For example, for a browser kernel, the service component information referred to is browser kernel information that identifies the browser kernel supported by the application itself and the version number of the browser kernel.
Step 513, reporting the service component information to the server.
Wherein, the server is an operation server. And after the application program obtains the service component information, reporting the service component information to an operation server of the application program.
And step 515, downloading the software development kit plug-ins configured by the server through the processing result returned by the server according to the service component information, and installing and deploying the downloaded software development kit plug-ins.
The application program obtains a processing result returned by the server, the processing result is used for marking the software development kit plug-ins corresponding to the service components which are not supported by the application program in the service components configured by the server, and providing the download addresses of the software development kit plug-ins, and for each marked software development kit plug-in, the processing result comprises two contents, namely a flag bit and the download address.
The flag bit is used for identifying whether the software development kit plug-in is newly added or updated relative to the application program. And for the application program, the deployment of the software development kit plug-in is the version updating process.
The download address is used for downloading the software development kit plug-in so as to facilitate deployment.
Therefore, the application program can realize the downloading, installation and deployment of the software development kit plug-in configured by the server through the processing result returned by the server, and further realize the dynamic deployment of the software development kit plug-in the application program under the control of the server, so that the software development kit plug-in deployed in the application program is adaptive to the configuration of the server, and further the performance of the application program is greatly enhanced.
FIG. 7 is a flowchart illustrating a method for implementing an application loading service component in accordance with an illustrative embodiment. The method for implementing the application to load the service component may include the following steps before step 510.
In step 610, the application is triggered to start, and it is determined whether the triggered start of the application is the initial start, if so, step 630 is executed, and if not, step 510 is executed.
In the terminal equipment, when the application program is triggered to be started, whether the currently started application program is started for the first time is judged, and if so, a default software development kit plug-in needs to be deployed first so as to support the basic service of the application program.
In step 630, a default software development kit plug-in is deployed.
Whether the application program is started for the first time or not needs to be dynamically deployed by the software development kit plug-in, so that the service components which can be supported by the application program are consistent with the service components configured by the server, and therefore in the operation of the application program, even if one service component is defective, the switching of the service components in all the application programs can be realized through the configuration of the server, and the application program which is widely operated has very high stability.
In addition, by the mode, the confirmation of a user is not needed, and the cooperation of installation operation is also not needed, namely background silent installation is in the process; compared with the method of replacing the whole application program again in the existing scheme, the corresponding installation package is also smaller, for example, if the application program is 10M and the updated software development kit plug-in is 200K, the corresponding installation package is 10.2M according to the existing scheme, but the installation package used in the present disclosure is only 200K, which greatly reduces the consumed flow, reduces the cost to the maximum extent and has high coverage speed.
FIG. 8 illustrates a method for implementing an application loading service component in accordance with an exemplary embodiment. The method for realizing the application program loading service component can comprise the following steps.
In step 710, when the application is triggered to start, dynamically deploying the software development kit plug-in configured by the server according to the service component supported by the application itself, and obtaining the service component supported by the software development kit plug-in.
In the terminal equipment, when the application program is triggered and started, dynamic deployment is carried out according to service components supported by the application program, so that the software development kit plug-in deployed in the application program can be adapted to the software development kit plug-in configured by the server.
The dynamically deployed software development kit plug-in automatically downloads the service components through the self-integrated software development kit so as to automatically obtain the supported service components after the dynamic deployment of the software development kit plug-in is completed.
In step 730, the triggered service instruction generated in the application program is obtained.
And after the dynamic deployment of the software development kit plug-in is completed and the service component adaptive to the configuration of the server is obtained, the service in the application program can be carried out.
The service instruction is used for triggering the calling of a corresponding service instruction in the application program so as to initiate the service in the application program.
In step 750, the specified software development kit plug-ins are dynamically loaded according to the service instructions, and the integrated software development kit is obtained through the dynamic loading of the software development kit plug-ins.
Wherein the software development kit plug-ins that conform to the service instructions are dynamically loaded. And in the process of initiating the service in the application program, dynamically loading the plug-in of the software development kit to use the most applicable plug-in of the software development kit so as to obtain the software development kit integrated in the plug-in of the software development kit.
In step 770, the service component is invoked via the integrated software development kit.
Services in the application are implemented through service component calls made. As previously mentioned, the difference in service components can provide different services for the application, such as web browsing services, payment services, etc.
FIG. 9 illustrates a method for implementing an application loading service component in accordance with an exemplary embodiment. The method for implementing application loading service components is suitable for the server 110 in the implementation environment shown in fig. 1, and as shown in fig. 9, the method for implementing application loading service components, which may be executed by the server 110, may include the following steps.
In step 810, the server receives service component information reported when the application is triggered to start, where the service component information corresponds to a service component supported by the application itself.
When any application program is triggered and started, the information of the service component of the application program is reported, so that the server can conveniently and accurately and dynamically deploy the application program through the service component supported by the server which reports the information of the service component of the application program.
In step 830, a matching process is performed according to the service component information to generate a processing result, and the processing result is returned to the application program.
The matching processing of the service component information refers to matching the service component configured by the server and the service component supported by the application program to obtain a missed service component, generating a corresponding processing result, and correspondingly returning the processing result to the application program reporting the service component.
In step 850, the software development kit plug-ins and the service components supported by the software development kit plug-ins in the processing result are dynamically deployed to the application.
The server dynamically deploys the software development kit plug-ins identified in the processing result to the application program through the generated processing result, and along with the dynamic deployment of the software development kit plug-ins, service components supported by the software development kit plug-ins are also deployed in the application program, so that the service components currently supported by the application program are consistent with the configuration of the server.
Through the server implementation process, the operation of the application program is controlled, so that the application program can support a plurality of service components, the defects of the service components are eliminated by releasing a new version of the application program in the operation of the application program, the iterative update frequency of the application program is reduced, and the cost can be reduced to the maximum extent.
FIG. 10 is a depiction of the details of step 830 shown in accordance with an exemplary embodiment. This step 830, which may be performed by the server 110, may include the following steps.
In step 831, the server matches the service component information with the set service component configuration to obtain the missing service component in the set service component configuration.
Wherein the service component information identifies the service components supported by the application itself, as previously described. The service component configuration set in the server identifies the service components that the server configures for the application.
Therefore, after obtaining the service component information reported by the application program, the server performs matching processing between the service component information and the set service component configuration to obtain a missed service component in the set service component configuration.
Taking a browser kernel as an example, a server configures a priority list of the browser kernel, and in the priority list, the browser kernels, namely the browser kernel B, the browser kernel C and the browser kernel a, are identified according to the order of the priority from high to low.
The service component information, namely the browser kernel information, reports the browser kernel C and the browser kernel A supported by the application program.
Then, it can be known through matching that the missed browser kernel in the set server component configuration is the browser kernel B, and at this time, a software development kit plug-in supporting the browser kernel B is issued according to the missed browser kernel B.
In step 833, a processing result is generated from the missed service component, and the processing result is returned to the application.
And obtaining a software development kit plug-in supporting the service component according to the missed service component, and generating a processing result corresponding to the software development kit plug-in.
Specifically, a flag bit and a download address of the plug-in of the software development kit are generated, and the flag bit and the download address form a processing result.
Through the process, the interaction between the server and the application program is realized, and effective information is provided for realizing dynamic deployment in the application program so as to ensure the effective control of the server on the application program.
Fig. 11 is a depiction of details of step 833, shown in accordance with an exemplary embodiment. This step 833, which may be performed by server 110, may include the following steps.
In step 8331, a software development kit plug-in supporting the missed service component is obtained, and the software development kit plug-in supporting the missed service component is a software development kit plug-in dynamically deployed to the application program by the server.
In step 8333, the flag bit and the download address of the plug-in of the software development kit are generated, and the processing result is generated according to the flag bit and the download address of the plug-in of the software development kit.
And generating corresponding zone bits and download addresses for the obtained software development kit plug-ins supporting the missed service components respectively, wherein the zone bits and the download addresses corresponding to all the software development kit plug-ins form a processing result.
In addition, the generated processing result may be accompanied by information related to the software development kit plug-in of the hit service component.
In step 8335, the processing result is returned to the application.
Through the embodiments provided by the disclosure, solutions for realizing the application side and the server side of the application loading service component are respectively provided, so that the method and the system can be applied to application scenes needing to provide services through the service component and application scenes needing to compare the service components.
Various general service components can be deployed in other applications, such as third party applications with respect to service components, through the implementation process described above. For example, for a browser kernel, the application program is a third party application program with respect to the browser kernel and the browser.
The following describes the method for implementing application program loading service components by taking terminal equipment as a smart phone as an example and combining a specific application scenario. For example, FIG. 12 is a schematic diagram of the overall implementation process.
First, it should be briefly noted that, as is clear from the above description, the method for implementing the application program to load the service component includes two major parts, namely, a dynamic deployment of the software development kit plug-in, and a calling service component using the software development kit plug-in.
Referring to fig. 12, the application 910 implements dynamic update of software development kit plug-ins through the application cloud 920 to dynamically deploy a plurality of software development kit plug-ins 930, i.e., software development kit plug-in package 1, software development kit plug-in packages 2, … …, and software development kit plug-in N. (the software development kit plug-in is simply identified as a plug-in FIG. 13)
A plug-in framework 911 is integrated into the application 910. The software development kit 931 is integrated in the deployed software development kit plug-in, and the supported browser kernel 940 can be called through the integrated software development kit 931. (the integrated software development kit 931 is identified simply as SDK in FIG. 13)
Due to the fact that the plurality of software development kit plug-ins 930 are dynamically deployed in the application 910, the application has the capability of calling a plurality of browser kernels 940, namely the browser kernel 1, the browser kernels 2 and … … and the browser kernel N, and further can select and switch the browser kernels 940, namely the dynamic loading of the software development kit plug-ins 930 is achieved through the plug-in frame 911 and the configuration file 950, and then the selected browser kernels 940 are called, wherein the browser kernels are issued by the corresponding browser cloud 960.
In particular, FIG. 13 illustrates a dynamic deployment flow in accordance with an exemplary embodiment. The dynamic deployment process is executed by the cooperation of the smart phone and the server. Fig. 13 corresponds to one or several steps of the embodiments of fig. 5, 6, 7, 8, 9, 10 and 11.
After the application program is started, a default browser software development kit plug-in is deployed for the first time, it is ensured that a browser kernel can support the basic webpage page access capability of the application program, and steps 1010 to 1030 are executed.
And reporting the kernel list of the local browser support of the application program to a server, namely, the service component information server in the form of the report list matches the kernel list of the local browser support of the application program with the set configuration, and returning the matched processing result to the application program, namely, executing the step 1040 and the step 1050.
And the application program obtains a processing result sent by the server, judges whether new addition or update exists or not, if yes, downloads the software development kit plug-in, and installs and deploys the plug-in to take effect, namely, the steps 1060 to 1080 are executed.
It should be particularly noted that, for the newly added software development kit plug-in, the installation and deployment are directly performed; and for the updated software development kit plug-in, the old version of the software development kit plug-in is covered.
FIG. 14 is an illustration of a call services component flow using a software development kit plug-in, in accordance with an exemplary embodiment. The calling service component flow is executed by an application program running in the smart phone. Fig. 14 corresponds to one or several steps of the embodiments of fig. 3 and 4.
When the application loads a network address, it first configures the file to know the appropriate software development kit plug-in, i.e., step 1110 and step 1120 are performed. After the configuration file is read, the specified software development kit plug-in is selected to be loaded, i.e., step 1130 is executed.
And if the loading of the software development kit plug-in is successful, calling a browser kernel by using the software development kit integrated in the specified software development kit plug-in to access the webpage, otherwise, using a default software development kit plug-in to execute the steps 1140 to 1180.
It should be further explained that, for the dynamic loading involved in the service component calling process using the software development kit plug-in, that is, the obtaining of the software development kit is implemented by using a dynamic loading technology, the following specific steps are performed:
FIG. 15 illustrates a dynamic loading implementation in accordance with an exemplary embodiment. When the application is started, the system allocates a block of memory, and loads the data and host code information 1231 associated with the application into the memory block 1200, steps 1210 and 1230.
When the plug-in function of the software development kit is needed, dynamic loading is performed, and the relevant data of the software development kit and the SDK plug-in code information 1251 are loaded into the memory block 1200, that is, step 1250.
Since both host code information 1231 and SDK plug-in code information 1251 are already in memory, a mutual call may be made, step 1270.
In the mutual call realized by the SDK plug-in code information 1251 and the host code information 1231, particularly, for the call of the plug-in of the software development kit performed by the application program, the application program has the capability of calling different plug-ins of the software development kit by defining a uniform agent social class.
FIG. 16 is an implementation of an application calling a software development kit plug-in, according to an illustrative embodiment. For the software development kit plug-in 930, a unified proxy view class 933 is defined, and the application 910 accesses the software development kit 931 through the proxy view class 933.
Therefore, the application 910 does not need to pay attention to the specific implementation of the software development kit 931, that is, each software development kit 931 can be adapted, and only one new plug-in needs to be generated.
With this in mind, FIG. 17 is an implementation of a software development kit plug-in shown in accordance with an exemplary embodiment. That is, the software development kit 931 is integrated in the agent project which defines the agent view class 933, and is packaged and released to obtain the required software development kit plug-in 930.
Further preferably, in order to distinguish different software development kit plug-ins, the following information is attached to the generated software development kit plug-ins:
(1) a package name, which is a unique identifier, for distinguishing between different software development kit plug-ins;
(2) and the version number is version information of the same software development kit plug-in for updating and upgrading.
By the aid of the software development kit plug-in and dynamic deployment and the cloud-side efficient and dynamic switching of the service components, even if the service components are updated randomly in the application program, interference on users cannot be caused, the service components are updated only by updating the corresponding software development kit plug-in, the efficiency is higher due to silent installation, the coverage is improved, and the interference degree on the users is reduced to 0.
The following are embodiments of the apparatus of the present disclosure, which may be used to execute embodiments of the method for implementing the application loading service component executed by the server 110 and the terminal device 130 of the present disclosure. For details that are not disclosed in the embodiments of the apparatus of the present disclosure, please refer to the embodiments of the method for implementing the application program to load the service component of the present disclosure.
FIG. 18 is a block diagram illustrating an apparatus to implement an application loading service component in accordance with an illustrative embodiment. The apparatus for implementing the application loading service component may be used in the terminal device 130 in the implementation environment shown in fig. 1, and performs all the steps of the method for implementing the application loading service component shown in fig. 3.
As shown in fig. 18, the apparatus for implementing the application loading service component includes but is not limited to: an instruction obtaining module 1310, a configuration reading module 1330, a plug-in loading module 1350 and a calling module 1370.
The instruction obtaining module 1310 is configured to obtain a service instruction triggered to be generated in an application program.
The configuration reading module 1330 is configured to trigger the plug-in framework integrated with the application program itself to read the configuration file according to the instruction.
The plug-in loading module 1350 is configured to load a software development kit plug-in of the configuration file instruction, so as to obtain a software development kit integrated with the software development kit plug-in.
And the calling module 1370 is used for calling the service component through the integrated software development kit.
The implementation process of the functions and actions of each module in the device is specifically detailed in the implementation process of the corresponding step in the method for loading the service component by the application program, and is not described herein again.
FIG. 19 is a block diagram illustrating an apparatus to implement an application loading service component in accordance with another illustrative embodiment. The device for implementing the application program loading service component includes but is not limited to: a default plug-in loading module 1410 and a default component invocation module 1430.
And the default plug-in loading module 1410 is used for loading the default software development kit plug-in when the loading of the specified software development kit plug-in fails, and obtaining the integrated software development kit through the loading of the default software development kit plug-in.
And a default component calling module 1430 for calling the default service component through the integrated software development kit.
FIG. 20 is a block diagram illustrating an apparatus to implement an application loading service component in accordance with another exemplary embodiment. The device for implementing the application program loading service component includes but is not limited to: a dynamic deployment module 1510 and a component reception module 1530.
And the dynamic deployment module 1510 is used for dynamically deploying the software development kit plug-ins configured by the server according to the service components supported by the application program when the application program is triggered and started.
The component receiving module 1530 is configured to receive a service component delivered by the server, where the service component is supported by a software development kit plug-in configured by the server.
Optionally, the dynamic deployment module 1510 is shown in fig. 21, including but not limited to: a component information obtaining unit 1511, an information reporting unit 1513, and a downloading unit 1515.
The component information obtaining unit 1511 is configured to obtain service component information corresponding to the service component supported by the application itself when the application is triggered and started.
An information reporting unit 1513, configured to report the service component information to the server.
And a downloading unit 1515, configured to download the software development kit plug-in configured by the server according to the processing result returned by the service component information, and install and deploy the downloaded software development kit plug-in.
Optionally, the dynamic deployment module 1510 further includes a start judgment unit and a default plug-in deployment unit.
And the starting judgment unit is used for triggering and starting the application program, judging whether the triggering and starting of the application program is initial starting or not, and if so, notifying the default plug-in deployment unit.
The default plug-in deployment unit is used for deploying default software development kit plug-ins.
FIG. 22 is a block diagram illustrating an apparatus to implement an application loading service component in accordance with another illustrative embodiment. The device for implementing the application program loading service component includes but is not limited to: deployment module 1610, service initiation module 1630, appointed load module 1650, and component call module 1670.
The deployment module 1610 is configured to dynamically deploy the software development kit plug-in configured by the server according to the service component supported by the application program when the application program is triggered and started, so as to obtain the service component supported by the software development kit plug-in.
The service initiation module 1630 is configured to obtain a service instruction triggered and generated in the application program.
And the designated loading module 1650 is used for dynamically loading the designated software development kit plug-in according to the service instruction, and obtaining the integrated software development kit through the dynamic loading of the software development kit plug-in.
A component invocation module 1670 for invoking service components through the integrated software development kit.
FIG. 23 is a block diagram illustrating an apparatus to implement an application loading service component in accordance with another exemplary embodiment. The device for implementing the application program loading service component includes but is not limited to: an information receiving module 1710, a matching processing module 1730, and a server configuration deployment module 1750.
An information receiving module 1710, configured to receive service component information reported when an application is triggered and started, where the service component information corresponds to a service component supported by the application itself.
The matching processing module 1730 is configured to perform matching processing according to the service component information to generate a processing result, and return the processing result to the application program.
And the server configuration deployment module 1750 is used for dynamically deploying the software development kit plug-ins in the processing result and the service components supported by the software development kit plug-ins to the application program.
Optionally, the matching processing module 1730 is shown in fig. 24, and includes but is not limited to: a matching unit 1731 and a result generating unit 1733.
The matching unit 1731 is configured to match the service component information with the set service component configuration, and obtain a missing service component in the set service component configuration.
The result generating unit 1733 is configured to generate a processing result according to the missed service component, and return the processing result to the application program.
Optionally, the result generating unit 1733 is shown in fig. 25, and includes but is not limited to: a plug-in acquisition subunit 17331, a content generation subunit 17333, and a result return subunit 17335.
The plug-in obtaining subunit 17331 is configured to obtain a software development kit plug-in supporting the missed service component, where the software development kit plug-in supporting the missed service component is a software development kit plug-in dynamically deployed by the server to the application program.
The content generating subunit 17333 is configured to generate a flag bit and a download address of the software development kit plug-in, and generate a processing result according to the flag bit and the download address of the software development kit plug-in.
A result return subunit 17335, configured to return the processing result to the application program.
Optionally, the present disclosure further provides an apparatus for implementing application loading service components, where the apparatus for implementing application loading service components may be used in the terminal device 130 in the implementation environment shown in fig. 1, and the apparatus includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform:
acquiring a service instruction triggered and generated in an application program;
dynamically loading a specified software development kit plug-in according to the service instruction, and obtaining an integrated software development kit through the dynamic loading of the software development kit plug-in;
calling a service component through the integrated software development kit.
The specific manner in which the processor of the apparatus performs operations in this embodiment has been described in detail in relation to this embodiment of the method for implementing an application loading service component, and will not be described in detail here.
Optionally, the present disclosure further provides an apparatus for implementing application loading service components, where the apparatus for implementing application loading service components may be used in the terminal device 130 in the implementation environment shown in fig. 1, and the apparatus includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform:
when an application program is triggered and started, dynamically deploying a software development kit plug-in configured by a server according to a service component supported by the application program, and obtaining the service component supported by the software development kit plug-in;
acquiring a service instruction triggered and generated in an application program;
dynamically loading a specified software development kit plug-in according to the service instruction, and obtaining an integrated software development kit through the dynamic loading of the software development kit plug-in;
calling a service component through the integrated software development kit.
In an exemplary embodiment, a storage medium is also provided that is a computer-readable storage medium, such as may be transitory and non-transitory computer-readable storage media, including instructions. The storage medium refers, for example, to the memory 204 including instructions executable by the processor 218 of the apparatus 200 to perform the above-described method for implementing an application loading service component.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (15)

1. A method for realizing application program loading service components comprises the following steps:
acquiring a service instruction triggered and generated in an application program;
triggering a plug-in framework integrated by the application program to read a configuration file according to the service instruction;
loading a software development kit plug-in specified by the configuration file;
if the specified software development kit plug-in is loaded successfully, obtaining an integrated software development kit calling service component through the loading of the specified software development kit plug-in;
and if the specified software development kit plug-in fails to be loaded, loading a default software development kit plug-in, calling a default service component by the integrated software development kit obtained by loading the default software development kit plug-in, wherein the default software development kit plug-in is deployed when the application program is triggered and started for the first time.
2. The method of claim 1, further comprising:
when the application program is triggered and started, dynamically deploying a software development kit plug-in configured by a server according to a service component supported by the application program;
and receiving a service component issued by the server, wherein the service component is supported by the software development kit plug-in configured by the server.
3. The method according to claim 2, wherein the step of dynamically deploying the server-configured software development kit plug-in according to the service components supported by the application program when the application program is triggered to start comprises:
when the application program is triggered and started, acquiring service component information corresponding to a self-supported service component of the application program;
reporting the service component information to a server;
and downloading the software development kit plug-in configured by the server according to the processing result returned by the service component information through the server, and installing and deploying the downloaded software development kit plug-in.
4. The method according to claim 2, wherein before the step of dynamically deploying the server-configured software development kit plug-in according to the service components supported by the application itself when the application is triggered to start, the method further comprises:
triggering and starting the application program, judging whether the triggering and starting of the application program is the initial starting, if so, then
A default software development kit plug-in is deployed.
5. A method for realizing application program loading service components comprises the following steps:
the method comprises the steps that a server receives service component information reported when an application program is triggered and started, wherein the service component information corresponds to service components supported by the application program;
matching the service component information with the set service component configuration to generate a processing result, and returning the processing result to the application program, wherein the processing result indicates the software development kit plug-ins corresponding to the service components which are not in the set service component configuration;
and dynamically deploying the software development kit plug-ins corresponding to the missed service components in the processing result and the service components supported by the software development kit plug-ins to the application program.
6. The method of claim 5, wherein the step of returning a processing result to the application according to the service component information comprises:
the server matches the service component information with the set service component configuration to obtain a missed service component in the set service component configuration;
and generating a processing result according to the missed service component, and returning the processing result to the application program.
7. The method of claim 6, wherein the step of generating a processing result according to the missed service component and returning the processing result comprises:
obtaining a software development kit plug-in supporting a missed service component, wherein the software development kit plug-in supporting the missed service component is a software development kit plug-in dynamically deployed to the application program by a server;
generating a flag bit and a download address of the software development kit plug-in, and generating a processing result through the flag bit and the download address of the software development kit plug-in;
and returning the processing result to the application program.
8. An apparatus for implementing an application loading service component, the apparatus comprising:
the instruction acquisition module is used for acquiring a service instruction which is triggered and generated in the application program;
the configuration reading module is used for triggering the self-integrated plug-in framework of the application program to read the configuration file according to the service instruction;
the plug-in loading module is used for loading the plug-in of the software development kit specified by the configuration file;
the calling module is used for obtaining an integrated software development kit calling service component through the loading of the specified software development kit plug-in if the specified software development kit plug-in is loaded successfully;
and the default plug-in loading module is used for loading a default software development kit plug-in if the specified software development kit plug-in fails to load, and calling a default service component by the integrated software development kit obtained by loading the default software development kit plug-in, wherein the default software development kit plug-in is deployed when the application program is triggered and started for the first time.
9. The apparatus of claim 8, further comprising:
the dynamic deployment module is used for dynamically deploying the software development kit plug-in configured by the server according to the service components supported by the application program when the application program is triggered and started;
and the component receiving module is used for receiving a service component issued by the server, and the service component is supported by the software development kit plug-in configured by the server.
10. The apparatus of claim 9, wherein the dynamic deployment module comprises:
the component information acquisition unit is used for acquiring service component information corresponding to a self-supporting service component of the application program when the application program is triggered and started;
an information reporting unit, configured to report the service component information to a server;
and the downloading unit is used for downloading the software development kit plug-in configured by the server according to the processing result returned by the service component information through the server, and installing and deploying the downloaded software development kit plug-in.
11. The apparatus of claim 9, wherein the dynamic deployment module comprises:
the starting judgment unit is used for triggering and starting the application program and judging whether the triggering and starting of the application program is initial starting or not, and if yes, the default plug-in deployment unit is notified;
the default plug-in deployment unit is used for deploying default software development kit plug-ins.
12. An apparatus for implementing an application loading service component, the apparatus comprising:
the information receiving module is used for receiving service component information reported when an application program is triggered and started, wherein the service component information corresponds to a service component supported by the application program;
the matching processing module is used for performing matching processing according to the service component information and the set service component configuration to generate a processing result and returning the processing result to the application program, wherein the processing result indicates the software development kit plug-in corresponding to the service component which is not in the set service component configuration;
and the server configuration deployment module is used for dynamically deploying the software development kit plug-in corresponding to the service component which is not in hit in the processing result and the service component supported by the software development kit plug-in to the application program.
13. The apparatus of claim 12, wherein the matching processing module comprises:
the matching unit is used for matching the service component information with the set service component configuration to obtain the missed service component in the set service component configuration;
and the result generating unit is used for generating a processing result according to the missed service component and returning the processing result to the application program.
14. The apparatus of claim 13, wherein the result generation unit comprises:
the plug-in acquisition subunit is used for acquiring a software development kit plug-in supporting a missed service component, wherein the software development kit plug-in supporting the missed service component is a software development kit plug-in dynamically deployed to the application program by a server;
the content generation subunit is used for generating a flag bit and a download address of the software development kit plug-in, and generating a processing result through the flag bit and the download address of the software development kit plug-in;
and the result returning subunit is used for returning the processing result to the application program.
15. An apparatus for implementing an application loading service component, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a service instruction triggered and generated in an application program;
triggering a plug-in framework integrated by the application program to read a configuration file according to the service instruction;
loading a software development kit plug-in specified by the configuration file;
if the specified software development kit plug-in is loaded successfully, obtaining an integrated software development kit calling service component through the loading of the specified software development kit plug-in;
and if the specified software development kit plug-in fails to be loaded, loading a default software development kit plug-in, calling a default service component by the integrated software development kit obtained by loading the default software development kit plug-in, wherein the default software development kit plug-in is deployed when the application program is triggered and started for the first time.
CN201610442988.6A 2016-06-20 2016-06-20 Method and device for realizing application program loading service assembly Active CN107526605B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610442988.6A CN107526605B (en) 2016-06-20 2016-06-20 Method and device for realizing application program loading service assembly

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610442988.6A CN107526605B (en) 2016-06-20 2016-06-20 Method and device for realizing application program loading service assembly

Publications (2)

Publication Number Publication Date
CN107526605A CN107526605A (en) 2017-12-29
CN107526605B true CN107526605B (en) 2020-03-06

Family

ID=60734479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610442988.6A Active CN107526605B (en) 2016-06-20 2016-06-20 Method and device for realizing application program loading service assembly

Country Status (1)

Country Link
CN (1) CN107526605B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108733395B (en) * 2018-05-14 2022-02-01 广州虎牙信息科技有限公司 Software application program service updating method and device and computer equipment
CN109408256B (en) * 2018-10-17 2021-03-19 麒麟合盛网络技术股份有限公司 Application calling method and device
CN109614107B (en) * 2018-11-01 2022-09-16 同盾控股有限公司 Integration method and device of software development kit
CN109819042A (en) * 2019-02-02 2019-05-28 北京字节跳动网络技术有限公司 For providing the method and apparatus of Software Development Kit
CN110489149B (en) * 2019-08-23 2021-03-26 珠海格力电器股份有限公司 Control method and system of intelligent equipment
CN111427580A (en) * 2020-03-24 2020-07-17 Oppo广东移动通信有限公司 Software development kit access method and device and storage medium
CN111443939A (en) * 2020-04-16 2020-07-24 视若飞信息科技(上海)有限公司 Configuration method and device of software development kit and storage medium
CN114327437A (en) * 2020-09-30 2022-04-12 华为技术有限公司 Plug-in operation system, plug-in operation method and electronic equipment
CN113448558A (en) * 2021-07-07 2021-09-28 医声医事(北京)科技有限公司 Method for component generation

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1924803A (en) * 2005-09-01 2007-03-07 西门子公司 Apparatus and method for processing data in different modalities
CN103034477A (en) * 2011-09-29 2013-04-10 北京新媒传信科技有限公司 Component-based open architecture model implementation method
CN103294455A (en) * 2012-02-27 2013-09-11 杭州勒卡斯广告策划有限公司 Software service implementation method and system, as well as Java platform
CN104424002A (en) * 2013-09-10 2015-03-18 中国科学院声学研究所 Dynamic component loading method and system based on plug-in mechanism
CN104461495A (en) * 2014-10-31 2015-03-25 北京思特奇信息技术股份有限公司 Method and system for separation of data persistence layers

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1924803A (en) * 2005-09-01 2007-03-07 西门子公司 Apparatus and method for processing data in different modalities
CN103034477A (en) * 2011-09-29 2013-04-10 北京新媒传信科技有限公司 Component-based open architecture model implementation method
CN103294455A (en) * 2012-02-27 2013-09-11 杭州勒卡斯广告策划有限公司 Software service implementation method and system, as well as Java platform
CN104424002A (en) * 2013-09-10 2015-03-18 中国科学院声学研究所 Dynamic component loading method and system based on plug-in mechanism
CN104461495A (en) * 2014-10-31 2015-03-25 北京思特奇信息技术股份有限公司 Method and system for separation of data persistence layers

Also Published As

Publication number Publication date
CN107526605A (en) 2017-12-29

Similar Documents

Publication Publication Date Title
CN107526605B (en) Method and device for realizing application program loading service assembly
US10219130B2 (en) Remote device modification
CN110225487B (en) Profile generating and acquiring method, related equipment and storage medium
US7657884B2 (en) Electronic device supporting multiple update agents
US9313643B1 (en) Dynamic subscriber identity module
CN108241500B (en) Method, device and system for repairing hardware component and storage medium
CN107992308B (en) Plug-in management method for android terminal application program
US9363622B1 (en) Separation of client identification composition from customization payload to original equipment manufacturer layer
US20110264772A1 (en) Method and system for proximity-based, peer-initiated device configuration
KR101541112B1 (en) FOTA system and the method
CN105228119A (en) A kind of Call Waiting collocation method and device
CN112214752A (en) Dynamic control method, device and equipment of application permission and storage medium
CN109002314A (en) Oftware updating method, device, electronic equipment and storage medium
US10078532B2 (en) Resource management method and device for terminal system among multiple operating systems
CN113168332B (en) Data processing method and device and mobile terminal
US20170013440A1 (en) Subscription Management
CN108121560A (en) Difference bag upgrade method, device, terminal and computer readable storage medium
CN110851151A (en) Method, device, terminal, server and storage medium for pre-installing application
CN108334360A (en) Method, apparatus, storage medium and the computer equipment of application program dynamic load
CN113721936B (en) Application management method, intelligent terminal, device and storage medium
CN107861666B (en) Desktop application installation method and device
CN107122174B (en) Application program updating method and device
CN113422791B (en) Cloud service configuration method and device, electronic equipment and computer readable storage medium
CN109213550B (en) Interactive implementation method, device and equipment of embedded application and readable storage medium
CN105700895A (en) Adaptation method for terminal system, terminal and system server

Legal Events

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