CN107450923B - Method and device for realizing customized baseline separation program - Google Patents
Method and device for realizing customized baseline separation program Download PDFInfo
- Publication number
- CN107450923B CN107450923B CN201710631840.1A CN201710631840A CN107450923B CN 107450923 B CN107450923 B CN 107450923B CN 201710631840 A CN201710631840 A CN 201710631840A CN 107450923 B CN107450923 B CN 107450923B
- Authority
- CN
- China
- Prior art keywords
- code
- customized
- baseline
- package
- program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 238000000926 separation method Methods 0.000 claims abstract description 11
- 230000006870 function Effects 0.000 claims description 28
- 238000010586 diagram Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/36—Software reuse
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Abstract
The invention discloses a method and a device for realizing a customized baseline separation program, and relates to the field of code development. A program-implemented method of customizing baseline separation disclosed herein, comprising: when the application program receives a user instruction, starting a baseline code packet program; and the baseline code package program queries the customized codes related to the baseline code extension through the configuration file, and then calls the customized code package program of the queried customized codes according to the user instruction.
Description
Technical Field
The invention relates to the field of code development, in particular to a program scheme for customizing baseline separation.
Background
In software development, customers will put forth various demands, and the demands are different from customer to customer, even the Nanthill North Rail. In the process of code development, in order to meet the requirements of different customers, the condition judgment branches are too many, the code complexity is greatly improved, the requirements of different customers are mutually crossed, and problems and BUG can be introduced to a customer B for the development requirement of the customer A.
Disclosure of Invention
The invention provides a program implementation method and device for customized baseline separation, which can solve the problem of complex development of the existing application program codes.
Disclosed herein is a program-implemented method of customizing baseline separation, comprising:
when the application program receives a user instruction, starting a baseline code packet program;
and the baseline code package program queries the customized codes related to the baseline code extension through the configuration file, and then calls the customized code package program of the queried customized codes according to the user instruction.
Optionally, in the method, after the application program receives a user instruction, the method further includes:
if the deployment is found to be the first deployment, starting a baseline code package program;
the baseline code packet program queries a code packet which accords with a preset rule from a specified position as a customized code packet;
and performing extension association on the inquired customized code packet and the baseline code packet, configuring the configuration file under the position of the inquired customized code packet, and storing the extension association relation between the customized code and the baseline code in the configuration file.
Optionally, in the method, the querying, by the baseline code package program, a code package meeting a preset rule from a specified location as a customized code package includes:
and the baseline code package program queries a code package which accords with a preset customized code package naming rule under the dependency package directory, and the queried code package is a customized code package.
Optionally, in the above method, the baseline code package includes all codes for implementing basic functions of the application program.
Optionally, in the above method, the custom code package includes all codes for implementing the client-specified function.
Also disclosed herein is a program implementation apparatus for customized baseline separation, comprising a baseline code package program module and a customized code package program module, wherein:
the baseline code package program module is started when the application program receives a user instruction, queries a customized code package related to the baseline code package program extension through a configuration file, and calls the queried customized code package program according to the user instruction;
and the customized code package program module runs the customized code according to the calling of the baseline code package program module.
Optionally, in the apparatus, the baseline code package program module is configured to, after the application program receives the user instruction, start if the application program finds that the deployment is the first deployment, query a code package meeting a preset rule from a designated location as a customized code package, perform extended association between the queried customized code package and the baseline code package, configure the configuration file with the queried customized code package at the location of the customized code package, and store an extended association relationship between the customized code and the baseline code in the configuration file.
Optionally, in the above apparatus, the querying, by the baseline code package program, a code package meeting a preset rule from a specified location as a customized code package includes:
and the baseline code package program queries a code package which accords with a preset customized code package naming rule under the dependency package directory, and the queried code package is a customized code package.
Optionally, in the above apparatus, the baseline code package module is implemented by using all codes for implementing basic functions of the application program.
Optionally, in the above apparatus, the custom code package program module is implemented by using all codes for implementing the client-specified function.
According to the technical scheme, the customized program is separated from the baseline program in the code design stage, the customized program is separately deployed and the program is automatically found and assembled, so that the complexity of a program code ring is greatly reduced in the code development stage, the repetition rate of program code design is reduced, the development efficiency is improved, the mutual influence of different requirements among different clients is completely avoided, and the system stability is improved.
Drawings
FIG. 1 is a schematic diagram illustrating the principle of splitting a code packet according to an embodiment of the present invention;
FIG. 2 is a flow diagram of a customized baseline separation implementation application in an embodiment of the invention;
FIG. 3 is a flow chart of the first deployment of a customized baseline separation implementation application in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in further detail with reference to specific embodiments. It should be noted that the embodiments and features of the embodiments of the present application may be arbitrarily combined with each other without conflict.
The inventor of the present application proposes that all existing function implementation codes are written in one package, wherein some functions belong to basic functions, that is, functions required by all clients, and other functions relate to characteristics of the clients or requirements of the clients themselves, so that the inventor of the present application proposes that modern codes can be split into a baseline code package with basic functions and a customized code package with customized functions (that is, different clients correspond to different customized code packages, and the principle is shown in fig. 1). Therefore, the requirements of different customers can be split on the code level, and the customized code packages of the customers can be overlapped and deployed on the basis of deploying the basic code packages aiming at the customers of different local points, so that the problem of complex and complicated code development in the prior art is solved, and the maintainability of the codes is greatly improved.
Based on the above thought, the embodiment provides a method for customizing a baseline separation implementation application, as shown in fig. 2, which mainly includes the following operations:
for example, when a user initiates an instruction through a server, a baseline code package program in an application program starts immediately.
Wherein the code in the baseline code package is all code that implements the basic functionality of the application.
Wherein the customized code is all code that implements the customer specified function.
It is to be noted. When an application program is deployed for the first time, related operations need to be performed, and the first deployment process is as shown in fig. 3 and includes the following operations:
s1, the application program receives the user instruction, if the first deployment is found, the baseline code package program is started;
s2, the baseline code package program automatically discovers the customized code package, and discovers the customized code package configuration file and the customized code package code;
specifically, the baseline code package program may be configured with a configuration file, in which customized code package naming rules are predefined, and the customized code packages are named according to the defined naming rules, so that the baseline code package program automatically searches at a specified location (for example, a dependent package directory) according to the naming rules, and the code packages meeting the naming rules are considered as the customized code packages.
S3, the baseline code package program establishes an extension association with the customized code and stores the extension association.
Specifically, under the characteristic path of the customized code package, an XML configuration file is configured, and the file describes a specific customized code and an extension association relation with the baseline code, so that the baseline code package program finds the position of the customized code associated with the baseline code extension through the XML configuration file, establishes an association relation through program operation, and maintains the association relation in a cache for a user to use when calling the program.
In addition, the embodiment also provides a program implementation device for customizing baseline separation, which can implement the method. It mainly includes baseline code package program module and customized code package program module.
The baseline code package program module is started when the application program receives a user instruction, queries a customized code package related to the baseline code package program extension through a configuration file, and calls the queried customized code package program according to the user instruction;
in addition, after the application program receives the user instruction, if the application program finds that the deployment is the first deployment, the baseline code package program module performs the first deployment operation, namely, the baseline code package program module is started first, a code package which accords with a preset rule is inquired from a specified position to serve as a customized code package, the inquired customized code package is in extended association with the baseline code package, a configuration file is configured at the position of the inquired customized code package, and the extended association relation between the customized code and the baseline code is stored in the configuration file.
Specifically, the baseline code package program may query, in the dependency package directory, a code package that meets a preconfigured customized code package naming rule, where the queried code package is a customized code package.
And the customized code package program module runs the customized code according to the calling of the baseline code package program module.
It can be seen from the above embodiments that, in the technical solution of the present application, the coupled codes are split into two independent code packages according to the customized function and the baseline function, different customers deploy the baseline code package and different customized code packages, and the baseline code package can automatically discover and assemble the customized code packages and the programs in the code packages.
It will be understood by those skilled in the art that all or part of the steps of the above methods may be implemented by instructing the relevant hardware through a program, and the program may be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, and the like. Alternatively, all or part of the steps of the above embodiments may be implemented using one or more integrated circuits. Accordingly, each module/unit in the above embodiments may be implemented in the form of hardware, and may also be implemented in the form of a software functional module. The present application is not limited to any specific form of hardware or software combination.
The above description is only a preferred example of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (8)
1. A program-implemented method of customizing baseline separation, comprising:
when the application program receives a user instruction, starting a baseline code packet program;
the baseline code package program queries customized codes related to baseline code extension through a configuration file, calls the customized code package program of the queried customized codes according to the user instruction, and assembles the customized code package and programs in the code package;
after the application program receives the user instruction, the method further comprises the following steps:
if the deployment is found to be the first deployment, starting a baseline code package program;
the baseline code packet program queries a code packet which accords with a preset rule from a specified position as a customized code packet;
expanding and associating the inquired customized code packet with the baseline code packet, configuring the configuration file under the position of the inquired customized code packet, and storing the expansion association relation between the customized code and the baseline code in the configuration file;
the method comprises the steps of dividing the realized functions into customized functions and baseline functions, and splitting the coupled codes into two independent baseline code packages with basic functions and customized codes with client customized functions according to the baseline functions and the customized functions in a code design stage.
2. The method of claim 1, wherein the baseline code package program queries a code package meeting a predetermined rule from a designated location as a customized code package, comprising:
and the baseline code package program queries a code package which accords with a preset customized code package naming rule under the dependency package directory, and the queried code package is a customized code package.
3. The method of claim 1 or 2,
the baseline code package contains all code that implements the basic functionality of the application.
4. The method of claim 1 or 2,
the customized code package contains all code that implements the customer specified functionality.
5. A program implemented device for customized baseline separation, comprising a baseline code package program module and a customized code package program module, wherein:
the baseline code package program module is started when an application program receives a user instruction, queries a customized code package related to the baseline code package program extension through a configuration file, calls the queried customized code package program according to the user instruction, and assembles the customized code package and a program in the code package;
the customized code package program module runs customized codes according to the calling of the baseline code package program module;
after receiving a user instruction, if the application program is found to be deployed for the first time, the baseline code packet program module is started, inquires a code packet which accords with a preset rule from a specified position to serve as a customized code packet, performs extended association on the inquired customized code packet and the baseline code packet, configures the configuration file under the position of the inquired customized code packet, and stores the extended association relation between the customized code and the baseline code in the configuration file;
the method comprises the steps of dividing the realized functions into customized functions and baseline functions, splitting the coupled codes into two independent baseline code packages with basic functions and customized codes with client customized functions according to the baseline functions and the customized functions in the code design stage.
6. The apparatus of claim 5, wherein the baseline code package program queries a code package that meets a preset rule from a specified location as a customized code package, comprising:
and the baseline code package program queries a code package which accords with a preset customized code package naming rule under the dependency package directory, and the queried code package is a customized code package.
7. The apparatus of claim 5 or 6,
the baseline code package program module is implemented with all code that implements the basic functionality of the application.
8. The apparatus of claim 5 or 6,
the customized code package program module is implemented using all code that implements the customer specified functionality.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710631840.1A CN107450923B (en) | 2017-07-28 | 2017-07-28 | Method and device for realizing customized baseline separation program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710631840.1A CN107450923B (en) | 2017-07-28 | 2017-07-28 | Method and device for realizing customized baseline separation program |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107450923A CN107450923A (en) | 2017-12-08 |
CN107450923B true CN107450923B (en) | 2021-07-02 |
Family
ID=60490301
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710631840.1A Active CN107450923B (en) | 2017-07-28 | 2017-07-28 | Method and device for realizing customized baseline separation program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107450923B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109101271A (en) * | 2018-07-27 | 2018-12-28 | 郑州云海信息技术有限公司 | A kind of program extended method and relevant apparatus |
CN111538481B (en) * | 2019-01-21 | 2021-09-14 | 北京邮电大学 | Application program customization method and system |
CN111666074B (en) * | 2019-03-05 | 2024-04-09 | 华为技术有限公司 | Web application customization method, related device and system |
CN110209409B (en) * | 2019-03-20 | 2022-02-01 | 腾讯科技(深圳)有限公司 | Customization method and system of application product and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101901157A (en) * | 2010-07-26 | 2010-12-01 | 中兴通讯股份有限公司 | Management software self-starting installation method and system |
CN102541598A (en) * | 2011-12-26 | 2012-07-04 | 深圳联友科技有限公司 | Method and system for dynamically loading component |
CN105528225A (en) * | 2015-11-30 | 2016-04-27 | 用友优普信息技术有限公司 | Application loading method and loading apparatus |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9535679B2 (en) * | 2004-12-28 | 2017-01-03 | International Business Machines Corporation | Dynamically optimizing applications within a deployment server |
US8249732B2 (en) * | 2008-06-26 | 2012-08-21 | Siemens Product Lifecycle Management Software Inc. | System and method for developing automated templates for knowledge capture |
CN101499931B (en) * | 2009-03-13 | 2012-05-09 | 中兴通讯股份有限公司 | Function expansion method and system based on distributed environment |
CN101989197A (en) * | 2009-07-31 | 2011-03-23 | 中兴通讯股份有限公司 | System for multiplexing web program permission and method for generating and accessing program |
US9672022B2 (en) * | 2010-06-23 | 2017-06-06 | Microsoft Technology Licensing, Llc | Applications including multiple experience modules |
CN103176769B (en) * | 2011-12-20 | 2016-05-04 | 阿里巴巴集团控股有限公司 | A kind of deployment of customizable software and installation method and system |
EP2750328A1 (en) * | 2012-12-27 | 2014-07-02 | Telefonica S.A. | Computer-implemented method and system for providing networking service, and computer program product adapted to perform the method |
US9720669B2 (en) * | 2013-05-30 | 2017-08-01 | The Boeing Company | Deployment of software across an enterprise system |
CN106648823B (en) * | 2016-12-30 | 2019-12-10 | 东软集团股份有限公司 | Code publishing method and device |
-
2017
- 2017-07-28 CN CN201710631840.1A patent/CN107450923B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101901157A (en) * | 2010-07-26 | 2010-12-01 | 中兴通讯股份有限公司 | Management software self-starting installation method and system |
CN102541598A (en) * | 2011-12-26 | 2012-07-04 | 深圳联友科技有限公司 | Method and system for dynamically loading component |
CN105528225A (en) * | 2015-11-30 | 2016-04-27 | 用友优普信息技术有限公司 | Application loading method and loading apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN107450923A (en) | 2017-12-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107450923B (en) | Method and device for realizing customized baseline separation program | |
WO2017088703A1 (en) | Page jumping method and apparatus | |
CN112087379B (en) | Service chain arranging method and device, storage medium and electronic device | |
WO2017147873A1 (en) | Profile download method, and related devices and system | |
CN102497454B (en) | Method for realizing gray publication of application in application service platform system | |
CN110913015B (en) | Distributed quick installation method, system and medium for cloud mobile phone APP | |
EP2866142A1 (en) | Upgrade package generation method and device, dynamic file differential upgrade method and terminal | |
CN109271157B (en) | Software development method, device and computer readable storage medium | |
CN109189381A (en) | A kind of creation method and device of Business Stream component | |
CN105022832A (en) | Method for safely downloading APP (application), mobile terminal and download server | |
EP4050850A1 (en) | Service upgrading method, device and system | |
US9854429B2 (en) | Mobile terminal configuration method and system | |
CN110704122A (en) | Plug-in loading method and device | |
CN101986662B (en) | Widget instance operation method and system | |
CN108370329B (en) | Management method and device for management function object | |
US20190132388A1 (en) | Network topology templates for internal states of management and control planes | |
CN108763471B (en) | Method and system for deploying HTTP file server in cluster | |
CN115865718A (en) | Service arrangement control method and device based on Yaml template | |
CN116107590A (en) | Implementation method and system for compatible micro-service and monomer architecture in software product development and deployment | |
CN111966744B (en) | Workflow deployment method and device, computer equipment and storage medium | |
US8374593B2 (en) | Method of providing mobile application | |
CN111181772B (en) | Network protocol issuing method, device and system | |
CN105282204B (en) | Tr069 protocol method processing method, device and gateway | |
CN110673859B (en) | Graphic database deployment method, device, equipment and readable storage medium | |
CN108196962B (en) | Method and device for realizing calling of interfaces of different versions |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |