CN110221840A - The function realizing method and device of application program, equipment and storage medium - Google Patents

The function realizing method and device of application program, equipment and storage medium Download PDF

Info

Publication number
CN110221840A
CN110221840A CN201910487281.0A CN201910487281A CN110221840A CN 110221840 A CN110221840 A CN 110221840A CN 201910487281 A CN201910487281 A CN 201910487281A CN 110221840 A CN110221840 A CN 110221840A
Authority
CN
China
Prior art keywords
program
function
interface
calling
client
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
CN201910487281.0A
Other languages
Chinese (zh)
Other versions
CN110221840B (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910487281.0A priority Critical patent/CN110221840B/en
Publication of CN110221840A publication Critical patent/CN110221840A/en
Application granted granted Critical
Publication of CN110221840B publication Critical patent/CN110221840B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of function realizing method of application program and devices, equipment and storage medium.The described method includes: interface routine receive capabilities call instruction of the compiling into client-side program, funcall instruction is to generate when the main program in client-side program generates the calling demand to the function program in basic framework program, includes at least the Function Identification to match with the function program of required calling in funcall instruction;Interface routine is according to Function Identification, based on the local corresponding function program of interface class data call, to execute corresponding function and the function implementing result of return is fed back to the main program in client-side program.The technical solution of the embodiment of the present invention, which is realized, can reduce the human and material resources cost safeguarded to business procedure with the upgrading of the function program of required calling function, the latest edition function program of calling function needed for calling by interface routine.

Description

The function realizing method and device of application program, equipment and storage medium
Technical field
The present embodiments relate to a kind of function of the realization technology of function of application more particularly to application program realities It is existing.
Background technique
The fast lifting of quickly universal and mobile network's speed, resource etc. of intelligent terminal, in such a shifting Under the overall situation of dynamic intelligent interconnection, the application software Quick thread of many different function demands is inspired and has been made by being widely popularized With.As a result, basic function frame used in applied software development, can be related to the software development of 10+ or even 100+ simultaneously The reference of user accesses.
When basic function frame is realized, basic framework program is generally provided, and third party is allowed to be based on basic framework program Various businesses program is developed, for example, the plug-in unit of SDK (Software Development Kit, Software Development Kit) form Program.These business procedure can use the function program of basic framework program offer to realize, function program generally can be real Existing basis, general function, such as download function, forwarding capability etc..The process that these business procedure are installed in application program In, the program bag of business procedure and the program bag of function program are stored in the same Android with application program with interrelational form It in Archive packet, and is compiled, forms the client-side program of business procedure, so that application program is when user terminal is run It is able to use the client-side program, realizes corresponding business.
In the prior art, when basic framework program itself changes, such as function provided by basic framework program When program changes, the function program being compiled into application program is changed then being typically necessary, meanwhile, business journey The calling interface of ordered pair function program is also possible to change.Therefore, in function program or the calling interface of business procedure When generating change, it is necessary to application program is recompilated, by the new Android including function program and business procedure Archive packet, is compiled into the application program of access, so that business use just can be used in application program.
In the implementation of the present invention, the discovery prior art has following defects that basic framework program itself to inventor It changes, can be related to synchronizing the calling interface of multiple business procedure update, so as to basic framework program and industry The human and material resources cost that business program is safeguarded is all very high.
Summary of the invention
The embodiment of the invention provides a kind of realizations of the function of application program, are safeguarded with realizing to reduce to business procedure Human and material resources cost.
In a first aspect, the embodiment of the invention provides a kind of function realizing method of application program, in the application program Including at least one client-side program, which comprises
Compile the interface routine into the client-side program, receive capabilities call instruction, wherein the funcall refers to It enables when generating the calling demand to the function program in basic framework program for the main program in the client-side program and generates , wherein the Function Identification to match with the function program of required calling is included at least in the funcall instruction;
The interface routine is according to the Function Identification, based on the local corresponding function program of interface class data call, To execute corresponding function, and the function implementing result of return is fed back to the main program in the client-side program.
Second aspect, the embodiment of the invention provides a kind of function realization device of application program, in the application program Including at least one client-side program, which comprises
Funcall command reception module, for compiling the interface routine into the client-side program, receive capabilities tune With instruction, wherein the funcall instruction is that the main program in the client-side program is generated in basic framework program Generated when the calling demand of function program, wherein included at least in funcall instruction with described in required calling The Function Identification that function program matches;
Function program calling module, for the interface routine according to the Function Identification, based on local interface class number According to corresponding function program is called, to execute corresponding function, and the function implementing result of return is fed back into the client Main program in program.
The third aspect, the embodiment of the invention provides a kind of equipment, the equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the function realizing method of the application program as described in any embodiment of that present invention.
Fourth aspect, the embodiment of the invention provides a kind of storage medium comprising computer executable instructions, the meters Calculation machine executable instruction as computer processor when being executed for executing the application program as described in any embodiment of that present invention Function realizing method.
The embodiment of the invention provides a kind of function realizing method of application program and devices, equipment and storage medium, lead to The function of crossing only have and be instructed according to funcall, and be called based on local interface class data to required function is connect Mouth program is compiled into client-side program, and no longer compiles the program code of required calling function into client-side program, is solved When having determined that basic framework program itself changes in the prior art, the calling interface to multiple business procedure is needed to synchronize It updates, leads to all very high technological deficiency of the human and material resources cost safeguarded to business procedure, realizing can be with required The upgrading of the function program of calling function, the latest edition function program of calling function needed for being called by interface routine reduce Human and material resources cost that business procedure is safeguarded.
Detailed description of the invention
Fig. 1 a is the flow chart of the function realizing method for the application program that the embodiment of the present invention one provides;
Fig. 1 b is client-side program, basic framework program and the offer basic framework program that the embodiment of the present invention one provides Basic framework, the relation schematic diagram between three;
Fig. 2 is the flow chart of the function realizing method of application program provided by Embodiment 2 of the present invention;
Fig. 3 is the flow chart of the function realizing method for the application program that the embodiment of the present invention three provides;
Fig. 4 is the structure chart of the function realization device for the application program that the embodiment of the present invention four provides;
Fig. 5 is a kind of structure chart for equipment that the embodiment of the present invention five provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 a is a kind of flow chart of the function realizing method for application program that the embodiment of the present invention one provides, this applies journey It include at least one client-side program in sequence, the present embodiment is applicable to application program by calling external function program, with reality The case where itself existing function, this method can be executed by the function realization device of application program, which can pass through software And/or hardware realization, the device can be integrated in the equipment such as server.As shown in Figure 1, this method specifically comprises the following steps:
The interface routine of S110, compiling into client-side program, receive capabilities call instruction, wherein funcall instruction It is generated when generating the calling demand to the function program in basic framework program for the main program in client-side program, In, the Function Identification to match with the function program of required calling is included at least in funcall instruction.
Firstly, being illustrated herein to the basic framework for providing the basic framework program in the present embodiment.The base Data included by plinth functional framework are specifically as follows core code data, the function program data of different editions, and with not Corresponding interface class data etc. with the function program data of version.
Further, it is changed when the core code data of basic function frame generate, and the change will lead to function program When the change of data and/or interface class data, basic function frame can automatically generate new version function program data and/or Interface class data.Illustratively, basic function frame can be realized automatic raw by the shell script in operation maven tool At the function program data and/or interface class data of new version.
Illustratively, core code data include the program data of tri- function programs of A, B and C before change, and The calling interface of function program A, B and C are respectively a, b and c, and core code includes the A1 (new edition of function A after the change Originally), the program data of tetra- function programs of B, C and D, and the calling interface of function program A, B, C and D are respectively a, b, c and d. It so, include this four function programs of A1, B, C and D in the function program data of new version after core code change Program data includes the mark data and calling interface a, b, c of calling interface a, b, c and d in the interface class data of new version Interface class corresponding with d.
Further, interface class data, which can be compiled into client-side program, obtains interface routine (illustratively, Ke Yitong Cross and only compile the mode of support and be compiled, typically can be provide compiling form) so that client-side program can lead to It crosses the interface routine and calls function program corresponding with each calling interface in interface class data.Function program data can be with Compiling (illustratively, can be compiled, by function program number into basic framework program by the compilings form such as complie According to compiling into basic framework program), so as to integrate the corresponding each function of the function program data in basic framework program.Fig. 1 b It shows client-side program, basic framework program and the basic framework of basic framework program is provided, the relationship between three.
In the present embodiment, when the main program in client-side program needs to call its corresponding function program, the main journey Sequence will systematic function call instruction be sent to the interface routine in the client-side program so that interface routine is according to funcall Instruction, calls corresponding function program.Wherein, it includes at least in funcall instruction and matches with the function program of required calling Function Identification.Wherein, Function Identification specifically can be title (such as payment function, download function etc.) of function program etc..
Further, when being called to certain function programs, client-side program, which needs to inform target requirement, to be adjusted Function program is (for example, client-side program needs to inform the function program when calling the function program with payment function The amount of money to be paid), then, at this point, can also include target requirement data in funcall instruction.
Here, illustrating to application program, client-side program and basic framework program, application program be can be Carryout service class application program, correspondingly, client-side program can be the plug-in unit that can call payment function, and basic framework program can To be the host program of payment function, such as wallet class application program.
S120, interface routine are according to Function Identification, based on the local corresponding function program of interface class data call, to hold The corresponding function of row, and the function implementing result of return is fed back into the main program in client-side program.
In the present embodiment, interface routine needs the interface class data by itself when being called to function program Function program is called, which may be local calling, it is also possible to far call.Wherein, have in interface class data Body may include calling interface and the corresponding interface class of the calling interface corresponding to the function program that can call, wherein connect Mouth quasi-representative can be IMPL data.Further, the corresponding interface class of each function program, different function programs Corresponding different interface class.
What needs to be explained here is that interface class data can specifically include all clients program included by application program The corresponding interface class data of the function program that can be called can also be that an interface class data include one included by application program Corresponding interface class data of the function program that a client-side program can call etc..
Further, the interface class in interface class data can also compile simultaneously into basic framework program, so that connecing Mouth program from local interface class data, is obtaining interface class corresponding with Function Identification simultaneously for acquired interface class transmission To basic framework program, basic framework program can according to itself storage interface class and function program corresponding relationship, Function program code corresponding with the interface class received in itself program code is called, to execute the function program.
In the present embodiment, after the completion of being performed, which can will hold the function program in basic framework program Row result is fed back in client-side program.Illustratively, when function program is the function program with payment function, in the function After energy program executes completion, which can feed back to the payment whether user completes the target amount of money in client-side program Main program.
Herein it should be noted that corresponding calling interface does not change if function program is before and after upgrading, And after function program upgrading, the program data of the function program of new version is packaged compiling into basic framework program in time, So, for client-side program when passing through the basic framework routine call function program, can achieve institute's calling function program can be with Automatically with the beneficial effect of edition upgrading, i.e. client-side program can be in the premise not being compiled again to interface class data Under, the latest edition of calling function program.
The embodiment of the invention provides a kind of function realizing methods of application program, by will only have according to funcall Instruction, and the interface routine for the function that required function is called is compiled to client-side program based on local interface class data In, and no longer compile the program code of required calling function into client-side program, solve basic framework in the prior art When program itself changes, the calling interface to multiple business procedure is needed to synchronize update, cause to business procedure into The all very high technological deficiency of human and material resources cost of row maintenance, realizing can be with the function program of required calling function Upgrading, the latest edition function program of calling function needed for being called by interface routine, reduces and safeguards to business procedure Human and material resources cost.
Embodiment two
Fig. 2 is a kind of flow chart of the function realizing method of application program provided by Embodiment 2 of the present invention.The present embodiment It is optimized based on above-described embodiment, in the present embodiment, gives a kind of increase application program updating step, embodied Call the specific embodiment of the process of corresponding function program.Same as the previously described embodiments or corresponding term explanation, this reality Example is applied to repeat no more.
Correspondingly, the method for the present embodiment specifically includes:
The interface routine of S210, compiling into client-side program, receive capabilities call instruction, wherein funcall instruction It is generated when generating the calling demand to the function program in basic framework program for the main program in client-side program, In, the Function Identification to match with the function program of required calling is included at least in funcall instruction.
S220, interface routine determine corresponding local interface class data according to Function Identification.
In the present embodiment, the calling of function program is realized by step 220 to step 240.
Firstly, interface routine can find Function Identification from the funcall instruction received in this step 220, Then from the total interface class data being locally stored, interface class data corresponding with Function Identification are searched.
What needs to be explained here is that such as the content of step 230 it is found that being called needed for not only including in interface class data The corresponding calling interface of function program and the corresponding interface class of calling interface further include the function program pair called needed for having it The input parameter answered, therefore, in the present embodiment, (i.e. the program data of function program becomes after a function program upgrades After more), if the type and/or quantity of the input parameter of the function program produce variation, function program upgrading The corresponding interface class data of version before, should be different from interface class data corresponding after upgrading;If the function program Input parameter type and/or quantity there is no variations, then, the version before function program upgrading corresponding connects Mouth class data, can be identical with interface class data corresponding after upgrading.As it can be seen that in the present embodiment, same function program Different editions may correspond to different interface class data.It further, should include corresponding function journey in interface class data The classification of input parameter and quantity of all categories needed for sequence.
It further, in the present embodiment, should also include the version number of calling function program in Function Identification, so that Interface routine correctly calls interface class data corresponding with version is called needed for function program.Further, in the present embodiment, Even if the corresponding input parameter of the different editions of same function program is different, still, corresponding calling interface can be phase With.Illustratively, the corresponding calling interface of 1.0 version of payment function is a, the corresponding calling interface of 2.0 version of payment function It also is a, but the input parameter of 1.0 version of payment function is only name, and the input parameter of 2.0 version of payment function is name With bank's card number, then 1.0 version of payment function calling interface corresponding with payment function 2.0. version is identical, but ginseng is inputted Number is different, and then corresponding interface class data are different.
Accordingly, it should be understood that in the present embodiment, may have been compiled in different basic framework programs same The program data of the different editions of function program, so that the basic framework program that client-side program can be different by calling, Realize the different editions for calling same function program.
S230, interface routine obtain the input parameter of calling function program according to local interface class data.
In the present embodiment, interface routine is after obtaining local interface class data corresponding with Function Identification, Ke Yigen According to acquired local interface class data, the input parameter of called function program is determined.Illustratively, if called Function program is the function program with payment function, then input parameter can be bank card account number, identification card number and surname Name etc..The corresponding input parameter of different function programs both may be the same or different.
Further, interface routine, can be aobvious to user by application program after determining the input parameter of function program Show the window of the input parameter for input function program, so that user inputs the supplemental characteristic of input parameter.
S240, interface routine are transferred to function program for parameter is inputted, and the function program are called, to execute corresponding function Can, and the function implementing result of return is fed back into the main program in client-side program.
In the present embodiment, interface routine can transmit the supplemental characteristic after the supplemental characteristic for obtaining user's input To function program, to call the function program (calling can be local calling, be also possible to far call), to execute the function The corresponding function of energy range sequence.Function program, can be to interface routine execution result back after executing completion, and interface routine is connecing After receiving implementing result, the main program in client-side program can be fed back to.
S250, application program are compiled according to the updating client program received, will be in updating client program Including change function program interface class data, be compiled into interface routine, change function program in basic framework program liter It is generated when grade.
In the present embodiment, this step 250 is increased, to realize upgrading of the application program to function program can be called.
In the present embodiment, upgrading of the application program to that can call function program is triggered by updating client program.Its In, the interface class data for the function program that has altered are specifically included in updating client program, wherein change function program includes new Increase the existing function program of function program and code change.
Specifically, if in each function program called needed for client-side program, the code change of some function programs, When the corresponding interface class data of the function program being caused to change, or when client-side program needs to call new function program When, the updating client program that application program can receive, with according to the interface class data in updating client program to application Program is compiled, and by new interface class data compilation into original interface routine, substitutes connecing in original interface routine Mouthful data.
Wherein, change function program is generated when basic framework program is upgraded.Specifically, if basic frame The interface class data that new function program or original function program are increased in the basic framework that frame program is relied on are become Change, then can all result in the need for re-starting compiling to basic framework program, i.e., basic framework program is upgraded.At this point, Since the function program in basic framework program is used for by client program calls, client-side program is also required to carry out phase Upgrade with answering, so that client-side program can correctly call the function program in basic framework program.
The embodiment of the invention provides a kind of function realizing methods of application program, and this method increase application program updatings Step, so that the corresponding interface class data of interface degree in client-side program, keep height consistent with basic framework program, with So that client-side program is constantly correctly called the function program in basic framework program, embodies further and call corresponding function The specific embodiment of the process of energy program, by the way that the input parameter of function program is associated with interface class data, to realize Supplemental characteristic based on user's input correctly calls function program.
On the basis of the various embodiments described above, the input parameter that will acquire calling function program is embodied as: interface routine According to local interface class data, the acquisition input parameter from client-side program;Or interface routine is mentioned according to local interface class data Show that user inputs input parameter.
The benefit being arranged in this way is: supplemental characteristic that is quick, easy and effectively obtaining input parameter.
Embodiment three
Fig. 3 is a kind of flow chart of the function realizing method for application program that the embodiment of the present invention three provides.The present embodiment It is optimized based on above-described embodiment, in the present embodiment, gives another embody and call corresponding function program Process specific embodiment.Same as the previously described embodiments or corresponding term explains that this embodiment is not repeated.
Correspondingly, the method for the present embodiment specifically includes:
The interface routine of S310, compiling into client-side program, receive capabilities call instruction, wherein funcall instruction It is generated when generating the calling demand to the function program in basic framework program for the main program in client-side program, In, the Function Identification to match with the function program of required calling is included at least in funcall instruction.
S320, interface routine are converted to the corresponding latest function mark of latest edition of function program according to Function Identification, The call request of the function program of corresponding latest edition is initiated based on local interface class data, and receive capabilities program is defeated Enter parameter acquisition instruction.
In the present embodiment, the calling of function program is realized by step 320 to step 340.
In the present embodiment, the corresponding Function Identification of the different editions of same function program may be different, therefore, client Program increases the conversion process of a Function Identification, i.e., by received function to call the function program of latest edition It is capable of calling the Function Identification of instruction, is converted to the corresponding latest function mark of latest edition of function program.It is exemplary, client The function program called needed for main program in program is payment function, and payment function 1.0 editions are only stored in the main program This Function Identification A (the 3.0 of the latest edition of payment function, and the Function Identification of 3.0 version of payment function is B), then, it connects Mouth program can repair the Function Identification of the function program of required calling after the Function Identification A for obtaining 1.0 version of payment function It is changed to Function Identification B, so that interface routine can call 3.0 version of payment function.
It in the present embodiment, does not include the corresponding input parameter of each function program in interface class data, but in interface journey After sequence sends call request to function program, function program is by corresponding input parameter, to input the shape of parameter acquisition instruction Formula informs interface routine.
S330, interface routine execute input parameter acquisition instruction according to local interface class data, to obtain calling function journey The input parameter of sequence.
In the present embodiment, interface routine is receiving input parameter acquisition instruction, can will input parameter acquisition instruction In input parameter store into local interface class data, then interface routine specifically can be by application program, to user Window of the display for the input parameter of input function program, so that user inputs the supplemental characteristic of input parameter.
Illustratively, if the function program called is the function program with download function, input parameter can To be storage location and the title etc. for downloading file.The corresponding input parameter of different function programs both can be identical, can also be with It is different.
S340, interface routine will input parameter and be transferred to function program, calling function program, to execute corresponding function, And the function implementing result of return is fed back into the main program in client-side program.
The embodiment of the invention provides a kind of function realizing method of application program, it is corresponding that this method embodies calling The process of function program, function program are based on call request, input parameter acquisition instruction are sent to interface routine, so that interface journey Sequence gets parms data, and then is based on supplemental characteristic calling function program again, to realize the supplemental characteristic pair inputted based on user Function program is correctly called.
Example IV
Fig. 4 is a kind of structure chart of the function realization device for application program that the embodiment of the present invention four provides, the present embodiment On the basis of the various embodiments described above, the embodiment of " function realizing method of application program " is provided.With above-described embodiment Identical or corresponding term explains that this embodiment is not repeated.
As shown in figure 4, described device includes: funcall command reception module 401 and function program calling module 402, Wherein:
Funcall command reception module 401, for compiling the interface routine into client-side program, receive capabilities are called Instruction, wherein funcall instruction is that the main program in client-side program is generated to the function program in basic framework program It is generated when calling demand, wherein include at least the function to match with the function program of required calling in funcall instruction It can mark;
Function program calling module 402, for interface routine according to Function Identification, based on local interface class data call The function implementing result of return to execute corresponding function, and is fed back to the master in client-side program by corresponding function program Program.
The embodiment of the invention provides a kind of function realization device of application program, which is referred to by funcall first Receiving module 401 is enabled to compile the interface routine into client-side program, receive capabilities call instruction, wherein funcall instruction It is generated when generating the calling demand to the function program in basic framework program for the main program in client-side program, In, the Function Identification to match with the function program of required calling is included at least in funcall instruction, then passes through function journey 402 interface routine of sequence calling module is according to Function Identification, based on the local corresponding function program of interface class data call, to hold The corresponding function of row, and the function implementing result of return is fed back into the main program in client-side program.
Which solves when basic framework program itself changes in the prior art, need to multiple business procedure Calling interface synchronizes update, leads to all very high technological deficiency of the human and material resources cost safeguarded to business procedure, Realizing can be with the upgrading of the function program of required calling function, the latest edition of calling function needed for being called by interface routine This function program reduces the human and material resources cost safeguarded to business procedure.
On the basis of the various embodiments described above, can also include:
Upgraded module is compiled, for application program according to the updating client program received by upgrade client The interface class data for the change function program for including in the program of end, are compiled into interface routine, change function program in basic frame Frame program generates when upgrading.
On the basis of the various embodiments described above, change function program may include what's new program and code change Functional program.
On the basis of the various embodiments described above, function program calling module 402 may include:
Interface class data determination unit determines corresponding local interface class data for interface routine according to Function Identification;
First input parameter acquiring unit obtains calling function program for interface routine according to local interface class data Input parameter;
First input parameter transmission unit is transferred to function program for parameter is inputted for interface routine, to be called.
On the basis of the various embodiments described above, function program calling module 402 may include:
Parameter receiving unit is inputted, for interface routine according to Function Identification, initiates function based on local interface class data The call request of energy program, and the input parameter acquisition instruction of receive capabilities program;
Second input parameter acquiring unit executes input parameter acquisition according to local interface class data for interface routine and refers to It enables, to obtain the input parameter of calling function program;
Second input parameter transmission unit is transferred to function program for parameter is inputted for interface routine, to be called.
On the basis of the various embodiments described above, the first input parameter acquiring unit and the second input parameter acquiring unit are specific It can be used for:
Interface routine is according to local interface class data, the acquisition input parameter from client-side program;Or
Interface routine prompts user to input input parameter according to local interface class data.
On the basis of the various embodiments described above, function program calling module 402 specifically can be used for:
Interface routine is converted to the corresponding latest function mark of latest edition of function program, is based on according to Function Identification The function program of the local corresponding latest edition of interface class data call.
On the basis of the various embodiments described above, basic framework program can be the host program of the function program.
The function realization device of application program provided by the embodiment of the present invention can be performed any embodiment of that present invention and be mentioned The function realizing method of the application program of confession has the corresponding functional module of execution method and beneficial effect.Not in the present embodiment In detailed description technical detail, reference can be made to any embodiment of that present invention provide application program function realizing method.
Embodiment five
Fig. 5 is a kind of structural schematic diagram for equipment that the embodiment of the present invention five provides.Fig. 5, which is shown, to be suitable for being used to realizing this The block diagram of the example devices 12 of invention embodiment.The equipment 12 that Fig. 5 is shown is only an example, should not be to of the invention real The function and use scope for applying example bring any restrictions.
As shown in figure 5, equipment 12 is showed in the form of universal computing device.The component of equipment 12 may include but unlimited In one or more processor or processing unit 16, system storage 28, connecting different system components, (including system is deposited Reservoir 28 and processing unit 16) bus 18.
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be by equipment 12 The usable medium of access, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 30 and/or cache memory 32.Equipment 12 may further include it is other it is removable/nonremovable, Volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing irremovable , non-volatile magnetic media (Fig. 5 do not show, commonly referred to as " hard disk drive ").Although being not shown in Fig. 5, use can be provided In the disc driver read and write to removable non-volatile magnetic disk (such as " floppy disk "), and to removable anonvolatile optical disk The CD drive of (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver can To be connected by one or more data media interfaces with bus 18.System storage 28 may include that at least one program produces Product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform of the invention each The function of embodiment.
Program/utility 40 with one group of (at least one) program module 42 can store and store in such as system In device 28, such program module 42 includes but is not limited to operating system, one or more application program, other program modules And program data, it may include the realization of network environment in each of these examples or certain combination.Program module 42 Usually execute the function and/or method in embodiment described in the invention.
Equipment 12 can also be communicated with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 etc.), Can also be enabled a user to one or more equipment interacted with the equipment 12 communication, and/or with enable the equipment 12 with One or more of the other any equipment (such as network interface card, modem etc.) communication for calculating equipment and being communicated.It is this logical Letter can be carried out by input/output (I/O) interface 22.Also, equipment 12 can also by network adapter 20 and one or The multiple networks of person (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication.As shown, Network adapter 20 is communicated by bus 18 with other modules of equipment 12.It should be understood that although not shown in the drawings, can combine Equipment 12 use other hardware and/or software module, including but not limited to: microcode, device driver, redundant processing unit, External disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application and Data processing, such as realize the function realizing method of application program provided by the embodiment of the present invention.Namely: compiling to the visitor Interface routine in the program of family end, receive capabilities call instruction, wherein the funcall instruction is in the client-side program Main program generate when generating to the calling demand of the function program in basic framework program, wherein the funcall The Function Identification to match with the function program of required calling is included at least in instruction;The interface routine is according to the function Can mark, based on the local corresponding function program of interface class data call, to execute corresponding function, and by the function of return Implementing result feeds back to the main program in the client-side program.
Embodiment six
The embodiment of the present invention six additionally provides a kind of computer readable storage medium, is stored thereon with computer program, It is characterized in that, the function realization side of the application program as described in any embodiment of that present invention is realized when which is executed by processor Method.Namely: interface routine of the compiling into the client-side program, receive capabilities call instruction, wherein the funcall refers to It enables when generating the calling demand to the function program in basic framework program for the main program in the client-side program and generates , wherein the Function Identification to match with the function program of required calling is included at least in the funcall instruction;Institute Interface routine is stated according to the Function Identification, based on the local corresponding function program of interface class data call, to execute correspondence Function, and the function implementing result of return is fed back to the main program in the client-side program.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.? Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service It is connected for quotient by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (11)

  1. It include at least one client-side program, feature in the application program 1. a kind of function realizing method of application program It is, which comprises
    Compile the interface routine into the client-side program, receive capabilities call instruction, wherein the funcall, which instructs, is It is generated when main program in the client-side program generates the calling demand to the function program in basic framework program, In, the Function Identification to match with the function program of required calling is included at least in the funcall instruction;
    The interface routine is according to the Function Identification, based on the local corresponding function program of interface class data call, to hold The corresponding function of row, and the function implementing result of return is fed back to the main program in the client-side program.
  2. 2. the method according to claim 1, wherein further include:
    The application program is compiled according to the updating client program received, will be in the updating client program Including change function program interface class data, be compiled into the interface routine, the change function program is in the base Plinth framing program generates when upgrading.
  3. 3. according to the method described in claim 2, it is characterized in that, the change function program includes what's new program and generation The existing function program of code variation.
  4. 4. the method according to claim 1, wherein the interface routine is based on this according to the Function Identification The corresponding function program of interface class data call on ground includes:
    The interface routine determines corresponding local interface class data according to the Function Identification;
    The interface routine obtains the input parameter for calling the function program according to the local interface class data;
    The input parameter is transferred to the function program by the interface routine, to be called.
  5. 5. the method according to claim 1, wherein the interface routine is based on this according to the Function Identification The corresponding function program of interface class data call on ground includes:
    The interface routine according to the Function Identification, ask by the calling for initiating the function program based on local interface class data It asks, and receives the input parameter acquisition instruction of the function program;
    The interface routine executes the input parameter acquisition instruction according to the local interface class data, to obtain described in calling The input parameter of function program;
    The input parameter is transferred to the function program by the interface routine, to be called.
  6. 6. method according to claim 4 or 5, which is characterized in that obtain the input parameter packet for calling the function program It includes:
    The interface routine is according to the local interface class data, the acquisition input parameter from the client-side program;Or
    The interface routine prompts user to input the input parameter according to the local interface class data.
  7. 7. the method according to claim 1, wherein the interface routine is based on this according to the Function Identification The corresponding function program of interface class data call on ground includes:
    The interface routine is converted to the corresponding latest function mark of latest edition of the function program according to the Function Identification Know, the function program based on the local corresponding latest edition of interface class data call.
  8. 8. the method according to claim 1, wherein the basic framework program is the host of the function program Program.
  9. It include at least one client-side program, feature in the application program 9. a kind of function realization device of application program It is, which comprises
    Funcall command reception module, for compiling the interface routine into the client-side program, receive capabilities calling refers to It enables, wherein the funcall instruction is that the main program in the client-side program is generated to the function in basic framework program It is generated when the calling demand of program, wherein the function with required calling is included at least in the funcall instruction The Function Identification that program matches;
    Function program calling module, for the interface routine according to the Function Identification, based on local interface class data tune With corresponding function program, to execute corresponding function, and the function implementing result of return is fed back into the client-side program In main program.
  10. 10. a kind of equipment, which is characterized in that the equipment includes:
    One or more processors;
    Storage device, for storing one or more programs,
    When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as the function realizing method of application program described in any one of claims 1-8.
  11. 11. a kind of storage medium comprising computer executable instructions, the computer executable instructions are by computer disposal For executing the function realizing method such as application program described in any one of claims 1-8 when device executes.
CN201910487281.0A 2019-06-05 2019-06-05 Function implementation method and device of application program, equipment and storage medium Active CN110221840B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910487281.0A CN110221840B (en) 2019-06-05 2019-06-05 Function implementation method and device of application program, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910487281.0A CN110221840B (en) 2019-06-05 2019-06-05 Function implementation method and device of application program, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110221840A true CN110221840A (en) 2019-09-10
CN110221840B CN110221840B (en) 2023-04-25

Family

ID=67819806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910487281.0A Active CN110221840B (en) 2019-06-05 2019-06-05 Function implementation method and device of application program, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110221840B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158716A (en) * 2019-12-20 2020-05-15 中国平安财产保险股份有限公司 Version upgrade calling method and device, computer system and readable storage medium
CN112835632A (en) * 2019-11-06 2021-05-25 上海连尚网络科技有限公司 Method and device for calling end capability and computer storage medium
CN113515389A (en) * 2020-04-09 2021-10-19 奇安信安全技术(珠海)有限公司 Calling method, device and system of intermediate interface, storage medium and electronic device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103353844A (en) * 2013-06-25 2013-10-16 亿赞普(北京)科技有限公司 Upgrading method and system of SDK (software development kit)
US20140289699A1 (en) * 2009-08-18 2014-09-25 Adobe Systems Incorporated Methods and Systems for Data Service Development
CN105893070A (en) * 2015-11-25 2016-08-24 乐视云计算有限公司 Application SDK upgrading method and system
CN106502906A (en) * 2016-10-27 2017-03-15 广州华多网络科技有限公司 A kind of method and apparatus of test application program
CN106569794A (en) * 2016-09-23 2017-04-19 北京五八信息技术有限公司 Application developing device
CN109062590A (en) * 2018-06-29 2018-12-21 武汉掌游科技有限公司 A kind of method and system of game SDK online updating
CN109558121A (en) * 2018-11-26 2019-04-02 上海达梦数据库有限公司 Development approach, device, equipment and the storage medium of interface drive program
CN109582400A (en) * 2018-11-30 2019-04-05 北京小米移动软件有限公司 Routine call method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140289699A1 (en) * 2009-08-18 2014-09-25 Adobe Systems Incorporated Methods and Systems for Data Service Development
CN103353844A (en) * 2013-06-25 2013-10-16 亿赞普(北京)科技有限公司 Upgrading method and system of SDK (software development kit)
CN105893070A (en) * 2015-11-25 2016-08-24 乐视云计算有限公司 Application SDK upgrading method and system
CN106569794A (en) * 2016-09-23 2017-04-19 北京五八信息技术有限公司 Application developing device
CN106502906A (en) * 2016-10-27 2017-03-15 广州华多网络科技有限公司 A kind of method and apparatus of test application program
CN109062590A (en) * 2018-06-29 2018-12-21 武汉掌游科技有限公司 A kind of method and system of game SDK online updating
CN109558121A (en) * 2018-11-26 2019-04-02 上海达梦数据库有限公司 Development approach, device, equipment and the storage medium of interface drive program
CN109582400A (en) * 2018-11-30 2019-04-05 北京小米移动软件有限公司 Routine call method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
AMIT SINGHAI等: "Implementation and analysis of pluggable Android applications", 《2015 IEEE INTERNATIONAL CONFERENCE ON SIGNAL PROCESSING, INFORMATICS, COMMUNICATION AND ENERGY SYSTEMS (SPICES)》 *
张鑫: "基于Android平台的手机地图软件设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835632A (en) * 2019-11-06 2021-05-25 上海连尚网络科技有限公司 Method and device for calling end capability and computer storage medium
CN111158716A (en) * 2019-12-20 2020-05-15 中国平安财产保险股份有限公司 Version upgrade calling method and device, computer system and readable storage medium
CN113515389A (en) * 2020-04-09 2021-10-19 奇安信安全技术(珠海)有限公司 Calling method, device and system of intermediate interface, storage medium and electronic device
CN113515389B (en) * 2020-04-09 2024-03-01 奇安信安全技术(珠海)有限公司 Method and device for calling intermediate interface, system, storage medium and electronic device

Also Published As

Publication number Publication date
CN110221840B (en) 2023-04-25

Similar Documents

Publication Publication Date Title
CN109840429B (en) Intelligent contract deployment and calling method and device
CN110221840A (en) The function realizing method and device of application program, equipment and storage medium
CN109062563B (en) Method and device for generating page
CN107077379B (en) A kind of virtual machine creation method and device
CN109582316A (en) A kind of cross-platform Compilation Method, device, system, server and storage medium
CN103729189B (en) Broadcasting method for converting protocol based on LUA, system, terminal
CN110351325B (en) Data processing method and related equipment
CN110457038B (en) Card display method, device and equipment of auxiliary application terminal and storage medium
CN112491948A (en) Non-invasive monomer application micro-service method and device and computer equipment
CN111818194A (en) Domain name based access system and method
CN109684008A (en) Card rendering method, device, terminal and computer readable storage medium
CN108762761A (en) Generation method, device, server and the storage medium of target channel packet
CN111881392A (en) Page display method and device
CN107463406A (en) Issue the method and electronic equipment of Mobile solution
CN111782235A (en) Data upgrading and querying method and device
CN109218393A (en) A kind of implementation method of push, device, equipment and computer storage medium
CN114500481A (en) Service request processing method, system and device
CN109542864A (en) A kind of resource storage method, resource downloading method, system, equipment and medium
CN110377328A (en) A kind of data capture method, device, equipment and storage medium
CN107766070A (en) A kind of service card upgrade method, device, equipment and computer-readable recording medium
CN110096543A (en) Data operation method, device, server and medium of application program
CN115167874A (en) Automatic driving software mirror image deployment method and device, electronic equipment and readable medium
CN108845879A (en) A kind of robot resource transfer method, apparatus, server and storage medium
CN114640584A (en) Module upgrading method and system
CN109639704B (en) A kind of master-slave mode server system application method, system, server and storage medium

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