CN105204916A - Environment variable-based project process operation method and device - Google Patents

Environment variable-based project process operation method and device Download PDF

Info

Publication number
CN105204916A
CN105204916A CN201510726660.2A CN201510726660A CN105204916A CN 105204916 A CN105204916 A CN 105204916A CN 201510726660 A CN201510726660 A CN 201510726660A CN 105204916 A CN105204916 A CN 105204916A
Authority
CN
China
Prior art keywords
project process
environment
configuration file
variable values
context variable
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
CN201510726660.2A
Other languages
Chinese (zh)
Other versions
CN105204916B (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 Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510726660.2A priority Critical patent/CN105204916B/en
Publication of CN105204916A publication Critical patent/CN105204916A/en
Application granted granted Critical
Publication of CN105204916B publication Critical patent/CN105204916B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses an environment variable-based project process operation method and device. A project process is suitable for being operated under multiple operating environments. The environment variable-based project process operation method comprises the steps of pre-configuring a configuration file corresponding to each operating environment; when the use of the project process is started, a written environment variable value is obtained, and the configuration file corresponding to the environment variable value is loaded; according to configuration information recorded by the loaded configuration file, injecting a corresponding example to operate the project process. According to the scheme, the project process can be conveniently operated under the multiple operating environments, and manual modification on corresponding codes of the project process according to different operating environments is not needed, thus reducing labor cost and time cost for code modification and avoiding problems caused by incorrect code modification.

Description

Based on project process operation method and the device of environmental variance
Technical field
The present invention relates to Internet technical field, be specifically related to a kind of project process operation method based on environmental variance and device.
Background technology
In the prior art, most project process is only applicable to run under specific running environment, when needing when running under the running environment of project process at other, due to the difference of running environment, mistake may be there is in operational process, even may occur running failed problem.Such as, certain project process is only applicable to run under a windows environment, if when wanting this project process to run under Linux environment, the resource used due to Windows environment and Linux environment is not exclusively the same, therefore likely there will be and runs failed problem.
In order to enable project process run under other running environment, technological development personnel are just needed to carry out manual modification according to concrete running environment to the corresponding code of project process.But this amendment can bring very large workload to technological development personnel, and once some code revision is not in place or inaccurate, project process can be caused to run unsuccessfully.After running unsuccessfully, technological development personnel also need to drop into more energy and go to debug bug, cause the waste of human cost and time cost, thus cause project development high cost.
How to make project process can successful operation under multiple running environment easily, become a problem needing to solve.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of overcoming the problems referred to above or the project process operation method based on environmental variance solved the problem at least in part and device.
According to an aspect of the present invention, provide a kind of project process operation method based on environmental variance, project process is applicable to run under multiple running environment, and the method comprises:
The configuration file that pre-configured often kind of running environment is corresponding;
When project process is enabled, obtain the context variable values of write, the configuration file that loading environment variate-value is corresponding;
According to the configuration information of loaded configuration file record, inject corresponding example to run project process.
According to a further aspect in the invention, provide a kind of project process running gear based on environmental variance, project process is applicable to run under multiple running environment, and this device comprises:
Configuration module, is suitable for the configuration file that pre-configured often kind of running environment is corresponding;
Load-on module, is suitable for when project process is enabled, and obtains the context variable values of write, the configuration file that loading environment variate-value is corresponding;
Injection module, is suitable for the configuration information according to loaded configuration file record, injects corresponding example to run project process.
According to technical scheme provided by the invention, the configuration file that pre-configured often kind of running environment is corresponding, when project process is enabled, obtain the context variable values of write, the configuration file that loading environment variate-value is corresponding, then according to the configuration information of loaded configuration file record, corresponding example is injected to run project process.Technical scheme provided by the invention is according to obtained context variable values, the configuration file that loading environment variate-value is corresponding, make project process can run under multiple running environment easily, without the need to carrying out manual modification according to different running environment to the corresponding code of project process, thus decrease the human cost of amendment input by code and time cost, it also avoid the problem brought because amendment code error.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows according to an embodiment of the invention based on the schematic flow sheet of the project process operation method of environmental variance;
Fig. 2 shows in accordance with another embodiment of the present invention based on the schematic flow sheet of the project process operation method of environmental variance;
Fig. 3 shows according to an embodiment of the invention based on the illustrative view of functional configuration of the project process running gear of environmental variance;
Fig. 4 shows in accordance with another embodiment of the present invention based on the illustrative view of functional configuration of the project process running gear of environmental variance.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Fig. 1 shows according to an embodiment of the invention based on the schematic flow sheet of the project process operation method of environmental variance, and wherein, project process is applicable to run under multiple running environment, and as shown in Figure 1, the method comprises the steps:
Step S100, the configuration file that pre-configured often kind of running environment is corresponding.
In order to make project process can run under multiple running environment, in the step s 100, need according to different running environment, the configuration file that pre-configured often kind of running environment is corresponding.Such as, in the process of software development, software test and software setup, the running environment of the server used is different.Therefore, running environment can be specially: development environment, test environment or production environment, and development environment also can be specially: Windows development environment or Linux development environment.According to the actual requirements, those skilled in the art also can arrange other running environment, do not limit herein.
Step S101, when project process is enabled, obtains the context variable values of write, the configuration file that loading environment variate-value is corresponding.
After step S100 completes configuration file corresponding to pre-configured often kind of running environment, when project process is enabled, perform step S101, obtain the context variable values of write, the configuration file that loading environment variate-value is corresponding.Wherein, the context variable values write when project process is enabled is provided by the server for running project process, and particularly, the context variable values write when project process is enabled depends on the running environment of server.Such as, the context variable values that development environment is corresponding can be developing; The corresponding context variable values of test environment can be testing; The corresponding context variable values of production environment can be producing.And when development environment specifically comprises Windows development environment and Linux development environment, the corresponding context variable values of Windows development environment can be developing1, the corresponding context variable values of Linux development environment can be developing2.
In addition, because the running environment of server generally can not change, therefore only a context variable values can be obtained, later when project process is enabled, directly according to the context variable values that first time obtains, the configuration file that loading environment variate-value is corresponding.
Step S102, according to the configuration information of loaded configuration file record, injects corresponding example to run project process.
After step S101 is loaded with configuration file corresponding to context variable values, step S102 just according to the configuration information of loaded configuration file record, can inject corresponding example to run project process.
According to the project process operation method based on environmental variance that the present embodiment provides, the configuration file that pre-configured often kind of running environment is corresponding, when project process is enabled, obtain the context variable values of write, the configuration file that loading environment variate-value is corresponding, then according to the configuration information of loaded configuration file record, corresponding example is injected to run project process.Technical scheme provided by the invention is according to obtained context variable values, the configuration file that loading environment variate-value is corresponding, make project process can run under multiple running environment easily, without the need to carrying out manual modification according to different running environment to the corresponding code of project process, thus decrease the human cost of amendment input by code and time cost, it also avoid the problem brought because amendment code is incorrect.
Fig. 2 shows in accordance with another embodiment of the present invention based on the schematic flow sheet of the project process operation method of environmental variance, and wherein, project process is applicable to run under multiple running environment, and as shown in Figure 2, the method comprises the steps:
Step S200, the configuration file that pre-configured often kind of running environment is corresponding.
In order to make project process can run under multiple running environment, in step s 200, need according to different running environment, the configuration file that pre-configured often kind of running environment is corresponding.Wherein, running environment can be specially: development environment, test environment or production environment, and development environment also can be specially: Windows development environment or Linux development environment.According to the actual requirements, those skilled in the art also can arrange other running environment, do not limit herein.
Such as, in order to make project process can run under development environment and test environment, need configuration file that pre-configured development environment is corresponding and configuration file corresponding to test environment in step s 200.
Step S201, pre-defined proxy class.
In order to inject corresponding example according to the configuration information of loaded configuration file record easily, before project process is enabled, also need pre-defined proxy class, this proxy class is for calling the interface of example to inject example.Wherein, step S200 and step S201 can carry out simultaneously, also first can perform step S200, then perform step S201.
Step S202, when project process is enabled, obtains the context variable values of write, the configuration file that loading environment variate-value is corresponding.
After completing configuration file corresponding to pre-configured often kind of running environment and pre-defined proxy class, when project process is enabled, perform step S202, obtain the context variable values of write, the configuration file that loading environment variate-value is corresponding.Wherein, the context variable values write when project process is enabled is provided by the server for running project process, and particularly, the context variable values write when project process is enabled depends on the running environment of server.
Such as, the running environment of the server of operation project process is Windows development environment, the context variable values corresponding with Windows development environment is developing1, the configuration file that pre-configured Windows development environment is corresponding in step S200 and step S201 and pre-defined proxy class, so when project process is enabled, perform step S202, obtain the context variable values of write, load the configuration file that this context variable values is corresponding, namely load configuration file corresponding to Windows development environment.
Step S203, according to the configuration information of loaded configuration file record, is called the interface of corresponding example to inject corresponding example to run project process by proxy class.
Suppose, project process is developed by Java language, after step S202 is loaded with configuration file corresponding to context variable values, (reversion is controlled by the IOC of the Spring in Java framework, InversionofControl) mechanism, according to the configuration information of loaded configuration file record, called the interface of corresponding example by proxy class to inject corresponding example to run project process.
Such as, the running environment of the server of operation project process is Windows development environment, when project process is enabled, step S202 loads configuration file corresponding to the context variable values that obtains, namely configuration file corresponding to Windows development environment is loaded, then perform step S203, according to the configuration information of loaded configuration file record, called the interface of corresponding example by proxy class to inject corresponding example to run project process.Suppose the configuration information according to configuration file record corresponding to Windows development environment, when running to the subprocess 1 in project process, need use-case 1, then, when running to the subprocess 1 in project process, in step S203, called the interface of example 1 by proxy class to inject example 1.
According to the project process operation method based on environmental variance that the present embodiment provides, the configuration file that pre-configured often kind of running environment is corresponding and pre-defined proxy class, when project process is enabled, obtain the context variable values of write, the configuration file that loading environment variate-value is corresponding, then according to the configuration information of loaded configuration file record, the interface of corresponding example is called by proxy class to inject corresponding example to run project process.Technical scheme provided by the invention is not only according to obtained context variable values, and the configuration file that loading environment variate-value is corresponding, makes project process can run under multiple running environment easily, and achieve the injection of example easily by proxy class.Technical scheme provided by the invention is without the need to carrying out manual modification according to different running environment to the corresponding code of project process in addition, thus decrease the human cost of amendment input by code and time cost, it also avoid the problem brought because amendment code is incorrect.
Fig. 3 shows according to an embodiment of the invention based on the illustrative view of functional configuration of the project process running gear of environmental variance, wherein, project process is applicable to run under multiple running environment, and as shown in Figure 3, this device comprises: configuration module 310, load-on module 320 and injection module 330.
Configuration module 310, is suitable for the configuration file that pre-configured often kind of running environment is corresponding.
In order to make project process can run under multiple running environment, configuration module 310 needs according to different running environment, the configuration file that pre-configured often kind of running environment is corresponding.Wherein, running environment can be specially: development environment, test environment or production environment, and development environment also can be specially: Windows development environment or Linux development environment.According to the actual requirements, those skilled in the art also can arrange other running environment, do not limit herein.
Load-on module 320, is suitable for when project process is enabled, and obtains the context variable values of write, the configuration file that loading environment variate-value is corresponding.
After the configuration file that the pre-configured often kind of running environment of configuration module 310 is corresponding, when project process is enabled, trigger load-on module 320, obtain the context variable values of write, the configuration file that loading environment variate-value is corresponding.Wherein, the context variable values write when project process is enabled is provided by the server for running project process, and particularly, the context variable values write when project process is enabled depends on the running environment of server.
Injection module 330, is suitable for the configuration information according to loaded configuration file record, injects corresponding example to run project process.
After load-on module 320 is loaded with configuration file corresponding to context variable values, injection module 330, according to the configuration information of loaded configuration file record, injects corresponding example to run project process.
According to the project process running gear based on environmental variance that the present embodiment provides, by the configuration file that the pre-configured often kind of running environment of configuration module is corresponding, when project process is enabled, the context variable values of write is obtained by load-on module, the configuration file that loading environment variate-value is corresponding, then injection module is according to the configuration information of loaded configuration file record, injects corresponding example to run project process.Technical scheme provided by the invention is according to obtained context variable values, the configuration file that loading environment variate-value is corresponding, make project process can run under multiple running environment easily, without the need to carrying out manual modification according to different running environment to the corresponding code of project process, thus decrease the human cost of amendment input by code and time cost, it also avoid the problem brought because amendment code is incorrect.
Fig. 4 shows in accordance with another embodiment of the present invention based on the illustrative view of functional configuration of the project process running gear of environmental variance, wherein, project process is applicable to run under multiple running environment, as shown in Figure 4, this device comprises: configuration module 410, definition module 420, load-on module 430 and injection module 440.
Configuration module 410, is suitable for the configuration file that pre-configured often kind of running environment is corresponding.
In order to make project process can run under multiple running environment, configuration module 410 needs according to different running environment, the configuration file that pre-configured often kind of running environment is corresponding.Wherein, running environment can be specially: development environment, test environment or production environment, and development environment also can be specially: Windows development environment or Linux development environment.Such as, in order to make project process can run under development environment and test environment, configuration module 410 needs configuration file that pre-configured development environment is corresponding and configuration file corresponding to test environment.According to the actual requirements, those skilled in the art also can arrange other running environment, do not limit herein.
Definition module 420, is suitable for before project process is enabled, pre-defined proxy class.
In order to inject corresponding example according to the configuration information of loaded configuration file record easily, before project process is enabled, also need definition module 420 to pre-define proxy class, this proxy class is for calling the interface of example to inject example.Wherein, configuration module 410 and definition module 420 can trigger simultaneously, also can first trigger configuration module 410, then trigger definition module 420.
Load-on module 430, is suitable for when project process is enabled, and obtains the context variable values of write, the configuration file that loading environment variate-value is corresponding.
After configuration file corresponding to the pre-configured often kind of running environment of configuration module 410 and definition module 420 have pre-defined proxy class, when project process is enabled, trigger load-on module 430, obtain the context variable values of write, the configuration file that loading environment variate-value is corresponding.Wherein, the context variable values write when project process is enabled is provided by the server for running project process, and particularly, the context variable values write when project process is enabled depends on the running environment of server.
Such as, the running environment of the server of operation project process is Windows development environment, the context variable values corresponding with Windows development environment is developing1, the configuration file that configuration module 410 is pre-configured Windows development environment is corresponding, and definition module 420 has pre-defined proxy class, so when project process is enabled, trigger load-on module 430, obtain the context variable values of write, load the configuration file that this context variable values is corresponding, namely load configuration file corresponding to Windows development environment.
Injection module 440, is suitable for the configuration information according to loaded configuration file record, is called the interface of corresponding example to inject corresponding example to run project process by proxy class.
Suppose, project process is developed by Java language, after load-on module 430 is loaded with configuration file corresponding to context variable values, by the IOC mechanism of the Spring in Java framework, injection module 440, according to the configuration information of loaded configuration file record, is called the interface of corresponding example to inject corresponding example to run project process by proxy class.
Such as, the running environment of the server of operation project process is Windows development environment, when project process is enabled, load-on module 430 is loaded with configuration file corresponding to obtained context variable values, namely configuration file corresponding to Windows development environment is loaded, then injection module 440 is according to the configuration information of loaded configuration file record, is called the interface of corresponding example to inject corresponding example to run project process by proxy class.Suppose the configuration information according to configuration file record corresponding to Windows development environment, when running to the subprocess 1 in project process, need use-case 1, then when running to the subprocess 1 in project process, injection module 440, according to the configuration information of configuration file record corresponding to Windows development environment, is called the interface of example 1 to inject example 1 by proxy class.
According to the project process running gear based on environmental variance that the present embodiment provides, by the configuration file that the pre-configured often kind of running environment of configuration module is corresponding, and pre-define proxy class by definition module, when project process is enabled, the context variable values of write is obtained by load-on module, the configuration file that loading environment variate-value is corresponding, then injection module is according to the configuration information of loaded configuration file record, is called the interface of corresponding example to inject corresponding example to run project process by proxy class.Technical scheme provided by the invention is not only according to obtained context variable values, and the configuration file that loading environment variate-value is corresponding, makes project process can run under multiple running environment easily, and achieve the injection of example easily by proxy class.Technical scheme provided by the invention is without the need to carrying out manual modification according to different running environment to the corresponding code of project process in addition, thus decrease the human cost of amendment input by code and time cost, it also avoid the problem brought because amendment code is incorrect.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
The invention discloses:
A1, a kind of project process operation method based on environmental variance, described project process is applicable to run under multiple running environment, and described method comprises:
The configuration file that pre-configured often kind of running environment is corresponding;
When project process is enabled, obtain the context variable values of write, load the configuration file that described context variable values is corresponding;
According to the configuration information of loaded configuration file record, inject corresponding example to run described project process.
A2, method according to A1, the context variable values write when project process is enabled is provided by the server for running described project process.
A3, method according to A2, the context variable values write when project process is enabled depends on the running environment of described server.
A4, method according to any one of A1-A3, also comprise: before project process is enabled, pre-defined proxy class;
The described configuration information according to loaded configuration file record, inject corresponding example to be specially to run described project process: according to the configuration information of loaded configuration file record, called the interface of corresponding example by described proxy class to inject corresponding example to run described project process.
A5, method according to any one of A1-A4, described running environment is specially: development environment, test environment or production environment.
A6, method according to A5, described development environment is specially: Windows development environment or Linux development environment.
B7, a kind of project process running gear based on environmental variance, described project process is applicable to run under multiple running environment, and described device comprises:
Configuration module, is suitable for the configuration file that pre-configured often kind of running environment is corresponding;
Load-on module, is suitable for when project process is enabled, and obtains the context variable values of write, loads the configuration file that described context variable values is corresponding;
Injection module, is suitable for the configuration information according to loaded configuration file record, injects corresponding example to run described project process.
B8, device according to B7, the context variable values write when project process is enabled is provided by the server for running described project process.
B9, device according to B8, the context variable values write when project process is enabled depends on the running environment of described server.
B10, device according to any one of B7-B9, also comprise: definition module, be suitable for before project process is enabled, pre-defined proxy class;
Described injection module is further adapted for: according to the configuration information of loaded configuration file record, is called the interface of corresponding example to inject corresponding example to run described project process by described proxy class.
B11, device according to any one of B7-B10, described running environment is specially: development environment, test environment or production environment.
B12, device according to B11, described development environment is specially: Windows development environment or Linux development environment.

Claims (10)

1., based on a project process operation method for environmental variance, described project process is applicable to run under multiple running environment, and described method comprises:
The configuration file that pre-configured often kind of running environment is corresponding;
When project process is enabled, obtain the context variable values of write, load the configuration file that described context variable values is corresponding;
According to the configuration information of loaded configuration file record, inject corresponding example to run described project process.
2. method according to claim 1, the context variable values write when project process is enabled is provided by the server for running described project process.
3. method according to claim 2, the context variable values write when project process is enabled depends on the running environment of described server.
4. the method according to any one of claim 1-3, also comprises: before project process is enabled, pre-defined proxy class;
The described configuration information according to loaded configuration file record, inject corresponding example to be specially to run described project process: according to the configuration information of loaded configuration file record, called the interface of corresponding example by described proxy class to inject corresponding example to run described project process.
5. the method according to any one of claim 1-4, described running environment is specially: development environment, test environment or production environment.
6. method according to claim 5, described development environment is specially: Windows development environment or Linux development environment.
7., based on a project process running gear for environmental variance, described project process is applicable to run under multiple running environment, and described device comprises:
Configuration module, is suitable for the configuration file that pre-configured often kind of running environment is corresponding;
Load-on module, is suitable for when project process is enabled, and obtains the context variable values of write, loads the configuration file that described context variable values is corresponding;
Injection module, is suitable for the configuration information according to loaded configuration file record, injects corresponding example to run described project process.
8. device according to claim 7, the context variable values write when project process is enabled is provided by the server for running described project process.
9. device according to claim 8, the context variable values write when project process is enabled depends on the running environment of described server.
10. the device according to any one of claim 7-9, also comprises: definition module, is suitable for before project process is enabled, pre-defined proxy class;
Described injection module is further adapted for: according to the configuration information of loaded configuration file record, is called the interface of corresponding example to inject corresponding example to run described project process by described proxy class.
CN201510726660.2A 2015-10-30 2015-10-30 Project process operation method and device based on environmental variance Active CN105204916B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510726660.2A CN105204916B (en) 2015-10-30 2015-10-30 Project process operation method and device based on environmental variance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510726660.2A CN105204916B (en) 2015-10-30 2015-10-30 Project process operation method and device based on environmental variance

Publications (2)

Publication Number Publication Date
CN105204916A true CN105204916A (en) 2015-12-30
CN105204916B CN105204916B (en) 2019-03-01

Family

ID=54952616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510726660.2A Active CN105204916B (en) 2015-10-30 2015-10-30 Project process operation method and device based on environmental variance

Country Status (1)

Country Link
CN (1) CN105204916B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020877A (en) * 2016-05-16 2016-10-12 乐视控股(北京)有限公司 Automatic update method and apparatus for system environment configuration
CN106681861A (en) * 2016-12-08 2017-05-17 杭州销冠网络科技有限公司 New environment isolation configuration data management method and system
CN106874163A (en) * 2016-12-29 2017-06-20 广州华多网络科技有限公司 A kind of method and system for showing software error code information
CN107203474A (en) * 2017-06-13 2017-09-26 上海携程国际旅行社有限公司 A kind of automated testing method for supporting multi-environment
CN109471797A (en) * 2018-10-23 2019-03-15 深圳市佰仟金融服务有限公司 A kind of environment configurations management method, system and terminal device
CN109976730A (en) * 2017-12-26 2019-07-05 航天信息股份有限公司 A kind of method and device of data transmitting
CN110704041A (en) * 2019-10-10 2020-01-17 达飞云贷科技(北京)有限公司 Software development method and device
CN111142928A (en) * 2019-12-05 2020-05-12 福建天泉教育科技有限公司 Method and terminal for automatically constructing front-end project
CN111949513A (en) * 2020-07-09 2020-11-17 中国建设银行股份有限公司 Configuration file loading method and device, electronic equipment and readable storage device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566992A (en) * 2010-12-17 2012-07-11 卓望数码技术(深圳)有限公司 Dependency injection method and dependency injection device based on system running
US20130298141A1 (en) * 2012-05-02 2013-11-07 Motorola Mobility, Inc. Method and Apparatus for Providing Contextual Information Between Operating System Environments
CN104539458A (en) * 2014-12-30 2015-04-22 深圳市兰丁科技有限公司 Operating environment self-adapting method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566992A (en) * 2010-12-17 2012-07-11 卓望数码技术(深圳)有限公司 Dependency injection method and dependency injection device based on system running
US20130298141A1 (en) * 2012-05-02 2013-11-07 Motorola Mobility, Inc. Method and Apparatus for Providing Contextual Information Between Operating System Environments
CN104539458A (en) * 2014-12-30 2015-04-22 深圳市兰丁科技有限公司 Operating environment self-adapting method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020877A (en) * 2016-05-16 2016-10-12 乐视控股(北京)有限公司 Automatic update method and apparatus for system environment configuration
CN106681861A (en) * 2016-12-08 2017-05-17 杭州销冠网络科技有限公司 New environment isolation configuration data management method and system
CN106874163A (en) * 2016-12-29 2017-06-20 广州华多网络科技有限公司 A kind of method and system for showing software error code information
CN106874163B (en) * 2016-12-29 2020-09-11 广州华多网络科技有限公司 Method and system for displaying software error code information
CN107203474A (en) * 2017-06-13 2017-09-26 上海携程国际旅行社有限公司 A kind of automated testing method for supporting multi-environment
CN109976730A (en) * 2017-12-26 2019-07-05 航天信息股份有限公司 A kind of method and device of data transmitting
CN109471797A (en) * 2018-10-23 2019-03-15 深圳市佰仟金融服务有限公司 A kind of environment configurations management method, system and terminal device
CN110704041A (en) * 2019-10-10 2020-01-17 达飞云贷科技(北京)有限公司 Software development method and device
CN111142928A (en) * 2019-12-05 2020-05-12 福建天泉教育科技有限公司 Method and terminal for automatically constructing front-end project
CN111949513A (en) * 2020-07-09 2020-11-17 中国建设银行股份有限公司 Configuration file loading method and device, electronic equipment and readable storage device

Also Published As

Publication number Publication date
CN105204916B (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN105204916A (en) Environment variable-based project process operation method and device
KR101699981B1 (en) Memory optimization of virtual machine code by partitioning extraneous information
KR102341154B1 (en) High-speed application for installation on mobile devices for permitting remote configuration of such mobile devices
CN107451474B (en) Software bug fixing method and device for terminal
US20090164973A1 (en) Contract programming for code error reduction
CN104915595A (en) Virtualization bug fixing method and device through cloud platform
CN103246578A (en) Method and browser for processing collapse of application software
CN105183484A (en) Method and device for compatibility of multi-version application programming interface
CN105573915A (en) Test method and device based on code coverage rate
CN106681783A (en) Detection method and system for SVN code
CN106095501A (en) A kind of application section arranging method and device
CN105389262A (en) Method and device for generating test suggestions in allusion to interface tests
US10310961B1 (en) Cognitive dynamic script language builder
CN106933591A (en) The method and device that code merges
EP3380899B1 (en) Program randomization for cyber-attack resilient control in programmable logic controllers
CN105677394A (en) Method and apparatus for upgrading application on terminal device
CN102880473A (en) Method and device for task execution based on quartz framework
CN111459924A (en) Data acquisition method, system, electronic device, and medium
CN103530155A (en) Method and device for installing application program
US9710360B2 (en) Optimizing error parsing in an integrated development environment
CN115952089A (en) Software automation unit testing method and device, server and storage medium
CN115686462A (en) React-Native based engineering architecture method and system
CN104699618A (en) Method and device used for automatically testing high-privilege progress by designated user
CN113126998B (en) Incremental source code acquisition method and device, electronic equipment and storage medium
CN102902564A (en) Method and device for installing patches

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220726

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right