CN106528057A - Method and apparatus for realizing running environment adaptation - Google Patents

Method and apparatus for realizing running environment adaptation Download PDF

Info

Publication number
CN106528057A
CN106528057A CN201510572326.6A CN201510572326A CN106528057A CN 106528057 A CN106528057 A CN 106528057A CN 201510572326 A CN201510572326 A CN 201510572326A CN 106528057 A CN106528057 A CN 106528057A
Authority
CN
China
Prior art keywords
adaptation
point
running environment
data
model
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
CN201510572326.6A
Other languages
Chinese (zh)
Other versions
CN106528057B (en
Inventor
刘世川
魏敬东
肖承柳
刘强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510572326.6A priority Critical patent/CN106528057B/en
Publication of CN106528057A publication Critical patent/CN106528057A/en
Application granted granted Critical
Publication of CN106528057B publication Critical patent/CN106528057B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method for realizing running environment adaptation. The method comprises the steps of detecting the triggering of adaptation points in running environments, and obtaining adaptation point data according to the triggered adaptation points and the running environments, wherein the adaptation points are matched with the differences between the running environments; searching for adaptation models corresponding to the adaptation point data, and filling the adaptation models with adaptation values in the adaptation point data; and triggering the running of the adaptation models to perform adaptation of the adaptation points in the running environments. In addition, the invention provides an apparatus used for realizing the running environment adaptation and matched with the method. According to the method and the apparatus for realizing the running environment adaptation, the running environment adaptation can be realized; the adaptability is high; a running environment can be newly added only by newly adding corresponding adaptation point data; an application does not need to be re-compiled and released; and subsequent maintenance and expansion are facilitated.

Description

The method and apparatus for realizing running environment adaptation
Technical field
The present invention relates to Computer Applied Technology field, more particularly to a kind of method and apparatus for realizing running environment adaptation.
Background technology
As the development of various electronic equipments, various electronic equipments are released by all big enterprises, which is had nothing in common with each other due to the difference of affiliated manufacturer, the running environment between electronic equipment;Even and if affiliated manufacturer is identical, also the running environment between electronic equipment will be caused different due to the difference of version in type and the type, therefore, for the application developed for electronic equipment, the running environment of its developed adaptation is limited, after electronic equipment updates, usually normally cannot be run due to not being adapted to for actual motion environment.
For solving this problem, its being adapted between running environment is mostly realized in application by way of hard coded, will be adapted in solution write application, as application compiling is issued;Or by the way of the loading of jar bags, i.e., different running environment write different jar bags, and then by the different corresponding jar bags of running environment loading reaching the purpose of adaptation.
However, either by way of hard coded or jar bags realized running environment adaptation, which carries out configuring obtaining for certain class running environment, therefore, the running environment that can be suitable for is limited, and suitability is not high.And no matter hard coded mode or jar bags, be it is overall exist, the trickle modification of any of which can all need to repack, and follow-up maintenance and expansion have not good.
The content of the invention
Based on this, it is necessary to provide a kind of method and system for realizing running environment adaptation, to solve between application and running environment, the not good technical problem of the suitability of existing adaptation scheme and follow-up maintenance and expansion.
For solving above-mentioned technical problem, will adopt the following technical scheme that:
A kind of method for realizing running environment adaptation, including:
Triggering a little is adapted in the running environment for intercepting place, and according to the adaptation point and the running environment acquisition adaptation point data of triggering, the adaptation point is matched with the difference between each running environment;
The corresponding adaptation model of the adaptation point data is searched, the adaptation value in the adaptation point data is inserted into the adaptation model;
The triggering operation adaptation model, to carry out being adapted to adaptation a little described in the running environment.
A kind of device for realizing running environment adaptation, including:
Module is intercepted in triggering, for intercepting the triggering being adapted in the running environment at place a little, is obtained and is adapted to point data according to the adaptation point of triggering and running environment, and the adaptation point is matched with the difference between each running environment;
Adaptation value in the adaptation point data, for searching the corresponding adaptation model of the adaptation point data, is inserted the adaptation model by model acquisition module;
Model running module, for triggering the operation adaptation model, to carry out being adapted to adaptation a little described in the running environment.
As shown from the above technical solution,According to the difference between each running environment,It is provided with several adaptation points in advance in running environment,Which will be matched with the difference between each running environment,For residing arbitrary running environment,If listening to the triggering of adaptation point,Adaptation point data is obtained according to the adaptation point and running environment for triggering then,Search the corresponding adaptation model of adaptation point data,Searched in the adaptation model for obtaining so that the adaptation value in adaptation point data is inserted,The triggering after completing to be adapted to the inserting of point data runs adaptation model,To realize the adaptation of the adaptation point,And then application can be adapted with running environment by process as above,Suitability is high,And as which is realized by corresponding adaptation point data,Therefore,It is follow-up such as to need extension,Newly-increased running environment only needs to newly-increased corresponding adaptation point data,Recompility issue need not be carried out to application,It is easy to follow-up maintenance and extension.
Description of the drawings
Fig. 1 is the method flow diagram for realizing running environment adaptation in one embodiment;
Fig. 2 be intercept place running environment in Fig. 1 in be adapted to triggering a little, a method flow diagram for adaptation point data is obtained according to the adaptation point of triggering and running environment;
Fig. 3 is to carry out being adapted to a selection for point data according to adaptation point and corresponding hardware information data in Fig. 2, to obtain being adapted to the method flow diagram of point data;
Fig. 4 is the corresponding adaptation model of lookup adaptation point data in Fig. 1, and the adaptation value in adaptation point data is inserted the method flow diagram of adaptation model;
Fig. 5 is the method flow diagram for realizing running environment adaptation in another embodiment;
Fig. 6 is the application schematic diagram for realizing running environment adaptation in one embodiment;
Fig. 7 is the structured flowchart of the device for realizing running environment adaptation in one embodiment;
Fig. 8 is the structural schematic block diagram that module is intercepted in triggering in Fig. 7;
Fig. 9 is the structural schematic block diagram of data selecting unit in Fig. 8;
Figure 10 is the structural schematic block diagram of model acquisition module in Fig. 7;
Figure 11 is the structural representation of the device for realizing running environment adaptation in another embodiment;
Figure 12 is the structural representation of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Embody feature of present invention to describe in detail in the following description with the exemplary embodiment of advantage.It should be understood that the present invention can have various changes on different embodiments, which neither departs from the scope of the present invention, and explanation therein and diagram are treated as purposes of discussion in itself, and is not used to limit the present invention.
In one embodiment, this realizes the method for running environment adaptation as shown in figure 1, comprising the steps:
Step 110, is adapted to triggering a little in intercepting place running environment, according to adaptation point and the running environment acquisition adaptation point data of triggering.
In electronic equipment, running environment will be engaged with arbitrary application, to realize that this applies corresponding function.In other words, running environment provides corresponding hardware supported for the operation of application, therefore, the difference of each running environment will correspond to the difference of hardware.
Each running environment is compared, the difference between each running environment is obtained, realizes in running environment, being adapted to setting a little according to existing difference, so that the difference between the adaptation point and each running environment matches, adaptation point is the discrepancy of different running environment.
Corresponding adaptation point data is configured with for each adaptation point in running environment in advance, adaptation point data is defined and adapts to the adaptation values such as method name, the supplemental characteristic of affiliated adaptation point hardware condition, therefore, being adapted to point data will be related to the running environment that adaptation point and the adaptation point are located.
After intercepting and obtaining being currently located the triggering of arbitrary adaptation point in running environment, the running environment being located according to which is obtained into the corresponding adaptation point data of adaptation point.
Step 130, searches the corresponding adaptation model of adaptation point data, the adaptation value in adaptation point data is inserted adaptation model.
Adaptation model is the normal operation institute trigger of correspondence adaptation point in running environment, and which is used for realizing being adapted between the hardware that adaptation point is corresponding and application.Adaptation model is to carry out general character to the adopted adaptation procedure of same adaptation point in each running environment to detach, and encapsulation is obtained, and it is then the difference section in the adaptation procedure to be adapted to point data accordingly, and this is left a blank in the adaptation procedure is obtained adaptation model.
Therefore, after lookup obtains the adaptation corresponding adaptation model of point, it would be desirable to insert adaptation value and complete adaptation procedure is obtained.
Step 150, triggering operation adaptation model, to carry out being adapted to adaptation a little in running environment.
The adaptation procedure of adaptation value is inserted in triggering operation, the function of adaptation point request in running environment is adapted to, and then causes corresponding application to be able to trouble-free operation, without the exploitation again applied for current operating environment again.
Process is realized by what running environment as above was adapted to, the maskable each running environment of electronic equipment will be caused to obtain various applications smooth operation, and the restriction of running environment is no longer influenced by, the function of electronic equipment is greatly enriched, the suitability of electronic equipment is also improved.
Another aspect, for the exploitation applied, as adaption function can be provided according to the running environment being currently located for application, be not in using situation about normally cannot run in electronic equipment, also no longer need the application of different editions to be developed respectively for different running environment, greatly reduce cost and the complexity of application and development.
For running environment adaptation itself, which is As time goes on, either for the hardware iterative of electronic equipment updates or for the appearance of various applications, the running environment adaptation realized need not re-start exploitation compiling, and only need to for different hardware, that is the newly-increased corresponding adaptation point data of adaptation point, it is easy to extension and maintenance, can the extension of constantly upgrading with actual motion environment changeable.
In one embodiment, as shown in Fig. 2 the step 110 includes:
Step 111, is adapted to triggering a little in the running environment for intercepting place, to obtain asking the adaptation point being adapted in running environment.
By the adaptation point obtained corresponding to a certain adaption function of extraneous request of intercepting to place running environment, and then the adaptation of corresponding adaptation point constantly can be carried out for the running status in running environment, it is ensured that realize the motility being adapted in running environment.
Step 113, obtains the adaptation corresponding hardware information data of point.
Adaptation point is the discrepancy between various running environment, in each running environment, the corresponding hardware of adaptation point will be different, also consequently leads to not be adapted to using what operation wherein occurred, therefore, need to realize the adaption function of adaptation point for the hardware, the adaptation corresponding hardware information data of point are obtained, for subsequently realizing the use of adaption function.
Specifically, according to the adaptation point for asking to be adapted in running environment, by corresponding hardware information data are obtained in electronic equipment, the hardware corresponding to adaptation point is described by the hardware information data.
Step 115, carries out being adapted to the selection of point data according to adaptation point and corresponding hardware information data, to obtain being adapted to point data.
Prestored a plurality of adaptation point data, each adaptation point all to there is a plurality of adaptation point data, to be respectively suitable for each running environment.
Wherein, adaptation point data is using as realizing being adapted to the configuration file of adaption function a little in running environment, will be to be located adaptation point and be adapted to point hardware it is related, therefore can according to adaptation point and the corresponding hardware information data of adaptation point carry out adaptation point data selection.
As shown in figure 3, in one embodiment, the step 115 includes:
Step 1151, initiates data acquisition request according to adaptation point and corresponding hardware information data to the webserver.
Step 1153, receives the adaptation point data that the webserver is returned according to data acquisition request.
Wherein, the adaptation point data that the webserver is returned is corresponding with adaptation point, and the hardware information data being adapted in point data are consistent with the adaptation corresponding hardware information data of point.
Adaptation point data at least includes hardware information data and adaptation value, and the hardware information data are used for indicating the be suitable for running environment of the adaptation point data, which depict the hardware of correspondence adaptation point in be suitable for running environment.
Adaptation point data can be stored in electronic equipment locally, can also be stored in the webserver, and which can need flexibly be arranged according to actual motion.In a preferred embodiment, be adapted to point data to will be stored in the webserver, by a large amount of adaptation point datas of store function configuration huge in the webserver, and then powerful adaption function is provided for electronic equipment.
And for adaptation point data is in the storage in the webserver, it is newly-increased running environment by the running environment in the running environment adaptation for electronic equipment is carried out, the running environment newly-increased with this is not corresponding for original adaptation point data, need to add new adaptation point data, now, can directly be added in the webserver, for the range of fit of running environment is expanded, drastically increase convenience.
After intercepting the adaptation point of the running environment triggering for obtaining being located, data acquisition request will be initiated to the webserver according to the adaptation point and the corresponding running environment of adaptation point, so that network server response data acquisition request, the lookup of related adaptation point data is carried out in the adaptation point data of storage, and then lookup obtains the adaptation point data corresponding to the data acquisition request.
In one embodiment, as shown in Figure 4, the step 130 includes:
Step 131, extracts the model identification and adaptation value in adaptation point data.
After acquiring adaptation point data corresponding with the adaptation point of triggering, model identification and the adaptation value included by which will be extracted by the adaptation point data.
Step 133, searches the corresponding adaptation model of model identification according to model identification in the abstract adaptation model of adaptation point association.
One running environment contains multiple adaptation points, and each adaptation point has corresponding one or more adaptation model, and to realize the adaption function of the adaptation point.It can thus be appreciated that, in one running environment, corresponding adaptation model quantity is more huge, and each adaptation model may correspond to a certain small adaption function in running environment, therefore, several abstract adaptation models are provided with, there is the adaptation model of general character will belong to an abstract adaptation model one class.
In other words, abstract adaptation model is the caster of the adaptation model that a class has notable general character, define the general character method of a class adaptation model, and the adaptation model included by which is then actual adaptation procedure, each adaptation model defines the data and data type corresponding to the adaptation value for needing filling, and the adaptation model will be uniquely indicated by model identification.
Arranged by the level formed by abstract adaptation model and adaptation model, by causing, the lookup of a certain adaptation model in adaptation running environment is more convenient, and then improve search efficiency, and shorten the time for searching required consuming, and then the real-time being adapted in improving running environment.
Step 135, adaptation value is inserted the key position left a blank in adaptation model.
Adaptation model is the encapsulation of general character in the corresponding adaptation procedure in each running environment of adaptation point, and the discrepancy in adaptation procedure is then come by detaching in adaptation procedure, and to leave a blank in this position, thus obtained general character adaptation procedure is adaptation model.
And in the adaptation procedure of running environment, it is only necessary to corresponding adaptation value is filled, the adaptation value is the variance data in adaptation procedure.
It follows that by the cooperation of adaptation model and adaptation point data, reasonably the adaptation procedure by same adaptation point in each running environment carries out the isolation of general character part and difference section, so formed it is applicable can running environment reliable and stable adaptation procedure.
In a preferred embodiment, the adaptation point data is structurized text data, and then makes which internal opaque, and maintenance cost is low, it is easy to which split and be polymerized restructuring, and causes the adaptation procedure of whole service environment controllable.
As shown in figure 5, in another embodiment, method as above also comprises the steps:
Step 210, according to the corresponding adaptation value of adaptation point in the newly-increased running environment of the hardware information data genaration of newly-increased running environment.
Newly-increased running environment refers to As time goes on relatively original running environment and emerging arbitrary running environment, is to realize arbitrarily application normal operation wherein, it is also desirable to complete to be adapted to the adaptation of point by process as above.
Based on this, according to the corresponding adaptation value of hardware information data genaration being adapted in newly-increased running environment a little, for example, the adaptation value can be the class name of reflection, method name, parameter etc..
Step 230, by the hardware information data of the hardware information data acquisition adaptation point of newly-increased running environment, and obtains the corresponding model identification of adaptation model in the abstract adaptation model of adaptation point association, and the adaptation model is for being adapted to adaptation point.
In the adaptation model that the abstract adaptation model and the abstract adaptation model for pre-setting is included, arbitrary adaptation point has abstract adaptation model and corresponding adaptation model in the abstract adaptation model corresponding to which, therefore, the adaptation mark corresponding to the direct access adaptation model.
Step 250, forms the corresponding adaptation point data of adaptation point in newly-increased running environment by the hardware information data, model identification and the adaptation value that are adapted to point.
Hardware information data, model identification and the adaptation value of packing forms the adaptation corresponding adaptation point data of point in newly-increased running environment, and is stored, for using during subsequent adaptation.
By process as above, so that the adaptation issues of each running environment are converted into particular data, and for example, constant field, specific java reflections, it is adapted to point data to solve, and then the effect for inserting to reach adaptation by adaptation point data under general adaptation model.
The electronic equipment that running environment as above is located includes but is not limited to smart mobile phone, computer or other hardware terminal equipment.
By the adaptation procedure of running environment as above, a particular platform is provided for each running environment, which can constantly expand the running environment scope of its adaptation by the addition of open adaptation point data, so that application can support the running environment provided by various hardware, and as the running environment that each electronic equipment manufacturer releases electronic equipment is gradually in the state of convergence, the general framework constituted by the adaptation model also will be restrained therewith, and then just to various hardware cases.
The adaptation that running environment as above is illustrated with reference to a specific embodiment realizes process.In the embodiment, the electronic equipment of indication is intelligent mobile terminal, each running environment is corresponding with the hardware of all kinds of intelligent mobile terminals, therefore, in all kinds of intelligent mobile terminals, with its type and the difference of type version, hardware is mostly slightly different, therefore, various discrepancys are there are between each running environment, and the discrepancy is foregoing adaptation point.
Wherein, each running environment is n kinds, then compare each running environment will obtain being adapted to point A, adaptation point B ..., adaptation point F, as shown in fig. 6, each adaptation has corresponding adaptation point data, e.g., be adapted to point A and corresponded to adaptation point data 1.
Running environment x corresponding to the intelligent mobile terminal of current operation is arbitrary running environment as above, therefore, in the intelligent mobile terminal of current operation, adapter 610 will be provided between running environment x and application, so that in the operation of arbitrary application, if triggering the arbitrary adaptation point in running environment x, the adaptation of the adaptation point can be carried out by adaptation 610, so as to the smooth operation for ensureing to apply.
The triggering of arbitrary adaptation point in running environment x, for example, the adaptation point of the triggering is adaptation point A, by by the running environment at adaptation point A places obtain its in running environment x corresponding to adaptation point data 1, and the abstract adaptation model A for associating.
Hardware information data, model identification and adaptation value are contained in adaptation point data 1, therefore, the hardware information data then must be consistent with running environment x for being adapted to point A places, used as the foundation that adaptation point data 1 is chosen.
In the abstract adaptation model A of association, the lookup that corresponding adaptation model is carried out according to model identification obtains adaptation model A, and then insert the adaptation value included in adaptation point data 1 in adaptation model A, triggering runs the adaptation for being adapted to point A during this completes i.e. achievable running environment x of adaptation model A that adaptation value is inserted.
The adaptation of adaptation even other running environment of other adaptation points will be as it was previously stated, here carry out repeating to enumerate one by one yet.
In the realization of adapter as above, each adaptation model durability is high, only need to appropriate adaptation data be configured to newly-increased running environment, and constantly expand its range of fit with the continuous addition of adaptation data, and then can be applied to new hardware device.
Adaptation data simple structure itself, convenient storage and transmission, therefore, adaptation can be quickly and easily realized under here auxiliary, it is not necessary to depend on external factor, controllability is high.
Additionally, the adapter can be the form of jar bags, or the form of jar bags and adaptation point data mixing, here is not defined, and which can be configured according to needs of actual operation.
In one embodiment, a kind of device for realizing running environment adaptation has been also correspondingly provided, as shown in fig. 7, the device includes that module 310, model acquisition module 330 and model running module 350 are intercepted in triggering, wherein:
Module 310 is intercepted in triggering, for intercepting the triggering being adapted in the running environment at place a little, is obtained and is adapted to point data according to the adaptation point of triggering and running environment, and the adaptation point is matched with the difference between each running environment.
Adaptation value in adaptation point data, for searching the corresponding adaptation model of adaptation point data, is inserted adaptation model by model acquisition module 330.
Model running module 350, for triggering operation adaptation model, to carry out being adapted to adaptation a little in running environment.
Further, in one embodiment, as shown in figure 8, module 310 is intercepted in the triggering includes adaptation point location unit 311, hardware acquiring unit 313 and data selecting unit 315, wherein:
Adaptation point location unit 311, for intercepting the triggering being adapted in the running environment at place a little, to obtain asking the adaptation point of adaptation in running environment.
Hardware acquiring unit 313, for obtaining the adaptation corresponding hardware information data of point.
Data selecting unit 315, for carrying out being adapted to the selection of point data according to adaptation point and corresponding hardware information data, to obtain being adapted to point data.
Further, in one embodiment, as shown in figure 9, the data selecting unit 315 includes request of data subelement 3151 and receiving subelement 3153.
Request of data subelement 3151, for initiating data acquisition request according to adaptation point and corresponding hardware information data to the webserver.
Receiving subelement 3153, for receiving the adaptation point data that the webserver is returned according to data acquisition request.
The adaptation point data that wherein webserver is returned is corresponding with adaptation point, and the hardware information data being adapted in point data are consistent with the adaptation corresponding hardware information data of point.
In one embodiment, as shown in Figure 10, model acquisition module as above 350 includes that extraction unit 351, searching unit 353 and numerical value insert unit 355, wherein:
Extraction unit 351, for extracting model identification and adaptation value in adaptation point data.
Searching unit 353, for searching the corresponding adaptation model of model identification according to model identification in the abstract adaptation model of adaptation point association.
Numerical value inserts unit 355, for adaptation value to be inserted the key position left a blank in adaptation model.
In another embodiment, as shown in figure 11, device as above further comprises adaptation value generation module 410, data acquisition module 430 and data and form module 450, wherein:
Adaptation value generation module 410, for the adaptation corresponding adaptation value of point in the newly-increased running environment of hardware information data genaration according to newly-increased running environment;
Data acquisition module 430, by the hardware information data of the hardware information data acquisition adaptation point of newly-increased running environment, and obtains the corresponding model identification of adaptation model in the abstract adaptation model of adaptation point association, and adaptation model is for being adapted to the adaptation point;
Data form module 450, form the corresponding adaptation point data of adaptation point in newly-increased running environment for the hardware information data by being adapted to point, model identification and adaptation value.
Figure 12 shows the structure of a kind of electronic equipment provided in an embodiment of the present invention.The electronic equipment 500 is simply suitable for example of the invention for one, it is impossible to be considered any restriction there is provided the use range to the present invention.The electronic equipment 500 can not be construed to need to rely on or the combination with one or more part in the exemplary electronic equipment 500 for illustrating.
As shown in figure 12, electronic equipment 500 includes processor 510, memorizer 520 and system bus 530.To be connected on system bus 530 including the various assemblies including memorizer 520 and processor 510.Processor 510 is one and performs the hardware of computer program instructions for by arithmetic sum logical operationss basic in computer system.Memorizer 520 is a physical equipment for being used for temporarily or permanently storing computer program or data.
Wherein, several adaptation point datas and adaptation model is stored in memorizer 520;Processor 510 will perform the programmed instruction in memorizer 520, be adapted to triggering a little in intercepting running environment.
Portable terminal device 500 also includes various input interfaces 570, input equipment 540, to realize the input of various operations.Wherein, the input equipment 540 can be at least one such as Touch screen, button, keyboard and mouse.
Electronic equipment 500 also includes storage device 580, and storage device 580 can be selected from various computer-readable recording mediums, and computer-readable medium refers to any available medium that can be conducted interviews, including mobile and fixed two media.For example, computer-readable medium, including but not limited to flash memory(Miniature SD card), CD-ROM, digital versatile disc(DVD)Or other CDs, cartridge, tape storage or other storage devices or can be used to store information needed addressable any other medium.
As described in detail above, the electronic equipment 500 for being suitable for the present invention will perform the assigned operation for realizing many entries switchings, i.e., by the programmed instruction in 510 run memory 120 of processor, to realize the adaptation of running environment in electronic equipment 500.
Additionally, the present invention also can equally be realized with reference to software instruction by hardware circuit or hardware circuit, therefore, realize that the present invention is not limited to any specific hardware circuit, software and a combination of both.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be completed by hardware, the hardware of correlation can also be instructed by program to complete, described program can be stored in a kind of computer-readable recording medium, storage medium mentioned above can be read only memory, disk or CD etc..
Although describing the present invention with reference to several exemplary embodiments, it is to be understood that, term used is explanation and exemplary, and nonrestrictive term.As the present invention can be embodied as in a variety of forms without deviating from the spiritual or substantive of invention, it is to be understood that, above-mentioned embodiment is not limited to any aforesaid details, and should widely explain in the spirit and scope limited by appended claims, therefore the whole changes in falling into claim or its equivalent scope and remodeling all should be appended claims and covered.

Claims (10)

1. it is a kind of realize running environment adaptation method, it is characterised in that include:
Triggering a little is adapted in the running environment for intercepting place, and according to the adaptation point and the running environment acquisition adaptation point data of triggering, the adaptation point is matched with the difference between each running environment;
The corresponding adaptation model of the adaptation point data is searched, the adaptation value in the adaptation point data is inserted into the adaptation model;
The triggering operation adaptation model, to carry out being adapted to adaptation a little described in the running environment.
2. method according to claim 1, it is characterised in that be adapted to triggering a little in the running environment for intercepting place, includes the step of obtain the adaptation point and the running environment corresponding adaptation point data:
Triggering a little is adapted in the running environment for intercepting place, to obtain asking the adaptation point being adapted in the running environment;
Obtain the corresponding hardware information data of the adaptation point;
Carry out being adapted to the selection of point data according to the adaptation point and corresponding hardware information data, to obtain the adaptation point data.
3. method according to claim 2, it is characterised in that described to carry out being adapted to a selection for point data according to the adaptation point and corresponding hardware information data, includes the step of to obtain the adaptation point data:
Data acquisition request is initiated to the webserver according to the adaptation point and corresponding hardware information data;
Receive the adaptation point data that the webserver is returned according to the data acquisition request;
Wherein, the adaptation point data that the webserver is returned is corresponding with the adaptation point, and the hardware information data in the adaptation point data are consistent with the corresponding hardware information data of the adaptation point.
4. method according to claim 1, it is characterised in that the corresponding adaptation model of the lookup adaptation point data, includes the step of the adaptation value in the adaptation point data is inserted the adaptation model:
Extract the model identification and adaptation value in the adaptation point data;
The corresponding adaptation model of the model identification is searched according to the model identification in the abstract adaptation model of the adaptation point association;
The adaptation value is inserted the key position left a blank in the adaptation model.
5. method according to claim 1, it is characterised in that methods described also includes:
Increase the adaptation corresponding adaptation value of point in running environment according to the hardware information data genaration of newly-increased running environment newly;
By the hardware information data of the hardware information data acquisition adaptation point of newly-increased running environment, and the corresponding model identification of adaptation model is obtained in the abstract adaptation model of the adaptation point association, the adaptation model is for being adapted to the adaptation point;
The corresponding adaptation point data of adaptation point in the newly-increased running environment is formed by the hardware information data of the adaptation point, model identification and adaptation value.
6. it is a kind of realize running environment adaptation device, it is characterised in that include:
Module is intercepted in triggering, for intercepting the triggering being adapted in the running environment at place a little, is obtained and is adapted to point data according to the adaptation point of triggering and running environment, and the adaptation point is matched with the difference between each running environment;
Adaptation value in the adaptation point data, for searching the corresponding adaptation model of the adaptation point data, is inserted the adaptation model by model acquisition module;
Model running module, for triggering the operation adaptation model, to carry out being adapted to adaptation a little described in the running environment.
7. device according to claim 6, it is characterised in that module is intercepted in the triggering to be included:
Adaptation point location unit, for intercepting the triggering being adapted in the running environment at place a little, to obtain asking the adaptation point of adaptation in the running environment;
Hardware acquiring unit, for obtaining the corresponding hardware information data of the adaptation point;
Data selecting unit, for carrying out being adapted to the selection of point data according to the adaptation point and corresponding hardware information data, to obtain the adaptation point data.
8. device according to claim 7, it is characterised in that the data selecting unit includes:
Request of data subelement, for initiating data acquisition request according to the adaptation point and corresponding hardware information data to the webserver;
Receiving subelement, for receiving the adaptation point data that the webserver is returned according to the data acquisition request;
Wherein, the adaptation point data that the webserver is returned is corresponding with the adaptation point, and the hardware information data in the adaptation point data are consistent with the corresponding hardware information data of the adaptation point.
9. device according to claim 6, it is characterised in that the model acquisition module includes:
Extraction unit, for extracting model identification and adaptation value in the adaptation point data;
Searching unit, for searching the corresponding adaptation model of the model identification according to the model identification in the abstract adaptation model of the adaptation point association;
Numerical value inserts unit, for the adaptation value is inserted the key position left a blank in the adaptation model.
10. device according to claim 6, it is characterised in that described device also includes:
Adaptation value generation module, for increasing the corresponding adaptation value of adaptation point in running environment newly according to the hardware information data genaration of newly-increased running environment;
Data acquisition module, by the hardware information data of the hardware information data acquisition adaptation point of newly-increased running environment, and obtaining the corresponding model identification of adaptation model in the abstract adaptation model of the adaptation point association, the adaptation model is for being adapted to the adaptation point;
Data form module, for forming the corresponding adaptation point data of adaptation point in the newly-increased running environment by the hardware information data of the adaptation point, model identification and adaptation value.
CN201510572326.6A 2015-09-09 2015-09-09 Method and device for realizing running environment adaptation Active CN106528057B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510572326.6A CN106528057B (en) 2015-09-09 2015-09-09 Method and device for realizing running environment adaptation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510572326.6A CN106528057B (en) 2015-09-09 2015-09-09 Method and device for realizing running environment adaptation

Publications (2)

Publication Number Publication Date
CN106528057A true CN106528057A (en) 2017-03-22
CN106528057B CN106528057B (en) 2020-07-10

Family

ID=58345716

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510572326.6A Active CN106528057B (en) 2015-09-09 2015-09-09 Method and device for realizing running environment adaptation

Country Status (1)

Country Link
CN (1) CN106528057B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240681A (en) * 2018-09-26 2019-01-18 郑州云海信息技术有限公司 A kind of model generating method, device and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179573A (en) * 2007-10-24 2008-05-14 中兴通讯股份有限公司 Method of implementing online dynamic updating server software configuration information
CN102929650A (en) * 2012-07-11 2013-02-13 北京金山安全软件有限公司 Method and device for independently configuring application program running environment and mobile device
CN104063239A (en) * 2013-03-22 2014-09-24 腾讯科技(深圳)有限公司 Application program update method of mobile terminal, server and client
CN104125206A (en) * 2013-04-27 2014-10-29 腾讯科技(深圳)有限公司 Client-side hardware environment adaption method, device, server and system
US20150045917A1 (en) * 2008-09-30 2015-02-12 Rockwell Automation Technologies, Inc. Remote object data property replication method and system
CN104423983A (en) * 2013-08-29 2015-03-18 国际商业机器公司 Method and device for developing, testing and deploying application

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179573A (en) * 2007-10-24 2008-05-14 中兴通讯股份有限公司 Method of implementing online dynamic updating server software configuration information
US20150045917A1 (en) * 2008-09-30 2015-02-12 Rockwell Automation Technologies, Inc. Remote object data property replication method and system
CN102929650A (en) * 2012-07-11 2013-02-13 北京金山安全软件有限公司 Method and device for independently configuring application program running environment and mobile device
CN104063239A (en) * 2013-03-22 2014-09-24 腾讯科技(深圳)有限公司 Application program update method of mobile terminal, server and client
CN104125206A (en) * 2013-04-27 2014-10-29 腾讯科技(深圳)有限公司 Client-side hardware environment adaption method, device, server and system
CN104423983A (en) * 2013-08-29 2015-03-18 国际商业机器公司 Method and device for developing, testing and deploying application

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240681A (en) * 2018-09-26 2019-01-18 郑州云海信息技术有限公司 A kind of model generating method, device and computer readable storage medium

Also Published As

Publication number Publication date
CN106528057B (en) 2020-07-10

Similar Documents

Publication Publication Date Title
CN104793946B (en) Dispositions method and system are applied based on cloud computing platform
TWI581188B (en) The way to load the driver and the embedded device
CN104885055A (en) Method and device for application data synchronization
CN106610839B (en) Method for issuing upgrade package, lightweight upgrade method, device and system
US11086638B2 (en) Method and apparatus for loading application
CN103077043B (en) A kind of method of quick Start-up and operating performance Linux
CN103559065B (en) Method and system for OTA (Over-the-Air Technology) upgrade
CN104572672A (en) Heterogeneous database synchronization method and application system
CN101308471B (en) Method and device for data restoration
CN105094707A (en) Method and device for storing and reading data
CN103902265A (en) Application implementation method and application implementation device
CN112099800B (en) Code data processing method, device and server
WO2017045491A1 (en) Method and system for upgrading sqlite3 embedded database
CN106484719B (en) Method and terminal for expanding mobile phone storage
CN104268229A (en) Resource obtaining method and device based on multi-process browser
CN105824678A (en) Method and device for installing operating system
CN105183760A (en) Webpage component loading method and apparatus
CN103902562A (en) Method and device for upgrading terminal databases
CN110333876A (en) A kind of data clearing method and control equipment
CN103927201A (en) Method and device for updating game files
CN104461621A (en) Attribute information updating method and device
CN114706533A (en) Multi-file multi-stage starting and loading method and device based on GPT partition table
CN105119944A (en) Application starting method and related device
CN106528057A (en) Method and apparatus for realizing running environment adaptation
CN107153561A (en) The method of firmware, apparatus and system in a kind of renewal expansion card

Legal Events

Date Code Title Description
C06 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