CN103246525B - A kind of method and client realizing applying operation - Google Patents
A kind of method and client realizing applying operation Download PDFInfo
- Publication number
- CN103246525B CN103246525B CN201210025044.0A CN201210025044A CN103246525B CN 103246525 B CN103246525 B CN 103246525B CN 201210025044 A CN201210025044 A CN 201210025044A CN 103246525 B CN103246525 B CN 103246525B
- Authority
- CN
- China
- Prior art keywords
- loader
- application
- information
- client
- host program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The invention discloses a kind of realize applying the method run and client, the present invention arranges the loader of every kind of application type, the link information of running environment and host program information to the DLL that should plant application type stores is set in this loader, in the configuration file of application, the information of this loader is installed in setting, when this application will be run, the information of this loader of installation of setting in the configuration file according to application, this loader is installed, then run this loader, call running environment and the host program of the DLL storage to application type should be planted by loader according to setting.So, the configuration file of application is no need for arrange the either statically or dynamically link information of the corresponding running environment of DLL storage, without loading host program, so that application is open easily, as long as operationally installing loader it is possible to easily and conveniently get running environment and the host program of application.
Description
Technical field
The present invention relates to field of computer technology, realize applying the method run and client particularly to a kind of.
Background technology
With the development of computer, the application of various type can be run on the client, such as webpage (web) should
With the application of, non-open source software (ark) and GF application etc..When client runs certain type of application, load operating is needed to be somebody's turn to do
The running environment of application and host program, then could run application.This is accomplished by getting the running environment of this application
Program and host program.
At present, the mode of the running environment program and host program that get this application is:
The running environment of various applications is stored in the dynamic link library (DLL) of client, in the configuration file of application
The either statically or dynamically link information of the running environment that this DLL stored is called in middle setting, when running application, according to joining of application
Put the either statically or dynamically link information that the running environment calling this DLL to be stored is set in file, call the fortune that this DLL is stored
Row environment obtains;
Host program is carried out packet packing process together with itself by application, directly parses number when obtaining host program
Obtain according to bag.
But, adopt the running environment program obtaining this application in this way and host program has shortcoming, first, due to
To carry host program in the packet of application, so packet volume can be made too fat to move, and host program to be cannot be carried out
Extension process;Second, for different types of application, required running environment is different, and DLL to be linked is also different, institute
With the configuration file applied for each, the either statically or dynamically chain of the running environment calling this DLL to be stored will be separately provided
Connect information, cause trouble to the personnel of development and application.
Certainly, the running environment this DLL being stored it is also possible to take multiple example type, that is, by calling difference
Parameter obtain for different running environment, at this moment, be accomplished by the configuration file of application arranging these parameters, calling this
By different parameter read-ins during the running environment that DLL is stored, but, for the application layer of client, this fortune is being installed
During row environment, it is relatively difficult to distinguish the running environment of different application according to different parameter, and the writing of the configuration file applied
Also more complicated.
To sum up, at present when application runs, running environment program and the host of application how are easily and conveniently got
Program becomes a problem demanding prompt solution.
Content of the invention
In view of this, the invention provides a kind of realize applying the method run, the method can easily and conveniently obtain
Get running environment program and the host program of application.
Present invention also offers a kind of realize applying the client run, this client can easily and conveniently get
The running environment program of application and host program.
For reaching above-mentioned purpose, the technical scheme is that and be achieved in that:
A kind of method realizing applying operation, arranges the loader of every kind of application type, loader setting corresponding application class
The link information of running environment of dynamic link library (DLL) storage of type and host program information, the method also includes:
After receiving application operating instruction, center process calls installation to should application type from the configuration file of this application
Loader information, be sent to the subprocess that will run this application;
Subprocess according to receive this information install to should application type loader;
Subprocess controls this loader to run, the running environment of the DLL storage according to the corresponding application type of setting for the loader
Link information and host program information, load operating environment and host program;
Subprocess runs this application.
A kind of client realizing application operation, including:Central processing unit, loader setup module and loader module,
Wherein,
Loader setup module, for arranging the loader of every kind of application type in loader module, in this loader
The link information of running environment of DLL storage of the corresponding application type of setting and host program information;
Central processing unit, for receiving application operating instruction using center process, calls from the configuration file of this application
Install to should application type loader information, be sent to the subprocess that will run this application, subprocess controls this loader
Run, run this application;
In loader module, under controlling in the subprocess of central processing unit, according to the DLL of the corresponding application type of setting
The link information of running environment of storage and host program information, load operating environment and host program.
As seen from the above technical solutions, the present invention arranges the loader of every kind of application type, and it is right to arrange in this loader
The link information of running environment of DLL storage and the host program information of application type should be planted, set in the configuration file of application
Put the information installing this loader, when this application will be run, this loader of installation of setting in the configuration file according to application
Information, this loader is installed, then runs this loader, call to application type should be planted by loader according to setting
The running environment of DLL storage and host program.So, it is no need for arranging corresponding DLL storage in the configuration file of application
Running environment either statically or dynamically link information, without loading host program so that application is open easily, operationally only
Loader to be installed is it is possible to easily and conveniently get running environment and the host program of application.
Brief description
Fig. 1 is the method flow diagram realizing application operation provided in an embodiment of the present invention;
Fig. 2 is the client terminal structure schematic diagram realizing application operation provided in an embodiment of the present invention;
Fig. 3 calls schematic diagram for loader provided in an embodiment of the present invention.
Specific embodiment
For making the object, technical solutions and advantages of the present invention clearer, right below in conjunction with the accompanying drawings and the specific embodiments
The present invention is described in further detail.
In order to easily and conveniently get running environment program and the host program of application, embodiment of the present invention setting is every
Plant the loader of application type, the link letter to the running environment that the DLL that should plant application type stores is set in this loader
Breath and host program information, the information of this loader is installed in setting in the configuration file of application, when this application will be run, according to
The information of this loader of installation of setting in the configuration file of application, installs this loader, then runs this loader, by loading
Device calls the running environment of DLL storage and the host program to planting application type according to setting.
So, it is no need for arranging the corresponding static state of running environment of DLL storage or dynamic in the configuration file of application
State link information, without loading host program so that application is open easily, as long as operationally install loader.
Here, application can be various webpages or software.
Fig. 1 is the method flow diagram realizing application operation provided in an embodiment of the present invention, and the embodiment of the present invention is with client
Illustrate as a example end, it is, of course, understood that method provided in an embodiment of the present invention can also be complete in other equipment
Become, or multiple equipment interaction completes, and is not intended to limit here, arranges the loader of every kind of application type, it is right to arrange in this loader
Answer the link information of running environment that the DLL of application type stores and host program information, it concretely comprises the following steps:
Step 101, client receive certain application type operating instruction;
In this step, certain application type operating instruction is that user sends, that is, user adopts click
Individual application, client detects this clicking operation, determines that user have sent certain application type operating instruction;
Step 102, the center process of client are called from the configuration file of this application and are installed to should application type
Loader information, and send that information to run the subprocess of this application;
In this step, also pre-set in the configuration file of this application to should application type loader information;
In this step, the center process of client can carry out active client ruuning situation it is intended that a subprocess is transported
This application of row, this is prior art, repeats no more here;
Step 103, client subprocess according to receive this information install to should application type loader;
Step 104, under the subprocess of client controls, this loader runs, and loader calls to should according to setting
Plant the link information of running environment of DLL storage and host program information, load operating environment and the host program of application type;
In this step, in loader, the host program information of setting for host program or can call host
The recalls information of program, at this moment, host program has stored in client and suffers;
After the completion of this step, this loader is unloaded by the subprocess of client;
Step 105, the subprocess of client run application.
Fig. 2 is the client terminal structure schematic diagram realizing application operation provided in an embodiment of the present invention, including:Central authorities are processed
Device, loader setup module and loader module, wherein,
Loader setup module, for arranging the loader of every kind of application type in loader module, in this loader
The link information of running environment of DLL storage of the corresponding application type of setting and host program information;
Central processing unit, for receiving application operating instruction using center process, calls from the configuration file of this application
Install to should application type loader information, be sent to the subprocess that will run this application, subprocess controls this loader
Run, run this application;
In loader module, under controlling in the subprocess of central processing unit, corresponding application type is called according to setting
DLL storage the link information of running environment and host program information, load operating environment and host program.
In this client, central processing unit, it is additionally operable to subprocess after having run this loader, unload this loader.
In this client, loader module is a DLL module.
In embodiments of the present invention, provide a loader for every kind of application type in the client, shielded by loader
Run running environment and host program required for this application type etc., the running environment required for this application type of load operating
And host environment is all completed by this loader.Every kind of application type only needs to specify adding of corresponding application type in configuration file
Carry device information.
In embodiments of the present invention, the running environment of various application types and host program are only corresponding with this application type
Loader interacts, and loader, after being loaded into the subprocess that will run this application type, just directly runs and loads this application type
Running environment and host program, after the completion of, the subprocess that will run this application type just can unload this loader.In order that
Obtaining loader can be by repeated loading and unloading, and loader is not provided with any condition in setting unloading.
In embodiments of the present invention, loader is the DLL module of a standard, has the DLL export interface of standard, loads
Device is the transfer of corresponding application type, is responsible for the running environment of corresponding application type and host program are managed,
During management, can be extended.
In embodiments of the present invention, when described application is webpage, described client is to run the client of webpage;Described should
With, during for software, described client is the client of runs software.
In embodiments of the present invention, described client is the client running application of movement.
Fig. 3 calls schematic diagram for loader provided in an embodiment of the present invention, as illustrated, getting application in subprocess
Call in configuration file install to should application type loader information when, that is, in figure QplusAPP.exe storage
It is possible to determine it is the corresponding loader of which application type, in figure includes the loader-webpage of three types after information
Application loader (webapp.dll), Ark application loader (Arkapp.dll) and Gf application loader (Gfapp.dll), so
Subprocess loads corresponding loader afterwards, and corresponding loader just can call corresponding running environment and host program.
In embodiments of the present invention, it is provided with different instructions to interact with loader and application in the client:
Enabled instruction is RunCommand, and szDLLPath is the dll path of loader, is commonly included in the configuration of application
Call installation to should be in the loader information of application type in file, szCommand is the order line ginseng that loader is adopted
Number, loads running environment and host program for instruction;AppID is used for identifying each application, and taskID carries out this for subprocess
The secondary mark running application, is used for calling or notify to use.When each order, instruction and command line parameter use, can take
Band appID and taskID mark.
The embodiment of the present invention is provided with multiple instruction for loader and is interacted with outside, including:
1st, Startup is initialization directive, can carry taskID and IQPlusPlatform, IQPlusPlatform represents
Process provides service, responsible interprocess communication and message process registration to loader;
2nd, Run is to start application instruction, carries appID and taskID;
3rd, Exit is to exit application instruction, carries appID and taskID;
4th, OnCallAPI is to receive call instruction, accepts calling of subprocess, provides service;
5th, OnResult is to receive call result instruction, feedback reception call result;
6th, Cleanup () is anti-initialization directive,
The center process of client call from the configuration file of this application install to should application type loader
During information, obtained using RunCommand, and this loader information is sent to the subprocess running application, instruction subprocess adds
Carry the loader acquired in RunCommand.
From such scheme as can be seen that the unified scheme loading of polymorphicization is applied in the realization that the embodiment of the present invention proposes, carry
The high extensibility of application.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit protection scope of the present invention.All
Within the spirit and principles in the present invention, any modification, equivalent and improvement of being made etc., should be included in the guarantor of the present invention
Within the scope of shield.
Claims (10)
1. a kind of method realizing applying operation is it is characterised in that arrange the loader of every kind of application type, loader includes right
Answer the link information of dynamic link library (DLL) storage running environment and the host program information of application type, the method also includes:
After receiving application operating instruction, center process calls installation to should application type add from the configuration file of this application
Carry device information, be sent to the subprocess that will run this application;
Subprocess according to receive this information install to should application type loader;
Subprocess controls this loader to run, the link letter of the running environment according to the DLL storage of corresponding application type for the loader
Breath and host program information, load operating environment and host program;
Subprocess runs this application.
2. the method for claim 1 is it is characterised in that described host program information is host program or calls host's journey
The recalls information of sequence.
3. the method for claim 1 is it is characterised in that after load operating environment and host program, in subprocess
Before running application, the method also includes:
Subprocess unloads this loader.
4. the method for claim 1 is it is characterised in that described center process calls peace from the configuration file of this application
Dress to should application type loader information adopt for operating instruction RunCommand.
5. the method for claim 1 is it is characterised in that described loader information includes loader path szDLLPath;
Described loader, in load operating environment and host program, is initialized using Startup instruction, is referred to using operation
Make RunCommand start, loaded using szCommand command line parameter, and Startup instruction, operating instruction
RunCommand and szCommand order carries the application identities of mark application respectively, and this operation running identifies
taskID.
6. a kind of client realizing applying operation is it is characterised in that include:Central processing unit, loader setup module and plus
Carry device module, wherein,
Loader setup module, for arranging the loader of every kind of application type in loader module, corresponding in this loader
The link information of DLL storage running environment of application type and host program information;
Central processing unit, for receiving application operating instruction using center process, calls installation from the configuration file of this application
To should application type loader information, be sent to the subprocess that will run this application, subprocess control this loader run,
Run this application;
In loader module, under controlling in the subprocess of central processing unit, the fortune of the DLL storage according to corresponding application type
The link information of row environment and host program information, load operating environment and host program.
7. client as claimed in claim 6, it is characterised in that described central processing unit, is additionally operable to subprocess and is running
After this loader, unload this loader.
8. client as claimed in claim 6 is it is characterised in that described loader module is a DLL module.
9. described client as arbitrary in claim 6~8 is it is characterised in that when described application is webpage, described client is
Run the client of webpage;
When described application is software, described client is the client of runs software.
10. described client as arbitrary in claim 6~8 is it is characterised in that described client is the operation application of movement
Client.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210025044.0A CN103246525B (en) | 2012-02-06 | 2012-02-06 | A kind of method and client realizing applying operation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210025044.0A CN103246525B (en) | 2012-02-06 | 2012-02-06 | A kind of method and client realizing applying operation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103246525A CN103246525A (en) | 2013-08-14 |
CN103246525B true CN103246525B (en) | 2017-03-08 |
Family
ID=48926059
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210025044.0A Active CN103246525B (en) | 2012-02-06 | 2012-02-06 | A kind of method and client realizing applying operation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103246525B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103645925B (en) * | 2013-12-27 | 2017-02-08 | 北界无限(北京)软件有限公司 | Method and device for running webpage applications in mobile terminal operating system |
CN104660694A (en) * | 2015-02-09 | 2015-05-27 | 北京博雅立方科技有限公司 | Method and apparatus for calling service |
CN112214260B (en) * | 2015-09-21 | 2023-09-22 | 创新先进技术有限公司 | Method and device for loading APP (application) of terminal |
CN105677423A (en) * | 2016-01-11 | 2016-06-15 | 曾戟 | Resource downloading method and device |
CN106055319A (en) * | 2016-05-25 | 2016-10-26 | 福建造梦信息技术有限公司 | Construction method of VR compatible operation sandboxie |
CN106293880B (en) * | 2016-08-10 | 2019-12-13 | 北京奇虎科技有限公司 | method and device for running Android application program on Windows system |
CN111427594B (en) * | 2016-09-22 | 2024-04-09 | 华为技术有限公司 | Application program running method and device |
CN108229112B (en) * | 2016-12-22 | 2022-06-03 | 阿里巴巴集团控股有限公司 | Protection application program, and running method and device of application program |
CN109491725B (en) * | 2018-11-12 | 2022-12-27 | 火烈鸟网络(广州)股份有限公司 | Interactive multi-opening method and system of application program, storage medium and electronic equipment |
CN114153521A (en) | 2019-03-25 | 2022-03-08 | 华为技术有限公司 | Class loading method and device |
CN110045998B (en) * | 2019-04-22 | 2021-07-16 | 腾讯科技(深圳)有限公司 | Method and device for loading dynamic library |
CN113608803A (en) * | 2021-08-16 | 2021-11-05 | 上海万物新生环保科技集团有限公司 | Method and equipment for realizing functional operation in multi-operation environment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101067789A (en) * | 2007-06-05 | 2007-11-07 | 上海微电子装备有限公司 | Program dynamic loading method |
CN101346727A (en) * | 2005-12-27 | 2009-01-14 | 日本电气株式会社 | Program execution control method, device, and execution control program |
CN101937353A (en) * | 2010-09-20 | 2011-01-05 | 中兴通讯股份有限公司 | Method and device for deploying and loading plug-in unit |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1321853A3 (en) * | 2001-12-10 | 2009-12-23 | Sap Ag | Dynamic component transfer based on resource negotiations between computer systems |
-
2012
- 2012-02-06 CN CN201210025044.0A patent/CN103246525B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101346727A (en) * | 2005-12-27 | 2009-01-14 | 日本电气株式会社 | Program execution control method, device, and execution control program |
CN101067789A (en) * | 2007-06-05 | 2007-11-07 | 上海微电子装备有限公司 | Program dynamic loading method |
CN101937353A (en) * | 2010-09-20 | 2011-01-05 | 中兴通讯股份有限公司 | Method and device for deploying and loading plug-in unit |
Also Published As
Publication number | Publication date |
---|---|
CN103246525A (en) | 2013-08-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103246525B (en) | A kind of method and client realizing applying operation | |
CN104375861B (en) | Application program based on Android platform exempts from method, device and the terminal of installation and operation | |
KR102024533B1 (en) | Methods for operating software-defined radio application | |
CN101719960B (en) | Communication device and cdma terminal | |
CN109889571B (en) | Development platform system and development method | |
CN108241500B (en) | Method, device and system for repairing hardware component and storage medium | |
CN104239037A (en) | Software framework with reconfigurable business function | |
US20070240171A1 (en) | Device, Method, And Computer Program Product For Accessing A Non-Native Application Executing In Virtual Machine Environment | |
CN104636122B (en) | The sharing method and equipment of a kind of capability component | |
CN105487905A (en) | Updating method and device of hybrid application | |
JP2011516987A (en) | Method and apparatus for managing mobile device software | |
CN110413259B (en) | Android service framework, method and device for realizing extended service | |
CN106066803B (en) | application program operation control method and device | |
CN107005583A (en) | Method and terminal device for performing radio application | |
KR20170040972A (en) | Method and terminal device for running radio applications | |
EP2838014A1 (en) | Method for distributing, installing and executing software-defined radio application | |
CN105897902B (en) | It is a kind of to start locally applied method and system by browser | |
US7996500B2 (en) | Systems and methods for extensible distributed configuration management | |
CN104598267B (en) | The tune of application plays method and device | |
CN106339237A (en) | Plug-in loading frame for WEB application in field of JavaEE and method | |
CN109918148A (en) | The component dynamic pluggable system of Internet of things middleware | |
CN107133055A (en) | A kind of method that customized development is realized based on ClassLoader | |
CN105786511A (en) | Implementation method for terminal device Web application management | |
CN107526584B (en) | Data access method and device | |
US20090094312A1 (en) | Methods and systems for dynamic code extension |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |