CN105204916B - Project process operation method and device based on environmental variance - Google Patents
Project process operation method and device based on environmental variance Download PDFInfo
- Publication number
- CN105204916B CN105204916B CN201510726660.2A CN201510726660A CN105204916B CN 105204916 B CN105204916 B CN 105204916B CN 201510726660 A CN201510726660 A CN 201510726660A CN 105204916 B CN105204916 B CN 105204916B
- Authority
- CN
- China
- Prior art keywords
- project process
- environment
- configuration file
- running
- variable values
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The invention discloses a kind of project process operation method and device based on environmental variance, project process is suitable for running under a variety of running environment, wherein the project process operation method based on environmental variance includes: to be pre-configured with the corresponding configuration file of every kind of running environment;When project process enables, the context variable values of write-in, the corresponding configuration file of loading environment variate-value are obtained;According to the configuration information of the configuration file record loaded, corresponding example is injected to run project process.This programme run project process can under a variety of running environment, without carrying out manual modification to the corresponding code of project process according to different running environment, to reduce human cost and time cost input by modification code, also avoid because modifying the problem of bringing due to code is incorrect.
Description
Technical field
The present invention relates to Internet technical fields, and in particular to a kind of project process operation method based on environmental variance and
Device.
Background technique
In the prior art, most of project process is only applicable to run under specific running environment, when need by
When project process is run under other running environment, due to the difference of running environment, may occur mistake in the process of running
Accidentally, in some instances it may even be possible to the problem of will appear operation failure.For example, some project process is only applicable to run under a windows environment,
If it is intended to being provided as used in Windows environment and Linux environment when the project process is run under Linux environment
As source is incomplete, it is therefore possible to will appear operation failure.
In order to enable project process to run under other running environment, it is necessary to which technological development personnel are according to specific
Running environment carries out manual modification to the corresponding code of project process.However this modification can be brought very greatly to technological development personnel
Workload, and once certain code revisions are not in place or inaccurate, will lead to the operation failure of project process.Fail in operation
Later, technological development personnel also need to put into more energy and remove debugging bug, cause the waste of human cost and time cost, thus
Cause project development cost excessively high.
How easily to make the project process can successful operation under a variety of running environment, it has also become one needs to solve
The problem of.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
State the project process operation method and device based on environmental variance of problem.
According to an aspect of the invention, there is provided a kind of project process operation method based on environmental variance, project into
Journey is suitable for running under a variety of running environment, this method comprises:
It is pre-configured with the corresponding configuration file of every kind of running environment;
When project process enables, the context variable values of write-in, the corresponding configuration file of loading environment variate-value are obtained;
According to the configuration information of the configuration file record loaded, corresponding example is injected to run project process.
According to another aspect of the present invention, provide a kind of project process running gear based on environmental variance, project into
Journey is suitable for running under a variety of running environment, which includes:
Configuration module, suitable for being pre-configured with the corresponding configuration file of every kind of running environment;
Loading module is suitable for obtaining the context variable values of write-in when project process enables, and loading environment variate-value is corresponding
Configuration file;
Injection module injects corresponding example suitable for the configuration information according to the configuration file record loaded to run
Project process.
The technical solution provided according to the present invention is pre-configured with the corresponding configuration file of every kind of running environment, project into
The Cheng Qi used time, the context variable values of write-in are obtained, then the corresponding configuration file of loading environment variate-value is matched according to what is loaded
The configuration information for setting file record injects corresponding example to run project process.Technical solution provided by the invention is according to institute
The context variable values of acquisition, the corresponding configuration file of loading environment variate-value, easily make project process in a variety of running environment
Under can run, without according to different running environment to the corresponding code of project process carry out manual modification, to reduce
Human cost and time cost input by code are modified, the problem of bringing because modifying code error is also avoided.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
The process that Fig. 1 shows the project process operation method according to an embodiment of the invention based on environmental variance is shown
It is intended to;
The process of Fig. 2 shows the in accordance with another embodiment of the present invention project process operation method based on environmental variance
Schematic diagram;
Fig. 3 shows the function knot of the project process running gear according to an embodiment of the invention based on environmental variance
Structure schematic diagram;
Fig. 4 shows the function of the project process running gear in accordance with another embodiment of the present invention based on environmental variance
Structural schematic diagram.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
The process that Fig. 1 shows the project process operation method according to an embodiment of the invention based on environmental variance is shown
It is intended to, wherein project process is suitable for running under a variety of running environment, as shown in Figure 1, this method comprises the following steps:
Step S100 is pre-configured with the corresponding configuration file of every kind of running environment.
In order to run project process can under a variety of running environment, in the step s 100, need according to different fortune
Row environment is pre-configured with the corresponding configuration file of every kind of running environment.For example, being produced in software development, software test and software
During, the running environment of used server is different.Therefore, running environment can specifically: exploitation environment, test
Environment or production environment, and develop environment and may further be embodied as: Windows develops environment or Linux exploitation environment.According to reality
Demand, the also settable other running environment of those skilled in the art, herein without limitation.
Step S101 obtains the context variable values of write-in, loading environment variate-value is corresponding to match when project process enables
Set file.
After step S100 completion is pre-configured with the corresponding configuration file of every kind of running environment, enabled in project process
When, step S101 is executed, the context variable values of write-in, the corresponding configuration file of loading environment variate-value are obtained.Wherein, in project
The context variable values that process is written when enabling are provided by the server for running project process, specifically, in project process
The context variable values being written when enabling depend on the running environment of server.For example, the corresponding environmental variance of exploitation environment
Value can be developing;Testing the corresponding context variable values of environment can be testing;The corresponding ring of production environment
Border variate-value can be producing.And when exploitation environment specifically includes Windows exploitation environment and Linux exploitation environment,
It can be developing1 that Windows, which develops the corresponding context variable values of environment, and Linux develops the corresponding environment of environment
Variate-value can be developing2.
In addition, can only obtain a secondary ring since the running environment of server will not change under normal circumstances
Border variate-value, later when project process enables, direct context variable values according to acquired in first time, loading environment variate-value
Corresponding configuration file.
Step S102 injects corresponding example according to the configuration information of the configuration file record loaded to run project
Process.
After step S101 is loaded with the corresponding configuration file of context variable values, step S102 can be according to being loaded
The configuration information of configuration file record, injects corresponding example to run project process.
According to the project process operation method provided in this embodiment based on environmental variance, it is pre-configured with every kind of running environment
Corresponding configuration file obtains the context variable values of write-in, the corresponding configuration of loading environment variate-value when project process enables
File injects corresponding example then according to the configuration information of the configuration file record loaded to run project process.This hair
The technical solution of bright offer easily makes according to acquired context variable values, the corresponding configuration file of loading environment variate-value
Project process can be run under a variety of running environment, without according to different running environment to the corresponding code of project process into
Row manual modification is also avoided because of modification code not to reduce human cost and time cost input by modification code
The problem of correctly bringing.
The process of Fig. 2 shows the in accordance with another embodiment of the present invention project process operation method based on environmental variance
Schematic diagram, wherein project process is suitable for running under a variety of running environment, as shown in Fig. 2, this method comprises the following steps:
Step S200 is pre-configured with the corresponding configuration file of every kind of running environment.
In order to run project process can under a variety of running environment, in step s 200, need according to different fortune
Row environment is pre-configured with the corresponding configuration file of every kind of running environment.Wherein, running environment can specifically: exploitation environment, test
Environment or production environment, and develop environment and may further be embodied as: Windows develops environment or Linux exploitation environment.According to reality
Demand, the also settable other running environment of those skilled in the art, herein without limitation.
For example, being needed in step s 200 pre- to run project process can under exploitation environment and test environment
The corresponding configuration file of first configuration exploitation environment configuration file corresponding with test environment.
Step S201 pre-defines proxy class.
In order to easily inject corresponding example according to the configuration information of the configuration file record loaded, in project
Before process enables, pre-defined proxy class is also needed, the proxy class is for calling the interface of example to inject example.Wherein, it walks
Rapid S200 and step S201 can be carried out simultaneously, can also first carry out step S200, then execute step S201.
Step S202 obtains the context variable values of write-in, loading environment variate-value is corresponding to match when project process enables
Set file.
Complete be pre-configured with the corresponding configuration file of every kind of running environment and pre-defined proxy class after, project into
The Cheng Qi used time executes step S202, obtains the context variable values of write-in, the corresponding configuration file of loading environment variate-value.Wherein,
The context variable values being written when project process enables are provided by the server for running project process, specifically, in item
The context variable values that mesh process is written when enabling depend on the running environment of server.
For example, the running environment of the server of operation project process is that Windows develops environment, ring is developed with Windows
The corresponding context variable values in border are developing1, have been pre-configured with Windows in step S200 and step S201 and have opened
The corresponding configuration file in hair ring border and proxy class is pre-defined, then executing step S202 when project process enables, obtained
The context variable values of write-in load the corresponding configuration file of the context variable values, i.e., environment is corresponding matches for load Windows exploitation
Set file.
Step S203 calls corresponding example by proxy class according to the configuration information of the configuration file record loaded
Interface injects corresponding example to run project process.
It is assumed that project process is developed by Java language, the corresponding configuration of context variable values is loaded in step S202
After file, mechanism (is controlled and inverts, Inversion of Control) by the IOC of the Spring in Java framework, according to
Loaded configuration file record configuration information, the interface of corresponding example is called by proxy class come inject corresponding example with
Operation project process.
For example, the running environment of the server of operation project process is that Windows develops environment, enabled in project process
When, environment is corresponding matches for the acquired corresponding configuration file of context variable values of step S202 load, i.e. load Windows exploitation
File is set, step S203 is then executed, according to the configuration information of the configuration file record loaded, is called by proxy class corresponding
The interface of example injects corresponding example to run project process.Assuming that developing the corresponding configuration text of environment according to Windows
The configuration information of part record need to use example 1 it is found that when the subprocess 1 run in project process, then when running to project
When subprocess 1 in process, the interface of example 1 is called to inject example 1 by proxy class in step S203.
According to the project process operation method provided in this embodiment based on environmental variance, it is pre-configured with every kind of running environment
Corresponding configuration file and pre-defined proxy class obtain the context variable values of write-in, loading environment when project process enables
The corresponding configuration file of variate-value is called corresponding then according to the configuration information of the configuration file record loaded by proxy class
The interface of example inject corresponding example to run project process.Technical solution provided by the invention is not only according to acquired
Context variable values, the corresponding configuration file of loading environment variate-value, easily make project process under a variety of running environment all
It can run, and easily realize the injection of example by proxy class.In addition technical solution provided by the invention is not necessarily to basis
Different running environment carries out manual modification to the corresponding code of project process, to reduce manpower input by modification code
Cost and time cost are also avoided because modifying the problem of bringing due to code is incorrect.
Fig. 3 shows the function knot of the project process running gear according to an embodiment of the invention based on environmental variance
Structure schematic diagram, wherein project process is suitable for running under a variety of running environment, as shown in figure 3, the device includes: configuration mould
Block 310, loading module 320 and injection module 330.
Configuration module 310, suitable for being pre-configured with the corresponding configuration file of every kind of running environment.
In order to run project process can under a variety of running environment, configuration module 310 is needed according to different operations
Environment is pre-configured with the corresponding configuration file of every kind of running environment.Wherein, running environment can specifically: exploitation environment, test wrapper
Border or production environment, and develop environment and may further be embodied as: Windows develops environment or Linux exploitation environment.According to practical need
It asks, the also settable other running environment of those skilled in the art, herein without limitation.
Loading module 320 is suitable for obtaining the context variable values of write-in, loading environment variate-value when project process enables
Corresponding configuration file.
After configuration module 310 has been pre-configured with the corresponding configuration file of every kind of running environment, enabled in project process
When, loading module 320 is triggered, the context variable values of write-in, the corresponding configuration file of loading environment variate-value are obtained.Wherein, exist
The context variable values that project process is written when enabling are provided by the server for running project process, specifically, in project
The context variable values that process is written when enabling depend on the running environment of server.
Injection module 330 injects corresponding example suitable for the configuration information according to the configuration file record loaded to transport
Row project process.
After loading module 320 is loaded with the corresponding configuration file of context variable values, injection module 330 is according to being loaded
Configuration file record configuration information, inject corresponding example to run project process.
According to the project process running gear provided in this embodiment based on environmental variance, it is pre-configured with by configuration module
The corresponding configuration file of every kind of running environment obtains the context variable values of write-in by loading module when project process is enabled,
The corresponding configuration file of loading environment variate-value is then injected into the configuration information that module is recorded according to the configuration file loaded,
Corresponding example is injected to run project process.Technical solution provided by the invention is according to acquired context variable values, load
The corresponding configuration file of context variable values, run project process can under a variety of running environment, without according to not
With running environment to the corresponding code of project process carry out manual modification, thus reduce modification code input by manpower at
Sheet and time cost are also avoided because modifying the problem of bringing due to code is incorrect.
Fig. 4 shows the function of the project process running gear in accordance with another embodiment of the present invention based on environmental variance
Structural schematic diagram, wherein project process is suitable for running under a variety of running environment, as shown in figure 4, the device includes: configuration
Module 410, definition module 420, loading module 430 and injection module 440.
Configuration module 410, suitable for being pre-configured with the corresponding configuration file of every kind of running environment.
In order to run project process can under a variety of running environment, configuration module 410 is needed according to different operations
Environment is pre-configured with the corresponding configuration file of every kind of running environment.Wherein, running environment can specifically: exploitation environment, test wrapper
Border or production environment, and develop environment and may further be embodied as: Windows develops environment or Linux exploitation environment.For example, in order to make
Project process can be run under exploitation environment and test environment, and it is corresponding that the needs of configuration module 410 are pre-configured with exploitation environment
Configuration file configuration file corresponding with test environment.According to actual needs, the also settable other fortune of those skilled in the art
Row environment, herein without limitation.
Definition module 420 is suitable for before project process enabling, pre-defines proxy class.
In order to easily inject corresponding example according to the configuration information of the configuration file record loaded, in project
Before process enables, definition module 420 is also needed to pre-define proxy class, the proxy class is for calling the interface of example to inject reality
Example.Wherein, configuration module 410 and definition module 420 can trigger simultaneously, can also first trigger configuration module 410, then trigger and determine
Adopted module 420.
Loading module 430 is suitable for obtaining the context variable values of write-in, loading environment variate-value when project process enables
Corresponding configuration file.
The corresponding configuration file of every kind of running environment has been pre-configured in configuration module 410 and definition module 420 is fixed in advance
After justice proxy class, when project process enables, loading module 430 is triggered, obtains the context variable values of write-in, loading environment
The corresponding configuration file of variate-value.Wherein, when project process enables the context variable values that are written by for run project into
The server of journey provides, and specifically, the context variable values being written when project process enables depend on the operation ring of server
Border.
For example, the running environment of the server of operation project process is that Windows develops environment, ring is developed with Windows
The corresponding context variable values in border are developing1, and it is corresponding that configuration module 410 has been pre-configured with Windows exploitation environment
Configuration file, and definition module 420 has pre-defined proxy class, then triggering loading module when project process enables
430, the context variable values of write-in are obtained, the corresponding configuration file of the context variable values is loaded, is i.e. load Windows develops environment
Corresponding configuration file.
Injection module 440 is called corresponding suitable for the configuration information according to the configuration file record loaded by proxy class
The interface of example injects corresponding example to run project process.
It is assumed that project process is developed by Java language, it is loaded with that context variable values are corresponding to match in loading module 430
After setting file, by the IOC mechanism of the Spring in Java framework, injection module 440 is remembered according to the configuration file loaded
The configuration information of record calls the interface of corresponding example by proxy class to inject corresponding example to run project process.
For example, the running environment of the server of operation project process is that Windows develops environment, enabled in project process
When, loading module 430 is loaded with the acquired corresponding configuration file of context variable values, i.e. load Windows develops environment pair
The configuration file answered is then injected into module 440 according to the configuration information of the configuration file record loaded, calls phase by proxy class
The interface for the example answered injects corresponding example to run project process.Assuming that being developed according to Windows, environment is corresponding to match
The configuration information of file record is set it is found that when the subprocess 1 run in project process, example 1 need to be used, then when running to
When subprocess 1 in project process, injection module 440 develops the configuration that the corresponding configuration file of environment records according to Windows
Information calls the interface of example 1 to inject example 1 by proxy class.
According to the project process running gear provided in this embodiment based on environmental variance, it is pre-configured with by configuration module
The corresponding configuration file of every kind of running environment, and proxy class is pre-defined by definition module, when project process enables, pass through
Loading module obtains the context variable values of write-in, and the corresponding configuration file of loading environment variate-value is then injected into module according to institute
The configuration information of the configuration file record of load, calls the interface of corresponding example by proxy class to inject corresponding example to transport
Row project process.For technical solution provided by the invention not only according to acquired context variable values, loading environment variate-value is corresponding
Configuration file, run project process can under a variety of running environment, and easily realize by proxy class
The injection of example.In addition technical solution provided by the invention was not necessarily to according to different running environment to project process corresponding generation
Code carries out manual modification, to reduce human cost and time cost input by modification code, also avoids because modifying generation
Code it is incorrect and the problem of bring.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) realize one of some or all components according to embodiments of the present invention
A little or repertoire.The present invention is also implemented as setting for executing some or all of method as described herein
Standby or program of device (for example, computer program and computer program product).It is such to realize that program of the invention deposit
Storage on a computer-readable medium, or may be in the form of one or more signals.Such signal can be from because of spy
It downloads and obtains on net website, be perhaps provided on the carrier signal or be provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
The invention discloses:
A1, a kind of project process operation method based on environmental variance, the project process are suitable in a variety of operation rings
It is run under border, which comprises
It is pre-configured with the corresponding configuration file of every kind of running environment;
When project process enables, the context variable values of write-in are obtained, load the corresponding configuration text of the context variable values
Part;
According to the configuration information of the configuration file record loaded, corresponding example is injected to run the project process.
A2, method according to a1, the context variable values being written when project process enables are by described for running
The server of project process provides.
A3, the method according to A2, the context variable values being written when project process enables are dependent on the service
The running environment of device.
A4, according to the described in any item methods of A1-A3, further includes: project process enabling before, pre-define agency
Class;
It is described according to loaded configuration file record configuration information, inject corresponding example with run the project into
Journey specifically: according to the configuration information of the configuration file record loaded, the interface of corresponding example is called by the proxy class
To inject corresponding example to run the project process.
A5, according to the described in any item methods of A1-A4, the running environment specifically: exploitation environment, test environment or
Production environment.
A6, method according to a5, the exploitation environment specifically: Windows develops environment or Linux develops ring
Border.
B7, a kind of project process running gear based on environmental variance, the project process are suitable in a variety of operation rings
It is run under border, described device includes:
Configuration module, suitable for being pre-configured with the corresponding configuration file of every kind of running environment;
Loading module is suitable for obtaining the context variable values of write-in when project process enables, loading the context variable values
Corresponding configuration file;
Injection module injects corresponding example suitable for the configuration information according to the configuration file record loaded to run
The project process.
B8, the device according to B7, the context variable values being written when project process enables are by described for running
The server of project process provides.
B9, the device according to B8, the context variable values being written when project process enables are dependent on the service
The running environment of device.
B10, according to the described in any item devices of B7-B9, further includes: definition module, be suitable for project process enabling before,
Pre-defined proxy class;
The injection module is further adapted for: according to the configuration information of the configuration file record loaded, by the agency
Class calls the interface of corresponding example to inject corresponding example to run the project process.
B11, according to the described in any item devices of B7-B10, the running environment specifically: exploitation environment, test environment,
Or production environment.
B12, the device according to B11, the exploitation environment specifically: Windows develops environment or Linux develops ring
Border.
Claims (8)
1. a kind of project process operation method based on environmental variance, the project process is suitable for transporting under a variety of running environment
Row, which comprises
The corresponding configuration file of every kind of running environment and pre-defined proxy class are configured in advance for the project process;
When project process enables, the context variable values of write-in are obtained, the corresponding configuration file of the context variable values is loaded;Its
In, the context variable values being written when project process enables are provided by the server for running the project process;
According to the configuration information of the configuration file record loaded, the interface of corresponding example is called to inject by the proxy class
Corresponding example is to run the project process.
2. according to the method described in claim 1, the context variable values being written when project process enables are dependent on the clothes
The running environment of business device.
3. method according to claim 1 or 2, the running environment specifically: exploitation environment, test environment or production
Environment.
4. according to the method described in claim 3, the exploitation environment specifically: Windows develops environment or Linux develops ring
Border.
5. a kind of project process running gear based on environmental variance, the project process is suitable for transporting under a variety of running environment
Row, described device include:
Configuration module, suitable for being in advance that the project process configures the corresponding configuration file of every kind of running environment;
Definition module is suitable for before project process enabling, pre-defines proxy class;
Loading module is suitable for obtaining the context variable values of write-in when project process enables, it is corresponding loading the context variable values
Configuration file;Wherein, the context variable values being written when project process enables are by the clothes for running the project process
Business device provides;
Injection module is called corresponding real suitable for the configuration information according to the configuration file record loaded by the proxy class
The interface of example injects corresponding example to run the project process.
6. device according to claim 5, the context variable values being written when project process enables are dependent on the clothes
The running environment of business device.
7. device according to claim 5 or 6, the running environment specifically: exploitation environment, test environment or production
Environment.
8. device according to claim 7, the exploitation environment specifically: Windows develops environment or Linux develops ring
Border.
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 CN105204916A (en) | 2015-12-30 |
CN105204916B true 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) |
Families Citing this family (9)
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 |
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 |
Citations (2)
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 |
CN104539458A (en) * | 2014-12-30 | 2015-04-22 | 深圳市兰丁科技有限公司 | Operating environment self-adapting method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9417753B2 (en) * | 2012-05-02 | 2016-08-16 | Google Technology Holdings LLC | Method and apparatus for providing contextual information between operating system environments |
-
2015
- 2015-10-30 CN CN201510726660.2A patent/CN105204916B/en active Active
Patent Citations (2)
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 |
CN104539458A (en) * | 2014-12-30 | 2015-04-22 | 深圳市兰丁科技有限公司 | Operating environment self-adapting method and device |
Also Published As
Publication number | Publication date |
---|---|
CN105204916A (en) | 2015-12-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105204916B (en) | Project process operation method and device based on environmental variance | |
US10534701B1 (en) | API driven continuous testing systems for testing disparate software | |
CN109960643B (en) | Code testing method and device | |
US10409700B2 (en) | Flexible configuration and control of a testing system | |
US20190294531A1 (en) | Automated software deployment and testing based on code modification and test failure correlation | |
US9355017B2 (en) | Automated error checking system for a software application and method therefor | |
US10671381B2 (en) | Continuous integration with reusable context aware jobs | |
KR102341154B1 (en) | High-speed application for installation on mobile devices for permitting remote configuration of such mobile devices | |
CN105373729B (en) | A kind of information processing method and system | |
US20180113799A1 (en) | Model generation for model-based application testing | |
GB2508643A (en) | Method for Performing a Regression Test after Modifying Source Code File | |
US9329985B1 (en) | Using emulation to disassociate verification from stimulus in functional test | |
CN104346206B (en) | A kind of method and system of unloaded software rejuvenation installation | |
US20200034282A1 (en) | Object-oriented regression-candidate filter | |
US10579513B2 (en) | Test run control method and apparatus | |
CN106776334A (en) | Based on annotation generation method of test example and device | |
US8661414B2 (en) | Method and system for testing an order management system | |
CN110008106A (en) | Code test method, device and computer readable storage medium | |
CN106933591A (en) | The method and device that code merges | |
CN109558313A (en) | Construct the method and device of abnormality test scene | |
CN108304213A (en) | Run the hot restorative procedure and device of program | |
US9760364B2 (en) | Checks for software extensions | |
CN111813379A (en) | Application deployment method and device, electronic equipment and computer readable storage medium | |
CN107590064A (en) | A kind of application upgrade method of testing, device and system | |
CN105117243B (en) | A kind of method and apparatus for the startup time obtaining application program |
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 | ||
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. |