[go: up one dir, main page]

CN107526605A - The method and apparatus for realizing application program loading serviced component - Google Patents

The method and apparatus for realizing application program loading serviced component Download PDF

Info

Publication number
CN107526605A
CN107526605A CN201610442988.6A CN201610442988A CN107526605A CN 107526605 A CN107526605 A CN 107526605A CN 201610442988 A CN201610442988 A CN 201610442988A CN 107526605 A CN107526605 A CN 107526605A
Authority
CN
China
Prior art keywords
application program
unit
sdk
plug
serviced 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.)
Granted
Application number
CN201610442988.6A
Other languages
Chinese (zh)
Other versions
CN107526605B (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure discloses a kind of method and apparatus of application program loading serviced component.Methods described includes:Obtain the service order for the generation that is triggered in application program;The integrated card cage of the application program itself is triggered according to the service order and reads configuration file;The SDK plug-in unit that the configuration file is specified is loaded, obtains the SDK of the SDK plug-in unit;Serviced component is called by the integrated SDK.In addition, additionally provide a kind of device of application program loading serviced component.The method and apparatus of above-mentioned application program loading serviced component can switching at runtime serviced component, once avoid serviced component occur defect just cause application program can not normal operation limitation.

Description

The method and apparatus for realizing application program loading serviced component
Technical field
This disclosure relates to Computer Applied Technology field, more particularly to a kind of side for realizing application program loading serviced component Method and device.
Background technology
Mostly it is to realize its service provided by loading serviced component in the operation of application program.For example, for For the application program for realizing web page browsing function, signified serviced component is browser kernel.
By taking browser kernel as an example, the browser disposed in terminal device allows the application call browser of its own Kernel, to realize the WEB-browsing services in application program.In this implementation, it is necessary to application program integrated browser provide it is soft Part development kit, application program can call browser kernel by integrated SDK side.
But in this implementation, because the SDK that browser provides is embedded in the application, can only adjust With single browser kernel.Once browser kernel occur defect will cause application program can not normal operation, and only It can be resolved by changing application program.
It follows that in existing application program loading serviced component, there is can not switching at runtime serviced component office It is sex-limited.
The content of the invention
In order to solve present in correlation technique can not switching at runtime serviced component technical problem, present disclose provides one The method and apparatus that kind realizes application program loading serviced component.
A kind of method for realizing application program loading serviced component, including:
Obtain the service order for the generation that is triggered in application program;
The integrated card cage of the application program itself is triggered according to the service order and reads configuration file;
The SDK plug-in unit that the configuration file is specified is loaded, obtains the SDK plug-in unit SDK;
Serviced component is called by the integrated SDK.
A kind of method for realizing application program loading serviced component, including:
When application program is triggered startup, matched somebody with somebody according to the serviced component Dynamical Deployment server that the application program itself is supported The SDK plug-in unit put, obtain the serviced component that the SDK plug-in unit is supported;
Obtain the service order for the generation that is triggered in application program;
The SDK plug-in unit specified according to the service order dynamic load, is inserted by the SDK The dynamic load of part obtains integrated SDK;
Serviced component is called by the integrated SDK.
A kind of device for realizing application program loading serviced component, described device include:
Instruction acquisition module, for obtaining the service order for the generation that is triggered in application program;
Read module is configured, is matched somebody with somebody for triggering the integrated card cage of the application program itself according to the service order and reading Put file;
Plug-in unit load-on module, the SDK plug-in unit specified for loading the configuration file, obtains the software and opens Send out the SDK of kit plug-in unit;
Calling module, for calling serviced component by the integrated SDK.
A kind of device for realizing application program loading serviced component, described device include:
Deployment module, for when application program is triggered startup, being moved according to the serviced component that the application program itself is supported The SDK plug-in unit of state deployment services device configuration, obtain the service group that the SDK plug-in unit is supported Part;
Initiation module is serviced, for obtaining the service order for the generation that is triggered in application program;
Load-on module is specified, for the SDK plug-in unit specified according to the service order dynamic load, passes through institute The dynamic load for stating SDK plug-in unit obtains integrated SDK;
Component call module, for calling serviced component by the integrated SDK.
A kind of device for realizing application program loading serviced component, described device include:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured:
Obtain the service order for the generation that is triggered in application program;
The integrated card cage of the application program itself is triggered according to the service order and reads configuration file;
The SDK plug-in unit that the configuration file is specified is loaded, obtains the SDK plug-in unit SDK;
Serviced component is called by the integrated SDK.
A kind of device for realizing application program loading serviced component, described device include:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured:
When application program is triggered startup, matched somebody with somebody according to the serviced component Dynamical Deployment server that the application program itself is supported The SDK plug-in unit put, obtain the serviced component that the SDK plug-in unit is supported;
Obtain the service order for the generation that is triggered in application program;
The SDK plug-in unit specified according to the service order dynamic load, is inserted by the SDK The dynamic load of part obtains integrated SDK;
Serviced component is called by the integrated SDK.
The technical scheme provided by this disclosed embodiment can include the following benefits:
When acquisition application program is triggered the service order of generation, inserted according to service order triggering application program itself is integrated Part framework reads configuration file, the SDK plug-in unit that loading configuration file is specified, obtains SDK and inserts The integrated SDK of part, then pass through integrated SDK and call serviced component, in this implementation, use In call serviced component SDK be to be integrated in by the form of plug-in unit in SDK, software development Kit is separate with application program, and the dynamic load by being carried out in application program realizes the software development work specified Has the loading of bag plug-in unit, therefore, it is possible to realize the dynamic of serviced component by the SDK required for dynamic load State switches, and occurs to be resolved once defect also only needs to upgrade SDK plug-in unit once serviced component, is not required to Whole application program is changed, and then avoids thus caused problems.
It should be appreciated that the general description and following detailed description of the above are only exemplary, this can not be limited It is open.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the present invention Example, and in specification together for explaining principle of the invention.
Fig. 1 is the schematic diagram of the implementation environment according to involved by the disclosure;
Fig. 2 is a kind of block diagram of device according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of method for realizing application program loading serviced component according to an exemplary embodiment;
Fig. 4 is a kind of flow of method for realizing application program loading serviced component according to another exemplary embodiment Figure;
Fig. 5 is a kind of flow of method for realizing application program loading serviced component according to another exemplary embodiment Figure;
Fig. 6 be Fig. 5 correspond to embodiment when application program be triggered startup when, according to application program itself support serviced component The flow chart of the SDK plug-in unit step of Dynamical Deployment server configuration;
Fig. 7 is a kind of flow of method for realizing application program loading serviced component according to another exemplary embodiment Figure;
Fig. 8 is a kind of flow of method for realizing application program loading serviced component according to another exemplary embodiment Figure;
Fig. 9 is that a kind of according to another exemplary embodiment realizes the method for application program loading serviced component in server The flow chart of side;
Figure 10 be Fig. 9 correspond to embodiment according to service component information carry out matching treatment generation result, to application program Return to the flow chart of result step;
Figure 11 be Figure 10 correspond to embodiment result is generated according to miss serviced component, handled to application program return The flow chart of result step;
Figure 12 is the application program schematic diagram obtained according to an exemplary embodiment;
Figure 13 is the flow chart of the Dynamical Deployment according to an exemplary embodiment;
Figure 14 is the flow of the calling serviced component using software development work bag plug-in unit according to an exemplary embodiment Figure;
Figure 15 is the flow chart that the dynamic load according to an exemplary embodiment is realized;
Figure 16 is the flow of the realization of the application call SDK plug-in unit according to an exemplary embodiment Figure;
Figure 17 is the flow chart of the realization of the SDK plug-in unit according to an exemplary embodiment;
Figure 18 is a kind of block diagram of device for realizing application program loading serviced component according to an exemplary embodiment;
Figure 19 is a kind of block diagram of device for realizing application program loading serviced component according to another exemplary embodiment;
Figure 20 is a kind of block diagram of device for realizing application program loading serviced component according to another exemplary embodiment;
Figure 21 is the block diagram for the Dynamical Deployment module that Figure 20 corresponds to embodiment;
Figure 22 is a kind of block diagram of device for realizing application program loading serviced component according to another exemplary embodiment;
Figure 23 is a kind of block diagram of device for realizing application program loading serviced component according to another exemplary embodiment;
Figure 24 is the block diagram for the matching treatment module that Figure 23 corresponds to embodiment;
Figure 25 is the block diagram for the result generation unit that Figure 24 corresponds to embodiment.
Embodiment
Here explanation will be performed to exemplary embodiment in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is the schematic diagram of the implementation environment according to involved by the disclosure.The implementation environment includes:Server 110 and extremely A few terminal device 130.
Interrelational form between server 110 and terminal device 130, include the network associate mode and/or agreement of hardware, And the data correlation mode come and gone therebetween.
Optionally, terminal device 130 can be various mobile terminals or various smart machines.
Fig. 2 is a kind of block diagram of device 200 according to an exemplary embodiment.For example, device 200 can be Fig. 1 Terminal device in shown implementation environment.Terminal device such as can be the mobile terminals such as smart mobile phone, tablet personal computer.Such as Can be intelligent television, smart television set top box, intelligent air condition and the first-class various smart machines of intelligent camera.
Reference picture 2, device 200 can include following one or more assemblies:Processing component 202, memory 204, power supply Component 206, multimedia groupware 208, audio-frequency assembly 210, sensor cluster 214 and communication component 216.
The integrated operation of the usual control device 200 of processing component 202, such as communicated with display, call, data, phase Operation that machine operates and record operation is associated etc..Processing component 202 can include one or more processors 218 to perform Instruction, to complete all or part of step of above-mentioned method.In addition, processing component 202 can include one or more modules, The interaction being easy between processing component 202 and other assemblies.For example, processing component 202 can include multi-media module, with convenient Interaction between multimedia groupware 208 and processing component 202.
Memory 204 is configured as storing various types of data to support the operation in device 200.These data are shown Example includes the instruction of any application program or method for operating on the device 200.Memory 204 can be by any kind of Volatibility or non-volatile memory device or combinations thereof realization, such as static RAM(SRAM), electrically erasable Except programmable read only memory(EEPROM), Erasable Programmable Read Only Memory EPROM(EPROM), programmable read only memory (PROM), read-only storage(ROM), magnetic memory, flash memory, disk or CD.One is also stored with memory 204 It is following any to complete or multiple modules, one or more modules are configured to be performed by the one or more processors 218 All or part of step in shown method.
Power supply module 206 provides electric power for the various assemblies of device 200.Power supply module 206 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 200.
Multimedia groupware 208 is included in the screen of one output interface of offer between described device 200 and user.One In a little embodiments, screen can include liquid crystal display(LCD)And touch panel(TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detect and touched or the related duration and pressure of slide with described.
Audio-frequency assembly 210 is configured as output and/or input audio signal.For example, audio-frequency assembly 210 includes a Mike Wind(MIC), when device 200 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The audio signal received can be further stored in memory 204 or via communication set Part 216 is sent.In certain embodiments, audio-frequency assembly 210 also includes a loudspeaker, for exports audio signal.
Sensor cluster 214 includes one or more sensors, and the state for providing various aspects for device 200 is commented Estimate.For example, sensor cluster 214 can detect opening/closed mode of device 200, the relative positioning of component, sensor group Part 214 can be changed with the position of 200 1 components of detection means 200 or device and the temperature change of device 200.At some In embodiment, the sensor cluster 214 can also include Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 216 is configured to facilitate the communication of wired or wireless way between device 200 and other equipment.Device 200 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 216 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 216 also includes near-field communication(NFC)Module, to promote junction service.Example Such as, radio frequency identification can be based in NFC module(RFID)Technology, Infrared Data Association(IrDA)Technology, ultra wide band(UWB)Technology, Bluetooth(BT)Technology and other technologies are realized.
In the exemplary embodiment, device 200 can be by one or more application specific integrated circuits(ASIC), numeral letter Number processor(DSP), digital signal processing appts(DSPD), PLD(PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components realize, for performing following methods.
Fig. 3 is a kind of method for realizing application program loading serviced component according to an exemplary embodiment.The reality The method of existing application program loading serviced component is used for the mobile terminal 110 of implementation environment shown in Fig. 1, as shown in figure 3, the realization The method that application program loads serviced component, can be performed by terminal device, may comprise steps of.
In the step 310, the service order for the generation that is triggered in application program is obtained.
Wherein, application program refers to being installed in terminal device, it is necessary to realize the program of service.Such as application program Can be the program that the service that browses is realized by webpage, then WEB-browsing services are the service that it is realized;Again for example, application Program can attach the program of payment services, then payment services are the service that it is realized.In other words, application program It can be random procedure, including possess the program of generic service function.
Service order is used for triggering in the application and performs corresponding operation, to realize that it is provided in the application Service, such as, Web browsing service as described above, payment services etc..
Service order is to trigger generation with the initiation serviced in application program.Such as triggered in application program into Go the loading of network address, to initiate WEB-browsing services, now, application program is triggered generation service order, in order to Perform the related operation of WEB-browsing services.
Need further accurately to illustrate, application program refers to the main body program of application.
In a step 330, the integrated framework plug-in unit of application program itself is triggered according to service order and reads configuration file.
Wherein, card cage refers to that application program integrates the module, so as to go with the module for calling plug-in capabilities Call plug-in unit.Configuration file is the SDK plug-in unit for controlling dynamic load in application program.By in configuration file The statement of available SDK plug-in unit loads this available software development work in the dynamic load of application program Has bag plug-in unit.
Configuration file can be server end configuration or software end configuration, herein without limiting.For clothes The configuration file of business device end configuration, will be the configuration text that server issues according to the backward application program of operation needs completion configuration Part.On the other hand, application program selects the SDK plug-in unit used by configuration file, and in configuration file Statement, thus can be with the SDK plug-in unit selected by using.
The integrated card cage of application program itself reads configuration file, in order to know when service order is triggered Specify which SDK plug-in unit is loaded.
In step 350, the SDK plug-in unit that loading configuration file is specified, obtains SDK and inserts The integrated SDK of part.
Wherein, SDK plug-in unit is the plug-in unit for being integrated with SDK.SDK is inserted Part and application program are separate between the two.SDK plug-in unit is deposited at the installation directory of application program, In other words, host of the application program as SDK plug-in unit, SDK plug-in unit realize application program In part of functions.
For example, SDK plug-in unit can be browser software development kit plug-in unit, itself it is integrated with and browses Device development kit.Due to corresponding WEB-browsing services component, the i.e. type of browser kernel and the difference of version, exist A variety of browser kernels for being available for calling, thus also accordingly deploy a variety of Development of Web Browser kit plug-in units.
A SDK is integrated with one SDK plug-in unit.The multiple softwares of application deployment are opened Kit plug-in unit is sent out, in the operation of application program, adding for designated software development kit plug-in unit is realized by dynamic load Carry, and then obtain integrated SDK.The SDK plug-in unit specified is the clothes with currently it is expected to call Business component is uniquely corresponding.
No longer it is only limitted to load single SDK by dynamic load application program, can be according to need Obtain any software development kit.
In step 350, serviced component is called by integrated SDK.
Wherein, it is unique corresponding between SDK and serviced component, a SDK is used to adjust With a serviced component.Therefore, by the SDK plug-in unit of dynamic load, its own integrated software development will be realized The calling of the unique corresponding serviced component of kit.
From there through the SDK plug-in unit of relative application program independence, make it that SDK is relative Application program be also it is self-existent, therefore, even if there is defect in browser kernel corresponding to SDK institute is unique, Also without the whole application program of replacing, and only need to convert SDK plug-in unit.
That is, it is no longer necessary to could be upgraded by changing whole application program, it would be preferable to support SDK Standalone upgrade, and then bring low cost, low discharge, coverage speed fast and many advantages such as have a wide range of application.
Specifically, in the related data of designated software development kit plug-in unit and code information be loaded into by application program In counterfoil, the mutual calling between application program and SDK plug-in unit lays the foundation.Software development kit tools bag Plug-in unit, which itself defines, acts on behalf of view class, acts on behalf of calling interface of the view class as different software development kit, is to apply The general-purpose interface defined between program and SDK, different software exploitation work is called so as to realize that application program possesses Has the ability of bag.
The related data for the SDK plug-in unit that configuration file is specified and code information are loaded into memory block, Obtain being loaded into the SDK plug-in unit of memory block, now, application program passes through SDK plug-in unit itself The SDK for acting on behalf of view class Access Integration of definition.
Accordingly, for the specific implementation details of step 350, can include:The SDK accessed is called, is passed through The SDK of calling calls serviced component.
By the dynamic load of SDK plug-in unit and SDK plug-in unit, application has been achieved The switching at runtime of SDK plug-in unit in program, and then cause the switching of serviced component no longer to need to re-replace application Program, for example, in existing realization, if necessary to replace browser kernel, then equivalent to re-replacing application program.
Pass through implementation process as described above so that the application program of version can use a variety of service groups on same line Part, for example, a variety of browser kernels, and then the effect data of a variety of serviced components can be contrasted, also further increase application The stability and reliability of program.
Fig. 4 is a kind of method that according to an exemplary embodiment realizes application program loading serviced component, the party Method is used for the running of application program in the terminal device of implementation environment shown in Fig. 1.As shown in figure 4, this realizes application program The method for loading serviced component, may comprise steps of.
In step 410, when specified SDK plug-in unit loads failure, default software developing instrument is loaded Bag plug-in unit, integrated SDK is obtained by the loading of default software development kit plug-in unit.
Firstly the need of explanation, application deployment default software development kit plug-in unit, default software exploitation work It can also lead to during the dynamic load for disposing the progress SDK plug-in unit that failed for application program of tool bag plug-in unit Loading default software development kit is crossed to realize required service.
That is, it will determine that whether dynamic load succeeds, if it has, then directly passing through the software development work of dynamic load Have bag plug-in unit and carry out serviced component calling, if it has, then the card cage integrated by application program itself loads acquiescence SDK plug-in unit, even and if then dynamic load failure can also realize service in application program, improve application Program reliability of operation.
Default software development kit plug-in unit, it is similar with aforementioned software development kit plug-in unit, differ only in collection Into SDK difference.Default software development kit plug-in unit, which also possesses, acts on behalf of view class, should in order to realize With program and the mutual calling of acquiescence development kit plug-in unit.
In step 430, default service component is called by integrated SDK.
Wherein, the software tool pack that default software development kit plug-in unit integrates also has the acquiescence clothes that it is uniquely called Business component, it is similar with aforementioned service component, the service in application program is realized by the calling of default service component, and then Ensure that application program there can be the service of default service modular support application program, for example, basic Webpage access ability.
It follows that in the application program of the disclosure loads the realization of serviced component, either for Dynamical Deployment SDK plug-in unit, for default software development kit plug-in unit, need not all pay close attention to various what is integrated with Kind SDK, is all that the serviced component supported according to it is i.e. adjustable come dynamic load SDK plug-in unit With desired serviced component, the switching of serviced component can be realized, and whole application program, Jin Erneng need not be re-replaced Enough support the high-efficiency dynamic renewal of SDK.
Fig. 5 is a kind of flow of method for realizing application program loading serviced component according to an exemplary embodiment Figure.This realizes that the method for application program loading serviced component is used for the terminal device 130 of implementation environment shown in Fig. 1, such as Fig. 5 institutes Show, this realizes the method for application program loading serviced component, is performed, may comprise steps of by terminal device 130.
In step 510, when application program is triggered startup, according to the serviced component dynamic of application program itself support The SDK plug-in unit of deployment services device configuration.
Wherein, application program be triggered startup when, carry out application program in SDK plug-in unit Dynamical Deployment. Signified Dynamical Deployment is realized under the cooperation of server, and then the software configured by application deployment server is opened Send out kit plug-in unit, thus by can according to operation need carry out SDK plug-in unit Dynamical Deployment, using journey The loading of serviced component can adapt to the needs in operation in sequence, improves and the adaptive of serviced component loading is carried out in application program Ying Xing.
Step 530, the serviced component that the reception server issues, the serviced component are the SDK of server configuration What plug-in unit itself was supported.
Wherein, after the Dynamical Deployment that SDK plug-in unit is completed in application program, you can opened by software Hair kit plug-in unit obtains serviced component from server, and the installation and deployment serviced components.
Specifically, the server for realizing SDK plug-in unit Dynamical Deployment in application program is the fortune of application program Server is sought, it enters Mobile state renewal as application program high in the clouds for application program;The server for issuing serviced component is having It is the other servers for being different from Operation Server when body is realized.By taking browser kernel as an example, the service of browser kernel is issued Device is then the Operation Server of the server corresponding to browser, i.e. browser, and different types of browser kernel has its institute Server corresponding to unique, SDK plug-in unit obtain browser kernel by unique corresponding server.
That is, for the operation of application program, the software development work by the configuration Dynamical Deployment of server Has bag plug-in unit, you can automatically obtain the serviced component issued, on the one hand ensure that effective control, on the other hand effectively controlling again Under improve efficiency.
Fig. 6 is the description of the details to step 510 according to an exemplary embodiment.The step 510 can include Following steps.
Step 511, application program be triggered startup when, obtain application program itself support serviced component corresponding to service Module information.
Wherein, during application program launching, the Dynamical Deployment of SDK plug-in unit will be carried out.According to application program Initialization and operation process, application program itself have supported at least one serviced component, it is necessary to obtain application program itself The situation of serviced component is supported, in order to carry out the Dynamical Deployment for the SDK plug-in unit being adapted with this situation.
Therefore, the service component information corresponding to application program itself support serviced component, service component information will be obtained In identify the serviced component of application program itself support and the information such as version number of serviced component.For example, in browser For core, signified service component information is browser kernel information, in the browser supported which identify application program itself The version number of core and browser kernel.
Step 513, service component information is reported to server.
Wherein, signified server is Operation Server.Application program after service component information is obtained, to itself Operation Server reports service component information.
Step 515, the result returned by server according to service component information, the software of download server configuration Development kit plug-in unit, the SDK plug-in unit that installation and deployment are downloaded.
Wherein, application program obtains the result that server returns, and result is used for the clothes for indicating server configuration In business component application program do not support serviced component distinguish corresponding to SDK plug-in unit, and provide software development work Has the download address of bag plug-in unit, for each SDK plug-in unit indicated, result includes flag bit With two big content of download address.
It is to increase newly or update that sign position, which is used to identify SDK plug-in unit with respect to application program,.It is newly-increased then illustrate SDK plug-in unit is the SDK plug-in unit of new type, and renewal is then to illustrate SDK plug-in unit It is that for application program, the deployment of this SDK plug-in unit is version obtained by carrying out version iteration renewal This renewal process.
Download address is then used for the download for realizing SDK plug-in unit, in order to be disposed.
Therefore, the result that application program is returned by server, you can realize the software development of server configuration The download of kit plug-in unit and installation and deployment, and then SDK in application program is realized under the control of server The Dynamical Deployment of plug-in unit, mutually fitted so that the SDK plug-in unit disposed in application program is configuration with server Match somebody with somebody, and then significantly enhance the performance of application program.
Fig. 7 is a kind of flow of method for realizing application program loading serviced component according to an exemplary embodiment Figure.This realizes the method for application program loading serviced component, before step 510, may comprise steps of.
In step 610, triggering starts application program, and whether judge that the triggering of application program starts is initial start-up, If it has, then step 630 is performed, if it has not, then performing step 510.
Wherein, in terminal device, when application program is triggered startup, the application program launching that is currently carried out whether be Initial start-up, if it is, need to dispose default software development kit plug-in unit first, it is basic in order to support applications program Service.
In act 630, default software development kit plug-in unit is disposed.
Wherein, can not whether be application program initial start-up, be required for carry out SDK plug-in unit dynamic Deployment, the serviced component that can be supported with causing application program are consistent with the serviced component of server configuration, and then In application program operation, even if defect occurs in a serviced component, it can also be configured by server and realize all application programs The switching of middle serviced component, and then the application program for run extensively possesses very high stability.
And in this manner, due to and do not need user confirm, it is not required that the cooperation of installation operation, i.e., backstage silence In installation i.e.;With respect to the mode that whole application program is re-replaced in existing scheme, corresponding installation kit is also smaller, for example, If application program is 10M, the SDK plug-in unit of renewal is 200K, then according to currently existing scheme, corresponding peace Dress Bao Ze has 10.2M, and installation kit used in the disclosure then only has 200K, considerably reduces the flow of consuming, and cost obtains Reduced to maximum, coverage speed is fast.
Fig. 8 is a kind of method for realizing application program loading serviced component according to an exemplary embodiment.The reality The method of existing application program loading serviced component may comprise steps of.
In step 720, when application program is triggered startup, according to the serviced component dynamic of application program itself support The SDK plug-in unit of deployment services device configuration, obtain the serviced component that SDK plug-in unit is supported.
Wherein, in terminal device, application program is triggered when starting the serviced component supported according to itself to enter action State is disposed, with the SDK for enabling the SDK plug-in unit disposed in application program to be configured with server Bag plug-in unit is adapted.
The SDK that the SDK plug-in unit of Dynamical Deployment is integrated by itself is serviced automatically The download of component, to automatically obtain the serviced component of support after the Dynamical Deployment of SDK plug-in unit is completed.
In step 730, the service order for the generation that is triggered in application program is obtained.
Wherein, the Dynamical Deployment of SDK plug-in unit is completed, is obtaining the clothes being adapted with the configuration of server It is engaged in after component, you can carry out the service in application program.
Service order is used to trigger the calling for carrying out that respective service instructs in application program, to initiate the clothes in application program Business.
In step 750, the SDK plug-in unit specified according to service order dynamic load passes through software development The dynamic load of kit plug-in unit obtains integrated SDK.
Wherein, the SDK plug-in unit that dynamic load is consistent with service order.Service is initiated in the application During, by carrying out the dynamic load of SDK plug-in unit, to use SDK the most applicable Plug-in unit, obtain the SDK integrated in this SDK plug-in unit.
In step 770, serviced component is called by integrated SDK.
Pass through carried out serviced component to call, the service being just achieved in application program.As previously described, service The difference of component, different services, such as WEB-browsing services, payment services etc. just can be provided for application program.
Fig. 9 is a kind of method for realizing application program loading serviced component according to an exemplary embodiment.The reality The method of existing application program loading serviced component is applied to the server 110 of implementation environment shown in Fig. 1, as shown in figure 9, the realization The method that application program loads serviced component, can be performed by server 110, may comprise steps of.
In step 810, server receives application program and is triggered the service component information that reports when starting, serviced component Information corresponds to the serviced component that application program itself is supported.
Wherein, any application program be triggered startup when, own services module information will be carried out and reported, to pass through itself Reporting for service component information reports to the serviced component that server itself is supported, and then facilitates server to carry out application program Accurately Dynamical Deployment.
In step 830, matching treatment generation result is carried out according to service component information, at application program return Manage result.
Wherein, the matching treatment of service component information refers to the serviced component and application program itself to server configuration The serviced component of support is matched, and to obtain miss serviced component, generates corresponding result, to reporting service group The application program of part accordingly returns to this result.
In step 850, the SDK plug-in unit into application program Dynamical Deployment result and software are opened Send out the serviced component that kit plug-in unit is supported.
Server is by the result of generation, the software development work identified into application program Dynamical Deployment result Have bag plug-in unit, with the Dynamical Deployment of SDK plug-in unit, also deploy this SDK in the application The serviced component that bag plug-in unit is supported so that the serviced component that application program is currently supported is consistent with the configuration of server.
By server implementation process as described above, the operation to application program is controlled so that application program energy Multiple serviced components are enough supported, in the application program operation carried out, it is no longer necessary to by the application program for issuing redaction To eliminate the defects of serviced component occurs, the frequency of application program iteration renewal is reduced, therefore can be reduced to greatest extent Cost.
Figure 10 is the description of the details to step 830 according to an exemplary embodiment.The step 830, Ke Yiyou Server 110 performs, and may comprise steps of.
In step 831, server matches service component information with the serviced component configuration set, obtains setting Miss serviced component in serviced component configuration.
Wherein, as previously described, service component information identifies the serviced component of application program itself support.In server The serviced component configuration set then identifies each serviced component that server is configured as application.
Therefore, server carries out service component information and set after the service component information that application program reports is obtained Matching treatment between fixed serviced component configuration, obtain serviced component miss in the serviced component configuration of setting.
By taking browser kernel as an example, server is configured with the priority list of browser kernel, in this priority list, Each browser kernel according to the sequence identification of priority from high to low, i.e. browser kernel B, browser kernel C and browser Core A.
In service component information, i.e. browser kernel information, application program itself has been reported to support browser kernel C and clear Look at device core A.
Then by matching, the server component that sets browser kernel miss in configuring as browser kernel B, Now, the SDK plug-in unit for supporting browser kernel B will be issued according to miss browser kernel B.
In step 833, result is generated according to miss serviced component, result is returned to application program.
Wherein, obtain supporting the SDK plug-in unit of the serviced component according to miss serviced component, generate The result being consistent with this SDK plug-in unit.
Specifically, generate the flag bit and download address of this SDK plug-in unit, the flag bit and download address Just result is formed.
By this process, interacting between server and application program is realized, is the reality of Dynamical Deployment in application program Effective information is now provided, to ensure effective control of the server to application program.
Figure 11 is the description of the details to step 833 according to an exemplary embodiment.The step 833, Ke Yiyou Server 110 performs, and may comprise steps of.
In step 8331, the SDK plug-in unit for supporting miss serviced component is obtained, supports miss clothes The SDK plug-in unit of business component is SDK plug-in unit of the server to application program Dynamical Deployment.
In step 8333, the flag bit and download address of SDK plug-in unit are generated, passes through software development work Have the flag bit and download address generation result of bag plug-in unit.
Wherein, to the SDK plug-in unit of the miss serviced component of support of acquisition, all generation is corresponding respectively Flag bit and download address, the corresponding flag bit of all SDK plug-in units and download address form result.
In addition, in the result of generation, the SDK plug-in unit institute for hitting serviced component can also be attached Related information.
In step 8335, result is returned to application program.
The embodiment provided by the above-mentioned disclosure, each provide the application journey for realizing application program loading serviced component Sequence side and the solution of server side, and then can be applied to provide the application scenarios of service by serviced component, The application scenarios of each serviced component can be applied to contrast.
Various general serviced components can be deployed in other application program by above-mentioned implementation process, for example, phase In third party application for serviced component.Such as browser kernel, signified application program be relative to Third party application for browser kernel and browser.
It is following so that terminal device is smart mobile phone as an example, with reference to concrete application scene, describe this and realize that application program loads The method of serviced component.For example, Figure 12 is the schematic diagram of whole implementation process.
Firstly the need of briefly, known clearly by foregoing description, this realizes that application program loads service group The method of part includes two large divisions, and one is the Dynamical Deployment of SDK plug-in unit, and two be to use SDK The calling serviced component of plug-in unit.
Referring to Figure 12, application program 910 realizes the dynamic of SDK plug-in unit more by application program high in the clouds 920 Newly, with the multiple SDK plug-in units 930 of Dynamical Deployment, i.e. SDK plug-in unit bag 1, SDK plug-in unit Bag 2 ... ..., and SDK plug-in unit N.(Simple identification is plug-in unit to SDK plug-in unit in fig. 13)
Card cage 911 is integrated with application program 910.Integrated software developing instrument in the SDK plug-in unit of deployment Bag 931, the browser kernel 940 of support can be called by the integrated side of SDK 931.(Integrated software is opened Sending out kit 931, simple identification is SDK in fig. 13)
Due to the multiple SDK plug-in units 930 of Dynamical Deployment in application program 910 so that application program possesses energy Enough call a variety of browser kernels 940, i.e., browser kernel 1, browser kernel 2 ... and browser kernel N ability, enter And the selection and switching of browser kernel 940 can be carried out, i.e., realize that software is opened by card cage 911 and configuration file 950 Send out the dynamic load of kit plug-in unit 930, and then call selected browser kernel 940, wherein, the browser kernel be by What corresponding browser high in the clouds 960 issued.
Specifically, Figure 13 is the Dynamical Deployment flow according to an exemplary embodiment.The Dynamical Deployment flow is by intelligence Can mobile phone and service device cooperation execution.Figure 13 correspond to Fig. 5, Fig. 6, Fig. 7, Fig. 8, Fig. 9, Figure 10 and Figure 11 embodiment a certain or Several steps.
Application program upon actuation, can dispose default browser SDK plug-in unit, it is ensured that have browser for the first time Kernel can support the basic Webpage access ability of application program, that is, perform step 1010 to step 1030.
The locally-supported browser kernel list of application program is reported to server, i.e., service group existing for report list form Part information server matches the locally-supported browser kernel list of the application program with the configuration set, then by after matching Result returns to application program, that is, performs step 1040 and step 1050.
Application program obtains the result that server issues, and determines whether newly-increased or updates, if so, then carrying out soft The download of part development kit plug-in unit, and installation and deployment come into force, that is, perform step 1060 to step 1080.
Herein it should be strongly noted that for newly-increased SDK plug-in unit, then installation and deployment are directly carried out; For the SDK plug-in unit of the SDK plug-in unit of renewal, then covering legacy version.
Figure 14 is the calling serviced component stream using SDK plug-in unit according to an exemplary embodiment Journey.The calling serviced component flow is performed by the application program run in smart mobile phone.Figure 14 corresponds to Fig. 3, Fig. 4 embodiment A certain or several steps.
When application program loads a network address, the first configuration file of meeting, to know the suitable SDK of configuration Plug-in unit, that is, perform step 1110 and step 1120.After reading configuration file, selection loads the SDK specified Plug-in unit, that is, perform step 1130.
If SDK plug-in unit loads successfully, use what is integrated in the designated software development kit plug-in unit SDK calls browser kernel, to access Webpage, otherwise using default software development kit plug-in unit, i.e., Step 1140 is performed to step 1180.
Need what is further illustrated, for what is be related in the calling serviced component flow using SDK plug-in unit The acquisition of dynamic load, i.e. SDK is realized using Dynamic loading technique, specific as follows:
Figure 15 is that the dynamic load according to an exemplary embodiment is realized.When starting application program, system will distribute one Block internal memory, the related data of application program and host's code information 1231 are loaded into memory block 1200, i.e. step 1210 and step Rapid 1230.
Dynamic load is carried out when needing to use SDK pin function, by the dependency number of SDK It is loaded into according to SDK plug-in codes information 1251 in memory block 1200, i.e. step 1250.
Because host's code information 1231 and SDK plug-in codes information 1251 are all in internal memory, it is possible to achieve mutually Calling, i.e. step 1270.
In the mutual calling that SDK plug-in codes information 1251 and host's code information 1231 are realized, especially for should The calling of the SDK plug-in unit carried out with program, it is by defining unified agency's social activity class application program Possesses the ability for calling different software development kit plug-in unit.
Figure 16 is the realization of the application call SDK plug-in unit according to an exemplary embodiment.It is right In SDK plug-in unit 930, define one it is unified act on behalf of view class 933, application program 910 is by acting on behalf of view class 933 access software development kits 931.
So that application program 910 need not pay close attention to the specific implementation of SDK 931, that is to say, that can To be adapted to each SDK 931, it is only necessary to generate a new plug-in unit.
Has this, Figure 17 is the realization of the SDK plug-in unit according to an exemplary embodiment.I.e. fixed Justice acts on behalf of the integrated software development kit 931 in engineering of acting on behalf of of view class 933, and packing and issuing can obtain it is required SDK plug-in unit 930.
It is further preferred that for ease of distinguishing different SDK plug-in units, by the software development work of generation Has the subsidiary following information of bag plug-in unit:
(1)Bag name, it is unique expression symbol, for distinguishing different software development kit plug-in unit;
(2)Version number, it is the version information of same SDK plug-in unit, so that renewal upgrading uses.
By the SDK plug-in unit and Dynamical Deployment that are as above related to, switch service group to high in the clouds high-efficiency dynamic Part, even if will make it that arbitrarily renewal serviced component will not also interfere to user in application program, the renewal of serviced component is only Need to update corresponding software development kit plug-in unit, and silent installation, it is more efficient, coverage rate is improved, the interference to user Degree is reduced to 0.
Following is embodiment of the present disclosure, can be used for performing the above-mentioned server 110 of the disclosure and terminal device 130 is held The capable embodiment of the method for realizing application program loading serviced component.The details not disclosed for embodiment of the present disclosure, please The embodiment of the method for application program loading serviced component is realized with reference to the disclosure.
Figure 18 is a kind of frame of device for realizing application program loading serviced component according to an exemplary embodiment Figure.This realizes that the device of application program loading serviced component can be used in the terminal device 130 of implementation environment shown in Fig. 1, holds The Overall Steps of the method for realizing application program loading serviced component shown in row Fig. 3.
As shown in figure 18, this realizes that the device of application program loading serviced component includes but is not limited to:Instruction acquisition module 1310th, read module 1330, plug-in unit load-on module 1350 and calling module 1370 are configured.
Instruction acquisition module 1310, for obtaining the service order for the generation that is triggered in application program.
Read module 1330 is configured, the card cage for being integrated according to instruction triggers application program itself reads configuration text Part.
Plug-in unit load-on module 1350, for the SDK plug-in unit of loading configuration file instruction, obtain software and open Send out the SDK of kit plug-in unit.
Calling module 1370, for calling serviced component by integrated SDK.
The function of modules and the implementation process of effect specifically refer to above-mentioned application program loading service in said apparatus The implementation process of step is corresponded in the method for component, will not be repeated here.
Figure 19 is a kind of device for realizing application program loading serviced component according to another exemplary embodiment Block diagram.This realizes that the device of application program loading serviced component includes but is not limited to:Give tacit consent to plug-in unit load-on module 1410 and acquiescence Component call module 1430.
Plug-in unit load-on module 1410 is given tacit consent to, for when specified SDK plug-in unit loads failure, loading to be silent Recognize SDK plug-in unit, integrated SDK is obtained by the loading of default software development kit plug-in unit Bag.
Component calling module 1430 is given tacit consent to, for calling default service component by integrated SDK.
Figure 20 is a kind of device for realizing application program loading serviced component according to another exemplary embodiment Block diagram.This realizes that the device of application program loading serviced component includes but is not limited to:Dynamical Deployment module 1510 and component receive Module 1530.
Dynamical Deployment module 1510, for the clothes when application program is triggered startup, supported according to application program itself The SDK plug-in unit of business component Dynamical Deployment server configuration.
Component receiving module 1530, the serviced component issued for the reception server, serviced component are server configuration What SDK plug-in unit itself was supported.
Optionally, Dynamical Deployment module 1510 includes but is not limited to referring to Figure 21:Module information acquiring unit 1511, letter Cease reporting unit 1513 and download unit 1515.
Module information acquiring unit 1511, for application program be triggered startup when, obtain application program itself support clothes The service component information being engaged in corresponding to component.
Information reporting unit 1513, for reporting service component information to server.
Download unit 1515, for the result returned by server according to service component information, download server The SDK plug-in unit of configuration, the SDK plug-in unit that installation and deployment are downloaded.
Optionally, Dynamical Deployment module 1510 also includes starting judging unit and acquiescence plug-in unit deployment unit.
Start judging unit, start application program for triggering, and whether judge that the triggering of application program starts is first Start, if it has, then notice acquiescence plug-in unit deployment unit.
Acquiescence plug-in unit deployment unit is used to dispose default software development kit plug-in unit.
Figure 22 is a kind of device for realizing application program loading serviced component according to another exemplary embodiment Block diagram.This realizes that the device of application program loading serviced component includes but is not limited to:Deployment module 1610, service initiation module 1630th, load-on module 1650 and component call module 1670 are specified.
Deployment module 1610, for the service group when application program is triggered startup, supported according to application program itself The SDK plug-in unit of part Dynamical Deployment server configuration, obtain the service group that SDK plug-in unit is supported Part.
Initiation module 1630 is serviced, for obtaining the service order for the generation that is triggered in application program.
Load-on module 1650 is specified, for the SDK plug-in unit specified according to service order dynamic load, is led to The dynamic load for crossing SDK plug-in unit obtains integrated SDK.
Component call module 1670, for calling serviced component by integrated SDK.
Figure 23 is a kind of device for realizing application program loading serviced component according to another exemplary embodiment Block diagram.This realizes that the device of application program loading serviced component includes but is not limited to:Information receiving module 1710, matching treatment mould Block 1730 and server configuration deployment module 1750.
Information receiving module 1710, for receiving the service component information reported when application program is triggered and started, service Module information corresponds to the serviced component that application program itself is supported.
Matching treatment module 1730, for carrying out matching treatment generation result according to service component information, to application Program returns to result.
Server configures deployment module 1750, for the SDK into application program Dynamical Deployment result The serviced component that bag plug-in unit and SDK plug-in unit are supported.
Optionally, matching treatment module 1730 is as shown in figure 24, includes but is not limited to:Matching unit 1731 and result generation Unit 1733.
Matching unit 1731, for service component information to be matched with the serviced component configuration set, obtain setting Miss serviced component in serviced component configuration.
As a result generation unit 1733, for generating result according to miss serviced component, returned to application program Result.
Optionally, as a result generation unit 1733 is as shown in figure 25, includes but is not limited to:Plug-in unit obtains subelement 17331, interior Hold generation subelement 17333 and result returns to subelement 17335.
Plug-in unit obtains subelement 17331, and the SDK plug-in unit of miss serviced component, branch are supported for obtaining The SDK plug-in unit for holding miss serviced component is SDK of the server to application program Dynamical Deployment Bag plug-in unit.
Content generates subelement 17333, for generating the flag bit and download address of SDK plug-in unit, passes through Flag bit and download address the generation result of SDK plug-in unit.
As a result subelement 17335 is returned to, for returning to result to application program.
Optionally, the disclosure also provides a kind of device for realizing application program loading serviced component, and this realizes application program The device of loading serviced component can be used in the terminal device 130 of implementation environment shown in Fig. 1, and described device includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as performing:
Obtain the service order for the generation that is triggered in application program;
The SDK plug-in unit specified according to the service order dynamic load, is inserted by the SDK The dynamic load of part obtains integrated SDK;
Serviced component is called by the integrated SDK.
The concrete mode of the computing device operation of device in the embodiment realizes that application program adds in relevant this Carry in the embodiment of the method for serviced component and perform detailed description, explanation will be not set forth in detail herein.
Optionally, the disclosure also provides a kind of device for realizing application program loading serviced component, and this realizes application program The device of loading serviced component can be used in the terminal device 130 of implementation environment shown in Fig. 1, and described device includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as performing:
When application program is triggered startup, matched somebody with somebody according to the serviced component Dynamical Deployment server that the application program itself is supported The SDK plug-in unit put, obtain the serviced component that the SDK plug-in unit is supported;
Obtain the service order for the generation that is triggered in application program;
The SDK plug-in unit specified according to the service order dynamic load, is inserted by the SDK The dynamic load of part obtains integrated SDK;
Serviced component is called by the integrated SDK.
In the exemplary embodiment, a kind of storage medium is additionally provided, the storage medium is computer-readable recording medium, Such as can be the provisional and non-transitorycomputer readable storage medium for including instruction.The storage, which is situated between, to be referred to for example including instruction Memory 204, above-mentioned instruction can be performed by the processor 218 of device 200 with complete it is above-mentioned realize application program loading service The method of component.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and changes can be being performed without departing from the scope.The scope of the present invention is only limited by appended claim.

Claims (20)

1. a kind of method for realizing application program loading serviced component, including:
Obtain the service order for the generation that is triggered in application program;
The integrated card cage of the application program itself is triggered according to the service order and reads configuration file;
The SDK plug-in unit that the configuration file is specified is loaded, obtains the SDK plug-in unit SDK;
Serviced component is called by the integrated SDK.
2. according to the method for claim 1, it is characterised in that methods described also includes:
When the SDK plug-in unit specified loads failure, default software development kit plug-in unit is loaded, is passed through The loading of the default software development kit plug-in unit obtains integrated SDK;
Default service component is called by the integrated SDK.
3. according to the method for claim 1, it is characterised in that methods described also includes:
When the application program is triggered startup, according to the serviced component Dynamical Deployment service of the application program itself support The SDK plug-in unit of device configuration;
The serviced component that the reception server issues, the serviced component are the SDK plug-in unit of server configuration What itself was supported.
4. according to the method for claim 3, it is characterised in that it is described when the application program is triggered startup, according to The step of SDK plug-in unit for the serviced component Dynamical Deployment server configuration that the application program itself is supported, wraps Include:
The application program be triggered startup when, obtain the application program itself support serviced component corresponding to serviced component Information;
The service component information is reported to server;
The result returned by server according to the service component information, download the software development of the server configuration Kit plug-in unit, the SDK plug-in unit downloaded described in installation and deployment.
5. according to the method for claim 3, it is characterised in that it is described when the application program is triggered startup, according to The application program itself support serviced component Dynamical Deployment server configuration SDK plug-in unit the step of it Before, methods described also includes:
Triggering starts application program, and whether judge that the triggering of the application program starts is initial start-up, if it has, then
Dispose default software development kit plug-in unit.
6. a kind of method for realizing application program loading serviced component, including:
When application program is triggered startup, matched somebody with somebody according to the serviced component Dynamical Deployment server that the application program itself is supported The SDK plug-in unit put, obtain the serviced component that the SDK plug-in unit is supported;
Obtain the service order for the generation that is triggered in application program;
The SDK plug-in unit specified according to the service order dynamic load, is inserted by the SDK The dynamic load of part obtains integrated SDK;
Serviced component is called by the integrated SDK.
7. a kind of method for realizing application program loading serviced component, including:
Server receives application program and is triggered the service component information that reports when starting, and the service component information corresponds to institute State the serviced component of application program itself support;
Matching treatment generation result is carried out according to the service component information, result is returned to the application program;
SDK plug-in unit and the software development work into result described in the application program Dynamical Deployment Has the serviced component that bag plug-in unit is supported.
8. according to the method for claim 7, it is characterised in that described that journey is applied to described according to the service component information The step of sequence return result, includes:
The server matches service component information with the serviced component configuration set, obtains the serviced component configuration of setting In miss serviced component;
Result is generated according to the miss serviced component, the result is returned to the application program.
9. according to the method for claim 8, it is characterised in that described to be handled according to the miss serviced component generation As a result, the step of returning to the result includes:
The SDK plug-in unit for supporting miss serviced component is obtained, the software for supporting miss serviced component is opened It is SDK plug-in unit of the server to the application program Dynamical Deployment to send out kit plug-in unit;
The flag bit and download address of the SDK plug-in unit are generated, passes through the SDK plug-in unit Flag bit and download address generation result;
The result is returned to the application program.
10. a kind of device for realizing application program loading serviced component, it is characterised in that described device includes:
Instruction acquisition module, for obtaining the service order for the generation that is triggered in application program;
Read module is configured, is matched somebody with somebody for triggering the integrated card cage of the application program itself according to the service order and reading Put file;
Plug-in unit load-on module, the SDK plug-in unit specified for loading the configuration file, obtains the software and opens Send out the SDK of kit plug-in unit;
Calling module, for calling serviced component by the integrated SDK.
11. device according to claim 10, it is characterised in that described device also includes:
Plug-in unit load-on module is given tacit consent to, for when the SDK plug-in unit specified loads failure, loading acquiescence to be soft Part development kit plug-in unit, integrated SDK is obtained by the loading of the default software development kit plug-in unit Bag;
Component calling module is given tacit consent to, for calling default service component by the integrated SDK.
12. device according to claim 10, it is characterised in that described device also includes:
Dynamical Deployment module, for the clothes when the application program is triggered startup, supported according to the application program itself The SDK plug-in unit of business component Dynamical Deployment server configuration;
Component receiving module, the serviced component issued for the reception server, the serviced component are server configuration What SDK plug-in unit itself was supported.
13. device according to claim 12, it is characterised in that the Dynamical Deployment module includes:
Module information acquiring unit, for the application program be triggered startup when, obtain the application program itself support clothes The service component information being engaged in corresponding to component;
Information reporting unit, for reporting the service component information to server;
Download unit, for the result returned by server according to the service component information, download the server The SDK plug-in unit of configuration, the SDK plug-in unit downloaded described in installation and deployment.
14. device according to claim 12, it is characterised in that the Dynamical Deployment module includes:
Start judging unit, start application program for triggering, and whether judge that the triggering of the application program starts is first Start, if it has, then notice acquiescence plug-in unit deployment unit;
The acquiescence plug-in unit deployment unit is used to dispose default software development kit plug-in unit.
15. a kind of device for realizing application program loading serviced component, it is characterised in that described device includes:
Deployment module, for when application program is triggered startup, being moved according to the serviced component that the application program itself is supported The SDK plug-in unit of state deployment services device configuration, obtain the service group that the SDK plug-in unit is supported Part;
Initiation module is serviced, for obtaining the service order for the generation that is triggered in application program;
Load-on module is specified, for the SDK plug-in unit specified according to the service order dynamic load, passes through institute The dynamic load for stating SDK plug-in unit obtains integrated SDK;
Component call module, for calling serviced component by the integrated SDK.
16. a kind of device for realizing application program loading serviced component, it is characterised in that described device includes:
Information receiving module, for receiving the service component information reported when application program is triggered and started, the serviced component Information corresponds to the serviced component that application program itself is supported;
Matching treatment module, for carrying out matching treatment generation result according to the service component information, to the application Program returns to result;
Server configures deployment module, for the SDK into result described in the application program Dynamical Deployment The serviced component that bag plug-in unit and the SDK plug-in unit are supported.
17. device according to claim 16, it is characterised in that the matching treatment module includes:
Matching unit, for service component information to be matched with the serviced component configuration set, obtain the serviced component of setting Miss serviced component in configuration;
As a result generation unit, for generating result according to the miss serviced component, returned to the application program The result.
18. device according to claim 17, it is characterised in that the result generation unit includes:
Plug-in unit obtains subelement, the SDK plug-in unit of miss serviced component is supported for obtaining, the support is not The SDK plug-in unit for hitting serviced component is SDK of the server to the application program Dynamical Deployment Bag plug-in unit;
Content generates subelement, for generating the flag bit and download address of the SDK plug-in unit, by described Flag bit and download address the generation result of SDK plug-in unit;
As a result subelement is returned to, for returning to the result to the application program.
19. a kind of device for realizing application program loading serviced component, it is characterised in that described device includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured:
Obtain the service order for the generation that is triggered in application program;
The integrated card cage of the application program itself is triggered according to the service order and reads configuration file;
The SDK plug-in unit that the configuration file is specified is loaded, obtains the SDK plug-in unit SDK;
Serviced component is called by the integrated SDK.
20. a kind of device for realizing application program loading serviced component, it is characterised in that described device includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured:
When application program is triggered startup, matched somebody with somebody according to the serviced component Dynamical Deployment server that the application program itself is supported The SDK plug-in unit put, obtain the serviced component that the SDK plug-in unit is supported;
Obtain the service order for the generation that is triggered in application program;
The SDK plug-in unit specified according to the service order dynamic load, is inserted by the SDK The dynamic load of part obtains integrated SDK;
Serviced component is called by the integrated SDK.
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 true CN107526605A (en) 2017-12-29
CN107526605B 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)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108733395A (en) * 2018-05-14 2018-11-02 广州虎牙信息科技有限公司 software application service updating method, device and computer equipment
CN109408256A (en) * 2018-10-17 2019-03-01 麒麟合盛网络技术股份有限公司 Using call method and device
CN109614107A (en) * 2018-11-01 2019-04-12 同盾控股有限公司 A kind of integrated approach and device of Software Development Kit
CN109819042A (en) * 2019-02-02 2019-05-28 北京字节跳动网络技术有限公司 For providing the method and apparatus of Software Development Kit
CN110489149A (en) * 2019-08-23 2019-11-22 珠海格力电器股份有限公司 The control method and system of smart machine
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
CN113448558A (en) * 2021-07-07 2021-09-28 医声医事(北京)科技有限公司 Method for component generation
WO2022068475A1 (en) * 2020-09-30 2022-04-07 华为技术有限公司 Plug-in running system, plug-in running method, and electronic device
CN114756306A (en) * 2022-03-30 2022-07-15 Oppo广东移动通信有限公司 Service calling method, device, equipment and storage medium
CN115080165A (en) * 2022-06-28 2022-09-20 湖南快乐阳光互动娱乐传媒有限公司 Applet processing method, device, storage medium and mobile terminal

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

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108733395A (en) * 2018-05-14 2018-11-02 广州虎牙信息科技有限公司 software application service updating method, device and computer equipment
CN109408256A (en) * 2018-10-17 2019-03-01 麒麟合盛网络技术股份有限公司 Using call method and device
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
CN109614107A (en) * 2018-11-01 2019-04-12 同盾控股有限公司 A kind of integrated approach and device of Software Development Kit
CN109819042A (en) * 2019-02-02 2019-05-28 北京字节跳动网络技术有限公司 For providing the method and apparatus of Software Development Kit
CN110489149A (en) * 2019-08-23 2019-11-22 珠海格力电器股份有限公司 The control method and system of smart machine
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
WO2022068475A1 (en) * 2020-09-30 2022-04-07 华为技术有限公司 Plug-in running system, plug-in running method, and electronic device
CN113448558A (en) * 2021-07-07 2021-09-28 医声医事(北京)科技有限公司 Method for component generation
CN114756306A (en) * 2022-03-30 2022-07-15 Oppo广东移动通信有限公司 Service calling method, device, equipment and storage medium
CN115080165A (en) * 2022-06-28 2022-09-20 湖南快乐阳光互动娱乐传媒有限公司 Applet processing method, device, storage medium and mobile terminal

Also Published As

Publication number Publication date
CN107526605B (en) 2020-03-06

Similar Documents

Publication Publication Date Title
CN107526605A (en) The method and apparatus for realizing application program loading serviced component
CN105677335B (en) Improve the method and device that mobile terminal first powers on speed
KR100918162B1 (en) Field Diagnosis System and Method of Wireless Communication System System Software
US20100093396A1 (en) Systems and methods for storing or performing functions within removable memory, such as a subscriber identity module of a mobile device
CN111316230B (en) Method and equipment for generating patch package
CN104020990B (en) Date selects control display methods and device
CN104699515B (en) A kind of upgrade method and intelligent terminal based on Android operation system
CN106101169A (en) A kind of terminal and data reporting method
CN105224401A (en) Scheduled task control method and device
CN106201610A (en) Web application accesses the method and device of the primary function of terminal
CN101986740A (en) JAVA card
CN104636170A (en) Application acquiring method and device and electronic device
CN107734495B (en) Information processing method, device, storage medium and terminal
CN109002314A (en) Oftware updating method, device, electronic equipment and storage medium
CN108112010A (en) Access method, apparatus, terminal and the computer readable storage medium of network
WO2015106529A1 (en) Resource management method and device for terminal system
CN101895883A (en) Smart card supporting authentication arithmetic update and method for updating authentication arithmetic
CN110489679B (en) Browser kernel processing method and device and storage medium
CN107957887A (en) A kind of component loading method of equipment, device and Internet of things system
CN106528113A (en) File compiling method and apparatus
CN108073610A (en) Realize the method and device of Webpage loading
CN104268162A (en) Data storage method and device
CN110716914A (en) Database configuration method, system, computer readable storage medium and terminal equipment
CN104866349A (en) Application updating method and device
CN104866340A (en) Method and apparatus for updating terminal device software

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