CN102541561B - Method for developing configuration type software and device - Google Patents

Method for developing configuration type software and device Download PDF

Info

Publication number
CN102541561B
CN102541561B CN201110452893.XA CN201110452893A CN102541561B CN 102541561 B CN102541561 B CN 102541561B CN 201110452893 A CN201110452893 A CN 201110452893A CN 102541561 B CN102541561 B CN 102541561B
Authority
CN
China
Prior art keywords
view
service logic
software development
configuration file
module
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
Application number
CN201110452893.XA
Other languages
Chinese (zh)
Other versions
CN102541561A (en
Inventor
张铁山
夏文芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GCI Science and Technology Co Ltd
Original Assignee
GCI Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GCI Science and Technology Co Ltd filed Critical GCI Science and Technology Co Ltd
Priority to CN201110452893.XA priority Critical patent/CN102541561B/en
Publication of CN102541561A publication Critical patent/CN102541561A/en
Application granted granted Critical
Publication of CN102541561B publication Critical patent/CN102541561B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a method for developing configuration type software and a device. The method includes steps of modularizing commonly used business logics; preliminarily expanding a view, giving corresponding properties to the view when the view is created, identifying the corresponding property by solidified business logics, and carrying out corresponding operation; and expanding the view again, integrating the view with a controller, adding identification for operation of users into the view, executing corresponding events according to identified operation, reading corresponding configuration files, and correlating the view with the business logics according to the read configuration files. The method for developing the configuration type software and the device have the advantages that the commonly used business logics are modularized, the view is expanded twice, the corresponding properties are given to the view, the identification for operation of the users is added into the view, accordingly, scheduling of functions realized in advance is realized by the aid of the configuration files, and the software can be quickly developed on the premise of guaranteeing quality.

Description

Collocation type software development methodology and device
Technical field
The present invention relates to field of software development, particularly relate to a kind of collocation type software development methodology and a kind of collocation type software development apparatus.
Background technology
The exploitation of regular software, needs relevant developer to be familiar with the programming language of being correlated with, and has gained some understanding to relevant system development and just can develop.At present, the exploitation major part on mobile phone application software all takes MVC (Model/View/Controller) pattern (as IOS, Android, Window Phone7 exploitation all adopts this pattern), as shown in Figure 1, wherein:
Model (Model), for encapsulating the data relevant to the service logic of application program and the disposal route to data;
View (View), view layer can realize the autotelic display of data (in theory, this is optional).Generally do not have the logic in program in the view, in order to realize the refresh function on view, view needs the data model (Model) of accessing its supervision, the data there registration that therefore should monitored by it in advance;
Controller (Controller), controller plays the function of organization between different aspects, and for the flow process of controlling application program, its process event also responds." event " comprises the change on the behavior of user and data model.
Adopt the benefit of MVC pattern to be that MVC pattern achieves being separated of functional module and display module, it also increases the maintainability of application system, extensibility, portability etc. simultaneously.But; said method also brings the trouble in exploitation; need cost a large amount of in the time in software development; and the similar software of each exploitation all needs again to write code; cause very large time waste; especially, in small-sized and medium scale application program, adopt MVC pattern to take a large amount of time, usually can lose more than gain.
In application program of mobile phone except game, except these more special programs of browser, general conventional application program as address list, note, note ability etc. be all mainly reading to data/check, increase, delete, several function such as amendment.But, even if simple application program again, if not specialize in software development people, be unfamiliar with relevant programming language, related system of just getting it right exploitation is had gained some understanding and also cannot be completed the exploitation of relative application software.Further, even if be familiar with very much the exploitation of software, the exploitation for new opplication software usually also needs the time of at substantial, and the difficult quality guarantee of exploitation.
So, the personnel of a never contacted software development how can be allowed also to complete Develop Application System soon, and also have certain guarantee in software quality?
Summary of the invention
For solving the problem, the invention provides a kind of collocation type software development methodology and device, the personnel of a never contacted software development can being allowed when ensureing certain software quality to complete the exploitation of software soon.
For achieving the above object, the present invention adopts following technical scheme:
A kind of collocation type software development methodology, comprises the following steps:
By conventional business logic modules;
Carry out preliminary propagation to view, specifically comprise: give corresponding attribute to view when a view is created, the service logic of solidification carries out identifying and operating accordingly according to this corresponding attribute;
View is expanded again, view and controller are integrated; Described the process that view is expanded again specifically to be comprised: add the identification to user operation in the view, operation according to identifying performs corresponding event, and corresponding configuration file is read, then realize view according to the configuration file read and be associated with service logic.
A kind of collocation type software development apparatus, comprising:
Service logic curing module, for the business logic modules that will commonly use;
First view extension module, for carrying out preliminary propagation to view, gives corresponding attribute to view when a view is created, and the service logic of solidification carries out identifying and operating accordingly according to this corresponding attribute;
Second view extension module, for again expanding view, view and controller are integrated, add the identification to user operation in the view, operation according to identifying performs corresponding event, and corresponding configuration file is read, then realize view according to the configuration file read and be associated with service logic.
As can be seen from above scheme, collocation type software development methodology of the present invention and device, the business logic modules conventional by some, then carries out twice expansion to view, give corresponding attribute to view during first time expansion, the view of the service logic of solidification to change is operated; Add in the view during second time expansion the identification of user operation and carry out the process of corresponding event, so just by configuration file realization calling practical function in advance, thus the object of software development can be realized.Collocation type software development methodology of the present invention and device, only need can complete Develop Application System by configuration or visual edit, many advanced software development techniques are known without the need to software developer, just the personnel of a never contacted software development at last also can complete Develop Application System soon, considerably reduce the time of application development; The present invention need not write any code in addition, has also just fundamentally stopped the generation of the situation that software quality that is that cause cannot ensure due to the uneven of software developer's ability.
Accompanying drawing explanation
Fig. 1 is MVC mode configuration schematic diagram;
Fig. 2 is a kind of collocation type software development methodology of the present invention schematic flow sheet;
Fig. 3 is that the two-dimentional form of relational database stores schematic diagram data;
Fig. 4 is the schematic flow sheet of the implementation method of data display function;
Fig. 5 is the schematic flow sheet of the implementation method of data storage function;
Fig. 6 is the structural representation of a kind of collocation type software development apparatus of the present invention.
Embodiment
Conventional software develops, and after completing the editor of view, needs to add the response of corresponding controller to event handling, and needs to write a large amount of code process service logics.Write the demand of a large amount of code exactly because above-mentioned, make software development become an advanced technical work, not only need the software developer be correlated with to be familiar with the programming language of being correlated with, and also need to have gained some understanding to relevant system development.The personnel being difficult to the never contacted software development of the imagination one can complete a Develop Application System in a short period of time fast, and also have certain guarantee in software quality.Have based on this, the present invention proposes a kind of collocation type software development methodology and device, realizes the seamless combination of Model, View, Control, only can realize correlation function by the configuration of view, complete the exploitation of software.
As shown in Figure 2, a kind of collocation type software development methodology, comprises the following steps:
Step S1, by conventional business logic modules, the function main by some realizes in advance, only need get final product real corresponding function by configuration, do not need the code going again to write large amount of complex when this function of needs.In actual application, only need carry out visual edit to view (View), eliminate the editor of process to controller response events and large amount of complex business logic processing code.At present, in application program of mobile phone exploitation, the Integrated Development Environment of main flow as: IOS, Android, Window Phone7, is integrated with view editing machine, can cross directly to drag control and carry out visual edit.
Step S2, carry out preliminary propagation to view (View), the process of this preliminary propagation specifically comprises: give corresponding attribute to view when a view is created, and the service logic of solidification carries out identifying and operating accordingly according to this corresponding attribute.
View is made up of control, control (or parts, control or widget) be a kind of graphical user-interface element, the information arrangement of its display can be changed by user, such as form or text box.The feature of control definition is for the direct control (direct manipulation) of data-oriented provides independent interaction point.The present invention, by the expansion to view control, can make it more easily by service logic layer operation.
Mainly containing the relevant information reading view to the operating aspect of view, assignment (view display relevant information) is carried out to view.We know, view is change, can be edited, but corresponding service logic is solidification (i.e. modularization), how does the service logic of so solidifying go to operate the view of change? if the position of view has become, how to go again to identify? just in order to head it off, we just carry out preliminary propagation to view, give corresponding attribute to view when a view is created, the service logic of solidification so just can carry out identifying according to corresponding attribute and then operates accordingly it.So no matter how view changes, as long as corresponding attribute does not change, can identify it and operate in the same old way.
Above-mentioned process of giving corresponding attribute to view specifically can comprise: create the class inheriting original view, and add corresponding attribute at such; Corresponding attribute comprises: the type etc. of the ID of view, table name, row name, field, certainly in order to better by business logical operation, can also add other attribute.
Preferably, described the process that view carries out preliminary propagation specifically also to be comprised: specification is carried out to the preliminary propagation of view, inherits the corresponding interface when expanding control and realize respective attributes.
Step S3, expands again to view, view and controller is integrated; Described the process that view is expanded again specifically to be comprised: add the identification to user operation in the view, operation according to identifying performs corresponding event, and corresponding configuration file is read, then realize view according to the configuration file read and be associated with service logic.
After solving the service logic of solidifying in step S2 and how going the problem that the view of change is operated, the inventive method also needs another difficult point solved to be: how just realize calling practical function in advance by configuration file, thus realize software development object.In order to solve this problem, also need to further expand view, view and controller are integrated, adds the identification to user operation in the view, and carry out the process of corresponding event, so just realize view by configuration associated documents and to be associated with service logic and to realize corresponding function.
As a good embodiment, the process above-mentionedly again to expand view, view and controller integrated specifically can comprise:
Step S301, adds the identification to user operation in the view, and common user operation has: the click, gesture slip, double-click event etc. of button;
Step S302, the operation according to identifying performs corresponding event, and reads corresponding configuration file;
Step S303, according to the configuration file read, calls corresponding service code, realizes associating of view and service logic by reflex mechanism.Describedly realize associating of view and service logic and namely achieve calling practical function in advance, thus achieve software development object.
The effect that view and controller are integrated automatically processes Action Events, as: when user slides or clicks certain button on mobile phone screen, system meeting AM automatic monitoring also makes response.View and controller are done to carry out integration aspect, need to carry out expansion to the view of original system and make it to integrate with controller.Realized in view is associated with service logic by configuration file, the present invention realizes mainly through reflex mechanism; In addition in order to better realize associating of view and service logic, can by inheriting unified interface or using abstract class to realize in Business Logic.
The realization of many-sided function can be supported after view is expanded, as can supported data display store also can support the acquisition display of GPS, the realization etc. of picture shooting.Collocation type software development methodology for a better understanding of the present invention, below just with the example that is embodied as of some common function softwares, method of the present invention is further described in detail:
Embodiment one
The present embodiment is described with the realization of the display of data, storage.
The table of relational database adopts two-dimentional form to store data, and be a kind of logical groups with relevant information arranged with row by row, it is similar to shop order table.As shown in Figure 3, a database can comprise any number of tables of data.Wherein, field: each row in tables of data are called a field; Key word: the uniqueness being used for guaranteeing record in showing.
First the display memory function of data can realize (by this business logic modules) by advance, only need get final product real corresponding function by configuration when this function of needs.Then, can mutually mate to reach between Data View with database, we need to carry out preliminary propagation to view, increase respective attributes in the view, in integration view, the control of view is expanded for this reason, it is made to have the attribute of table name and field, like this when showing data and database purchase, Business Logic can by integrating the attribute of view and the table name of database and fields match, thus reach and database data is shown to view and the data that represented by view are stored into database.
As shown in Figure 4, the realization of concrete data display (reading) function can comprise the steps:
Step one, view trigger controller response events;
Step 2, calls service logic according to configuration file;
Step 3, reads the attribute of related control from view;
Step 4, according to reading attributes reading database information;
Step 5, data cached information;
Step 6, carry out mating assignment with the control in view show data cached, flow process terminates.
In addition, as shown in Figure 5, the realization of the memory function of data can comprise the steps:
Step one, view trigger controller response events;
Step 2, calls service logic according to configuration file;
Step 3, reads the attribute of related control and the value of display from view;
Display data, according to reading attributes, are stored into database by step 4;
Step 5, buffer memory result;
Step 6, shows buffered results, and flow process terminates.
Can be found out by the present embodiment, only by configuration or visual edit, need can realize display and the storage of data, considerably reduce the time of application development, and any code need not be write.
Embodiment two
The realization that the present embodiment obtains with GPS is described:
In GPS acquisition realizes, only need open the GPS of mobile phone, read GPS information (as longitude and latitude), then show; According to principle of the present invention, at Business Logic first by above-mentioned working flow control, then in integration view, control is expanded, increase attribute, make its longitude supporting to show or latitude; Only need search in active view when showing the control supporting GPS to show, and mate with the GPS longitude and latitude got according to the attribute of control and show.
Embodiment three
The present embodiment is described with the realization of picture shooting:
In picture shooting realizes, be first calling mobile phone camera, pictures taken, by picture-storage in mobile phone; Then the picture of shooting is shown.According to principle of the present invention, similarly first at Business Logic by above-mentioned working flow control, then integration view in still need to expand control, increase attribute, make it support picture shooting Presentation Function.Only need search in active view when showing the control supporting pictures taken to show, path assignment pictures taken returned gives display control, then shows control and reads picture path and shown by picture.
The present invention mainly for application program of mobile phone exploitation aspect, but is equally also applicable to the exploitation of panel computer or multipad.
Corresponding with a kind of collocation type software development methodology of the present invention, the present invention also provides a kind of collocation type software development apparatus, as shown in Figure 6, comprising:
Service logic curing module, for the business logic modules that will commonly use;
First view extension module, for carrying out preliminary propagation to view, gives corresponding attribute to view when a view is created, and the service logic of solidification carries out identifying and operating accordingly according to this corresponding attribute;
Second view extension module, for again expanding view, view and controller are integrated, add the identification to user operation in the view, operation according to identifying performs corresponding event, and corresponding configuration file is read, then realize view according to the configuration file read and be associated with service logic.
Preferably, described first view extension module can comprise the creation module of class, for creating the class inheriting original view when giving corresponding attribute to view, and adds corresponding attribute at such; Corresponding attribute comprises: the type etc. of the ID of view, table name, row name, field.
Preferably, described first view extension module can also comprise specification module, for carrying out specification to the preliminary propagation of view, inheriting the corresponding interface when expanding control and realizing respective attributes.
In addition, described second view extension module also comprises:
Add module, for adding the identification to user operation in the view;
Performing and read module, for performing corresponding event according to the operation identified, and corresponding configuration file being read;
Relating module, for according to the configuration file read, realizes associating of view and service logic by reflex mechanism.
As a good embodiment, described relating module can by inheriting unified interface or using abstract class to realize associating of view and service logic at Business Logic.
Other technical characteristic of collocation type software development apparatus of the present invention is roughly the same with collocation type software development methodology of the present invention, and device of the present invention is also identical with method of the present invention in the display storage, the acquisition display of GPS, the realization of picture shooting etc. that realize such as data, so place it will not go into details.
Can be found out by above scheme, collocation type software development methodology of the present invention and device, the business logic modules conventional by some, then carries out twice expansion to view, give corresponding attribute to view during first time expansion, the view of the service logic of solidification to change is operated; Add in the view during second time expansion the identification of user operation and carry out the process of corresponding event, so just by configuration file realization calling practical function in advance, thus the object of software development can be realized.Collocation type software development methodology of the present invention and device, only need can complete Develop Application System by configuration or visual edit, many advanced software development techniques are known without the need to software developer, just the personnel of a never contacted software development at last also can complete Develop Application System soon, considerably reduce the time of application development; The present invention need not write any code in addition, has also just fundamentally stopped the generation of the situation that software quality that is that cause cannot ensure due to the uneven of software developer's ability.
Above-described embodiment of the present invention, does not form limiting the scope of the present invention.Any amendment done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within claims of the present invention.

Claims (8)

1. a collocation type software development methodology, is characterized in that, comprises the following steps:
By conventional business logic modules, wherein conventional business logic modules is comprised and some main functions are realized in advance, only need can realize corresponding function by configuration when this function of needs, not need the code removing to write large amount of complex again;
Carry out preliminary propagation to view, specifically comprise: give corresponding attribute to view when a view is created, the service logic of solidification carries out identifying and operating accordingly according to this corresponding attribute;
View is expanded again, view and controller are integrated; Described the process that view is expanded again specifically to be comprised: add the identification to user operation in the view, operation according to identifying performs corresponding event, and corresponding configuration file is read, then realize view according to the configuration file read and be associated with service logic;
Described process of giving corresponding attribute to view specifically comprises: create the class inheriting original view, and add corresponding attribute at such; Corresponding attribute comprises: the type of the ID of view, table name, row name, field.
2. collocation type software development methodology according to claim 1, is characterized in that, describedly specifically also comprises the process that view carries out preliminary propagation: carry out specification to the preliminary propagation of view, inherit the corresponding interface when expanding control and realize respective attributes.
3. collocation type software development methodology according to claim 1, is characterized in that, the described configuration file according to reading realizes the process that view is associated with service logic and specifically comprises:
According to the configuration file read, realize associating of view and service logic by reflex mechanism.
4. collocation type software development methodology according to claim 3, it is characterized in that, the described view that realizes specifically also comprises with the process that service logic is associated: at Business Logic by inheriting unified interface or using abstract class to realize associating of view and service logic.
5. a collocation type software development apparatus, is characterized in that, comprising:
Service logic curing module, for the business logic modules that will commonly use, wherein conventional business logic modules is comprised and some main functions are realized in advance, only need can realize corresponding function by configuration when this function of needs, not need the code removing to write large amount of complex again;
First view extension module, for carrying out preliminary propagation to view, gives corresponding attribute to view when a view is created, and the service logic of solidification carries out identifying and operating accordingly according to this corresponding attribute;
Second view extension module, for again expanding view, view and controller are integrated, add the identification to user operation in the view, operation according to identifying performs corresponding event, and corresponding configuration file is read, then realize view according to the configuration file read and be associated with service logic;
Described first view extension module comprises the creation module of class, for creating the class inheriting original view when giving corresponding attribute to view, and adds corresponding attribute at such; Corresponding attribute comprises: the type of the ID of view, table name, row name, field.
6. collocation type software development apparatus according to claim 5, is characterized in that, described first view extension module also comprises specification module, for carrying out specification to the preliminary propagation of view, inheriting the corresponding interface when expanding control and realizing respective attributes.
7. collocation type software development apparatus according to claim 5, is characterized in that, described second view extension module comprises:
Add module, for adding the identification to user operation in the view;
Performing and read module, for performing corresponding event according to the operation identified, and corresponding configuration file being read;
Relating module, for according to the configuration file read, realizes associating of view and service logic by reflex mechanism.
8. collocation type software development apparatus according to claim 7, is characterized in that, described relating module at Business Logic by inheriting unified interface or using abstract class to realize associating of view and service logic.
CN201110452893.XA 2011-12-29 2011-12-29 Method for developing configuration type software and device Active CN102541561B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110452893.XA CN102541561B (en) 2011-12-29 2011-12-29 Method for developing configuration type software and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110452893.XA CN102541561B (en) 2011-12-29 2011-12-29 Method for developing configuration type software and device

Publications (2)

Publication Number Publication Date
CN102541561A CN102541561A (en) 2012-07-04
CN102541561B true CN102541561B (en) 2015-02-04

Family

ID=46348534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110452893.XA Active CN102541561B (en) 2011-12-29 2011-12-29 Method for developing configuration type software and device

Country Status (1)

Country Link
CN (1) CN102541561B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103823658A (en) * 2012-11-19 2014-05-28 苏州博远容天信息科技有限公司 Bridge architecture based coordinative dynamic reflection technology
CN106610837A (en) * 2016-12-26 2017-05-03 中国建设银行股份有限公司 Application development method and development platform
CN108268517B (en) * 2016-12-30 2021-11-26 希姆通信息技术(上海)有限公司 Method and system for managing labels in database
CN108563431B (en) * 2018-04-20 2021-09-10 云宏信息科技股份有限公司 Software development method and device, computer-readable storage medium and electronic equipment
CN110956413A (en) * 2019-12-17 2020-04-03 国家体育总局体育科学研究所 Inspection system based on fixed flow
CN112000407A (en) * 2020-08-13 2020-11-27 北京字节跳动网络技术有限公司 Interface interaction method and device, terminal equipment and storage medium
CN113419710B (en) * 2021-06-25 2024-03-15 北京悟空出行科技有限公司 Development method and device of applet, electronic equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101236490A (en) * 2007-02-01 2008-08-06 阿里巴巴公司 Method and system for obtaining business logic
CN101364176A (en) * 2008-08-12 2009-02-11 北京航空航天大学 BPEL visual model building system based on GMF
CN102117203A (en) * 2009-12-30 2011-07-06 上海杉达学院 Information management system based on Struts frame

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101236490A (en) * 2007-02-01 2008-08-06 阿里巴巴公司 Method and system for obtaining business logic
CN101364176A (en) * 2008-08-12 2009-02-11 北京航空航天大学 BPEL visual model building system based on GMF
CN102117203A (en) * 2009-12-30 2011-07-06 上海杉达学院 Information management system based on Struts frame

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于MVC设计模式的Struts框架及其应用的研究;冯相忠;《计算机技术与发展》;20060831;第16卷(第8期);第131页-第136页 *

Also Published As

Publication number Publication date
CN102541561A (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN102541561B (en) Method for developing configuration type software and device
CN107644286B (en) Workflow processing method and device
US10127507B2 (en) Project management system providing interactive issue creation and management
CN115617327A (en) Low code page building system, method and computer readable storage medium
CN105528418B (en) A kind of design documentation generation method and device
CN111061475B (en) Software code generating method, device, computer equipment and storage medium
US20140040791A1 (en) Development platform for software as a service (saas) in a multi-tenant environment
CN103593174A (en) Adaptable business object
CN106484394A (en) A kind of fast software development system with double engines
CN101853157B (en) Automatic identification method for application software GUI object
CN105229678A (en) Process modeling and interface
CN108509207A (en) The cross-system of WEB application program is installed
CN105637478A (en) Computer-aided development of native mobile application code
CN106663090A (en) Converting presentation metadata to a browser-renderable format during compilation
CN108469953A (en) A kind of generation method of page table list, server and storage medium
CN113407284A (en) Navigation interface generation method and device, storage medium and electronic equipment
de_Almeida Monte-Mor et al. Applying MDA approach to create graphical user interfaces
CN116778124A (en) Three-dimensional scene editing method, system, equipment and storage medium
CN113094039B (en) Automatic code generation system based on database table
WO2012155844A1 (en) Method and device for automatic removal of code
CN117215556A (en) Modularized page rapid construction method, system, equipment and medium
US9176746B2 (en) Data templates in user interface elements
EP4258138A1 (en) Image tracing system and method
CN108845857A (en) A kind of icon management method and device based on cloud platform
JP2008287365A (en) Program generation device, program generation method, program, and recording medium

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