CN102004640A - Method and device for rapidly providing customized software package - Google Patents
Method and device for rapidly providing customized software package Download PDFInfo
- Publication number
- CN102004640A CN102004640A CN2010105405326A CN201010540532A CN102004640A CN 102004640 A CN102004640 A CN 102004640A CN 2010105405326 A CN2010105405326 A CN 2010105405326A CN 201010540532 A CN201010540532 A CN 201010540532A CN 102004640 A CN102004640 A CN 102004640A
- Authority
- CN
- China
- Prior art keywords
- software package
- configuration file
- assembly
- customization
- component
- 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
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a method and a device for rapidly providing customized software package. The method comprises the steps of: searching an adapted software package configuration file and relevant assemblies by using the name of an assembly; and obtaining customization attribute adapted to the assembly in the software package according to the configuration file. The method and the device for rapidly providing customized software package ensure that different customers use the same assembly (the same code) to form different customer software packages, thereby realizing the different demands of the customers without generating the problems such as coverage and conflict and the like; moreover, the customization of the software package can be realized without modifying any code, thereby enhancing the customization efficiency of the customer software package.
Description
Technical field
The present invention relates to the assembly management field, specially refer to a kind of method and device that the customization software package is provided fast.
Background technology
In existing software customized service, generally be to revise code according to client's real needs, revising formation component on the basis of code then, like this because relate to code revision, therefore need do regression test again, and need be each customer care one cover code, development amount and maintenance workload are all very big.
Such as: in software customized service, the name of each assembly is at different clients different component Names to be set, and according to the make things convenient for requirement of client to propaganda or use, the title of assembly generally comprises the required factor of client.And close customize services may be applied to different clients, in the assembly operating process, may be because of different clients' assembly crossing operation, and make a mistake.Therefore, influenced the efficient of client software bag customization greatly.
Summary of the invention
Fundamental purpose of the present invention promotes the efficient of client software bag customization for a kind of method and device that the customization software package is provided fast is provided.
The present invention proposes a kind of method that the customization software package is provided fast, comprises step:
Utilize the component Name of assembly, search for suitable software package configuration file and associated component;
Obtain the custom attributes adaptive in the software package by configuration file with assembly.
Preferably, the described component Name that utilizes assembly also comprises before searching for the step of suitable software package configuration file and associated component:
Utilizing the key word of definition, is prefix, key word and suffix with the component Name cutting.
Preferably, the described component Name that utilizes assembly, search for the suitable software package configuration file and the step of associated component and specifically comprise:
Utilize prefix, suffix and the configuration file key word of component Name, search for suitable software package configuration file;
Utilize prefix, suffix and the associated component key word of component Name, the search associated component.
Preferably, described method also comprises:
When not searching suitable configuration file or associated component, produce information.
The present invention also proposes a kind of device that the customization software package is provided fast, comprising:
The configuration file search module is used to utilize the component Name of assembly, searches for suitable software package configuration file and associated component;
The custom attributes acquisition module is used for obtaining the software package custom attributes adaptive with assembly by configuration file.
Preferably, described device also comprises:
Title cutting module is utilized the key word that defines, and is that cutting is prefix, key word and suffix with the component Name cutting.
Preferably, described configuration file search module specifically is used for:
Utilize prefix, suffix and the configuration file key word of component Name, search for suitable software package configuration file;
Utilize the key word of prefix, suffix and the associated component of component Name, the search associated component.
Preferably, described configuration file search module also specifically is used for:
When not searching suitable configuration file or associated component, produce information.
The present invention provides the method and the device of customization software package fast, is set to prefix, key word and suffix three parts by assembly and profile name and forms; Utilize the key word of setting that the component Name cutting is prefix, key word, three parts of suffix; Assembly utilizes component Name prefix, configuration file key word, component Name suffix to obtain profile name; Assembly utilizes component Name prefix, associated component key word, component Name suffix to obtain associated component; Configuration file is searched and opened to assembly, obtains the customization attribute that defines in the configuration file; Assembly is realized different customization functions according to the customization attribute, to realize the customization demand; Assembly loads relative associated component, associated component also utilizes the title cutting to obtain prefix, key word and suffix, the circulation said process, from configuration file, obtain the customization attribute, realize the customization function of associated component, and the like, thereby the customization function of realization whole software bag.The present invention provides the method and the device of customization software package fast, makes different clients adopt same set of assembly (being same set of code) to form different client software bags, realizes different requirements of customers and can not produce problems such as covering, conflict; And, do not need to revise the customization that any code just can be realized software package, thereby promote the efficient of client software bag customization.
Description of drawings
Fig. 1 provides the process flow diagram of method one embodiment of customization software package fast for the present invention is a kind of;
Fig. 2 provides another process flow diagram of method one embodiment of customization software package fast for the present invention is a kind of;
Fig. 3 provides the structural representation of device one embodiment of customization software package fast for the present invention is a kind of;
Fig. 4 provides another structural representation of device one embodiment of customization software package fast for the present invention is a kind of.
The realization of the object of the invention, functional characteristics and advantage will be in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
With reference to Fig. 1, a kind of embodiment that the method for customization software package is provided fast of the present invention is proposed.This method comprises:
Step 10, utilize the component Name of assembly, search for suitable software package configuration file and associated component;
Can comprise a plurality of assemblies in the same software package.In software customized, if same assembly uses for different clients, and the characteristic of each customer requirement all has inconsistent place, software package is realized the characteristic of all customer requirements, can require characteristic to be illustrated to it with a configuration file to a certain specific client, therefore different clients has different configuration files, different clients has different software packages, but each assembly in the software package is the same, assembly is by reading the specific configuration information that configuration file obtains the client, thereby determines to use different flow process or codes in the assembly.For fear of the conflict between the different clients, the title of assembly and configuration file is inequality in the different client software bags.
The title of each assembly and configuration file can be divided into prefix, key word and three parts of suffix.Wherein, prefix and suffix are to be set to revisablely, can arbitrarily change; And key word is set to and can not revises, and the key word of same type component may be made as identical; Can reach the purpose of revising component Name by revising the prefix and the suffix of component Name.
When assembly (can be random component) starts, obtain the component Name of self earlier, by key word whole title is divided into three parts, before key word is prefix, and behind key word is suffix.Behind the prefix suffix that obtains assembly, add the key word or the associated component key word of configuration file, thereby can obtain the title of the pairing configuration file of this assembly and the title of other associated component.By reading configuration file, obtain the custom attributes of client in the configuration file, thereby assembly can be realized client's customization characteristic.This custom attributes can be to show specific information when assembly is carried out, or the order (being treatment scheme) of regulation assembly execution etc.Such as, after this assembly is carried out, can make operation to continue by searching of custom attributes obtained the next assembly that needs execution, realize the customization demand; By promoting the efficient of seeking custom attributes, promote the efficient of client software bag customization.Be convenient to when realizing different customization software, make different clients use same set of assembly (being same set of code) can not produce problems such as covering, conflict; And, do not need to revise any code and just can realize the software package customization.
With reference to Fig. 2, further, above-mentioned steps S10 specifically comprises:
Suitable software package configuration file searched in step S100, the prefix of utilizing component Name, suffix and configuration file key word;
Step S101, the prefix of utilizing component Name, suffix and associated component key word, the search associated component.
As mentioned above, by prefix and the suffix that utilizes assembly self, and the key word of profile name, the configuration file in the software package of search component correspondence; And prefix, suffix and associated component key word by utilizing component Name, the search associated component.
Further, above-mentioned steps S10 also specifically comprises:
Step S102, judge whether to search configuration file or associated component;
Step S103, when not searching suitable configuration file or associated component, produce information.
After a period of time, can judge whether to search configuration file or associated component in the process of carrying out above-mentioned search configuration file automatically; When determining to have searched configuration file, then can carry out above-mentioned steps S11; When not searching suitable configuration file or associated component, produce information and notify the user, and next step instruction of wait user that stops search.
The above-mentioned method that the customization software package is provided fast is set to prefix, key word and suffix three parts by assembly and profile name and forms; Utilize the key word of setting that the component Name cutting is prefix, key word, three parts of suffix; Assembly utilizes component Name prefix, configuration file key word, component Name suffix to obtain profile name; Assembly utilizes component Name prefix, relative associated component key word, component Name suffix to obtain relative associated component; Configuration file is searched and opened to assembly, obtains the customization attribute that defines in the configuration file; Assembly is realized different customization functions according to the customization attribute, to realize the customization demand; Assembly loads relative associated component, associated component also utilizes the title cutting to obtain prefix, key word and suffix, the circulation said process, from configuration file, obtain the customization attribute, realize the customization function of associated component, and the like, thereby the customization function of realization whole software bag.The present invention provides the method and the device of customization software package fast, makes different clients adopt same set of assembly (being same set of code) to form different client software bags, realizes different requirements of customers and can not produce problems such as covering, conflict; And, do not need to revise the customization that any code just can be realized software package, thereby promote the efficient of client software bag customization.
In the above-mentioned method that the customization software package is provided fast, all clients' demand is all distinguished by configuration file, all clients' code all is same set of code, the demand that satisfies the client not needs is revised code, only needing to revise configuration file can finish, owing to do not relate to code revision, therefore do not need to test again, reduced the workload of exploitation, test, maintenance.
With reference to Fig. 3, a kind of embodiment that the device of customization software package is provided fast of the present invention is proposed.This device comprises:
Configuration file search module 20 is used to utilize the component Name of assembly, searches for suitable software package configuration file and associated component;
Custom attributes acquisition module 30 is used for obtaining the software package custom attributes adaptive with assembly by configuration file.
Above-mentioned configuration file search module 20 can obtain the component Name of self earlier when assembly (can be random component) starts, by key word whole title is divided into three parts, and before key word is prefix, and behind key word is suffix.Behind the prefix suffix that obtains assembly, add the key word of configuration file, thereby can obtain the title of the pairing configuration file of this assembly and the title of other associated component.
Above-mentioned custom attributes acquisition module 30 can obtain the custom attributes of client in the configuration file, thereby assembly can be realized client's customization characteristic by reading configuration file.This custom attributes can be to show specific information when assembly is carried out, or the sequential scheduling of regulation assembly execution.Such as, after this assembly is carried out, can make operation to continue by searching of custom attributes obtained the next assembly that needs execution, realize the customization demand; By promoting the efficient of seeking custom attributes, promote the efficient of client software bag customization.Be convenient to when realizing different customization software, make different clients use same set of assembly (being same set of code) can not produce problems such as covering, conflict; And, do not need to revise any code and just can realize the software package customization.
With reference to Fig. 4, said apparatus also comprises: title cutting module 40, utilize the key word that defines, and be prefix, key word and suffix with the component Name cutting.
Above-mentioned configuration file search module 20 specifically is used for: utilize prefix, suffix and the configuration file key word of component Name, search for suitable software package configuration file; And, utilize the key word of prefix, suffix and the associated component of component Name, the search associated component.It can be by prefix and the suffix that utilizes assembly self, and the key word of profile name, the configuration file in the software package of search component correspondence; And, utilize the key word of prefix, suffix and the associated component of component Name, the search associated component.
Above-mentioned configuration file search module 20 also specifically is used for: when not searching suitable configuration file or associated component, produce information.It after a period of time, can judge whether to search configuration file or associated component in the process of carrying out above-mentioned search configuration file automatically; When determining to have searched configuration file or associated component, then can obtain custom attributes by above-mentioned custom attributes acquisition module 30; When not searching suitable configuration file, produce information and notify the user, and next step instruction of wait user that stops search.
Above-mentionedly be set to prefix, key word and suffix three parts are formed by assembly and profile name; Title cutting module 30 utilizes the key word of setting that the component Name cutting is prefix, key word, three parts of suffix; Assembly utilizes component Name prefix, configuration file key word, component Name suffix to obtain profile name; Assembly utilizes component Name prefix, relative associated component key word, component Name suffix to obtain relative associated component; Configuration file is searched and opened to assembly, obtains the customization attribute that defines in the configuration file; Assembly is realized different customization functions according to the customization attribute, to realize the customization demand; Assembly loads relative associated component, associated component also utilizes title cutting module 30 to obtain prefix, key word and suffix, the circulation said process, from configuration file, obtain the customization attribute, realize the customization function of associated component, and the like, thereby the customization function of realization whole software bag.The present invention provides the method and the device of customization software package fast, makes different clients adopt same set of assembly (being same set of code) to form different client software bags, realizes different requirements of customers and can not produce problems such as covering, conflict; And, do not need to revise the customization that any code just can be realized software package, thereby promote the efficient of client software bag customization.
State in the use during the device that the customization software package is provided fast customizes, all clients' demand is all distinguished by configuration file, all clients' code all is same set of code, the demand that satisfies the client not needs is revised code, only needing to revise configuration file can finish, owing to do not relate to code revision, therefore do not need to test again, reduced the workload of exploitation, test, maintenance.
The above only is the preferred embodiments of the present invention; be not so limit claim of the present invention; every equivalent structure or equivalent flow process conversion that utilizes instructions of the present invention and accompanying drawing content to be done; or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.
Claims (8)
1. the method that the customization software package is provided fast is characterized in that, comprises step:
Utilize the component Name of assembly, search for suitable software package configuration file and associated component;
Obtain the custom attributes adaptive in the software package by configuration file with assembly.
2. the method that the customization software package is provided fast according to claim 1 is characterized in that, the described component Name that utilizes assembly also comprises before searching for the step of suitable software package configuration file and associated component:
Utilizing the key word of definition, is prefix, key word and suffix with the component Name cutting.
3. the method that the customization software package is provided fast according to claim 2 is characterized in that, the described component Name that utilizes assembly is searched for the suitable software package configuration file and the step of associated component and specifically comprised:
Utilize prefix, suffix and the configuration file key word of component Name, search for suitable software package configuration file;
Utilize prefix, suffix and the associated component key word of component Name, the search associated component.
4. according to any described method that the customization software package is provided fast in the claim 1 to 3, it is characterized in that described method also comprises:
When not searching suitable configuration file or associated component, produce information.
5. the device that the customization software package is provided fast is characterized in that, comprising:
The configuration file search module is used to utilize the component Name of assembly, searches for suitable software package configuration file and associated component;
The custom attributes acquisition module is used for obtaining the software package custom attributes adaptive with assembly by configuration file.
6. the device that the customization software package is provided fast according to claim 5 is characterized in that, described device also comprises:
Title cutting module is utilized the key word that defines, and is that cutting is prefix, key word and suffix with the component Name cutting.
7. the device that the customization software package is provided fast according to claim 6 is characterized in that, described configuration file search module specifically is used for:
Utilize prefix, suffix and the configuration file key word of component Name, search for suitable software package configuration file;
Utilize the key word of prefix, suffix and the associated component of component Name, the search associated component.
8. according to any described device that the customization software package is provided fast in the claim 5 to 7, it is characterized in that described configuration file search module also specifically is used for:
When not searching suitable configuration file or associated component, produce information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010540532 CN102004640B (en) | 2010-11-11 | 2010-11-11 | Method and device for rapidly providing customized software package |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010540532 CN102004640B (en) | 2010-11-11 | 2010-11-11 | Method and device for rapidly providing customized software package |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102004640A true CN102004640A (en) | 2011-04-06 |
CN102004640B CN102004640B (en) | 2013-05-08 |
Family
ID=43812022
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010540532 Active CN102004640B (en) | 2010-11-11 | 2010-11-11 | Method and device for rapidly providing customized software package |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102004640B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104320387A (en) * | 2014-10-11 | 2015-01-28 | 广东欧珀移动通信有限公司 | Local module customizing method, terminal and server |
CN104391687A (en) * | 2014-10-28 | 2015-03-04 | 深圳市多彩人生技术有限公司 | Method and system for realizing internet APP (application) public platform of enterprise and association |
CN104820602A (en) * | 2015-05-18 | 2015-08-05 | 北京瑞星信息技术有限公司 | Method, device and system for publishing software package |
CN108549555A (en) * | 2018-04-10 | 2018-09-18 | Tcl通力电子(惠州)有限公司 | Processing method, embedded system device and the storage medium of customized software |
CN114356363A (en) * | 2021-11-30 | 2022-04-15 | 重庆长安汽车股份有限公司 | Online manufacturing method and management system of software upgrading package |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1567190A (en) * | 2002-12-17 | 2005-01-19 | 国际商业机器公司 | System and method for central management of built-in desktop components |
CN101158896A (en) * | 2007-08-31 | 2008-04-09 | 南京联创科技股份有限公司 | Service assemblage based on MVC and method for page moulding development WEB platform |
CN101222371A (en) * | 2008-01-24 | 2008-07-16 | 中国海洋大学 | Client terminal component operation management system |
-
2010
- 2010-11-11 CN CN 201010540532 patent/CN102004640B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1567190A (en) * | 2002-12-17 | 2005-01-19 | 国际商业机器公司 | System and method for central management of built-in desktop components |
CN101158896A (en) * | 2007-08-31 | 2008-04-09 | 南京联创科技股份有限公司 | Service assemblage based on MVC and method for page moulding development WEB platform |
CN101222371A (en) * | 2008-01-24 | 2008-07-16 | 中国海洋大学 | Client terminal component operation management system |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104320387A (en) * | 2014-10-11 | 2015-01-28 | 广东欧珀移动通信有限公司 | Local module customizing method, terminal and server |
CN104320387B (en) * | 2014-10-11 | 2018-01-19 | 广东欧珀移动通信有限公司 | Component localization method for customizing, terminal and server |
CN104391687A (en) * | 2014-10-28 | 2015-03-04 | 深圳市多彩人生技术有限公司 | Method and system for realizing internet APP (application) public platform of enterprise and association |
CN104391687B (en) * | 2014-10-28 | 2017-11-28 | 深圳市多彩人生技术有限公司 | The realization method and system of the internet APP common platforms of enterprise and corporations |
CN104820602A (en) * | 2015-05-18 | 2015-08-05 | 北京瑞星信息技术有限公司 | Method, device and system for publishing software package |
CN108549555A (en) * | 2018-04-10 | 2018-09-18 | Tcl通力电子(惠州)有限公司 | Processing method, embedded system device and the storage medium of customized software |
CN114356363A (en) * | 2021-11-30 | 2022-04-15 | 重庆长安汽车股份有限公司 | Online manufacturing method and management system of software upgrading package |
Also Published As
Publication number | Publication date |
---|---|
CN102004640B (en) | 2013-05-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102004640B (en) | Method and device for rapidly providing customized software package | |
CN106325965B (en) | The Compilation Method and device of operating system | |
CN101408899A (en) | Method and apparatus for switching website multiple data sources | |
CN103176769A (en) | Customizable software deployment, installation method and system | |
US20100313197A1 (en) | System and method for operating domain profile using database in core framework for sdr mobile terminals | |
CN104699537A (en) | Program control method, activity module scheduling method and corresponding devices thereof | |
CN108874924A (en) | Creation method, device and the computer readable storage medium of search service | |
CN103345394A (en) | Method for rapidly making application software of native mobile phones | |
CN103744680A (en) | Method and device for business process processing | |
CN109636306A (en) | Node-flow shifting method, device, terminal and storage medium | |
CN102222278A (en) | Operation process customizing method and device | |
CN103259936A (en) | Operating system upgrade method for mobile terminal and operating system upgrade device of operating system upgrade method | |
CN105516154A (en) | Security policy configuration method and device applied to SEAndroid (Security-Enhanced Android) system | |
CN106598620A (en) | Code generation method and code generator | |
US20130091416A1 (en) | Method for establishing a relationship between semantic data and the running of a widget | |
CN107870771A (en) | Application builds and upgrade method and system | |
CN101697122A (en) | Method for generating report query conditions through predefined components | |
CN104144215A (en) | Method for building Internet-of-Things ubiquitous device resource model | |
CN113626128B (en) | Audio-visual media micro-service third-party module access method, system and electronic equipment | |
CN105700877A (en) | Application deployment method and apparatus | |
CN107908390A (en) | A kind of extended method and system of WebGIS applications | |
CN105447072A (en) | Configurable interface framework as well as searching method and system utilizing framework | |
CN107797823A (en) | Business Rule Management method, apparatus, storage medium and computer equipment | |
CN104361040A (en) | Method and device for customized query | |
CN104598249A (en) | Multi-tenant perception software personalized customization and deployment method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20170406 Address after: 100000 room 703-710, room B3, Huayuan Road, Haidian District, Beijing, 7 Patentee after: Beijing Minghua Alliance Technology Co., Ltd. Address before: 518057 Shenzhen, Guangdong, Nanshan District hi tech Zone, Shenzhen Software Park building, room 4, Room 403 Patentee before: Shenzhen Wendingchuang Data Technology Co., Ltd. |
|
TR01 | Transfer of patent right |