CN102637131A - Flexible and configurable architecture of form controller based on composite mode - Google Patents

Flexible and configurable architecture of form controller based on composite mode Download PDF

Info

Publication number
CN102637131A
CN102637131A CN201210075513XA CN201210075513A CN102637131A CN 102637131 A CN102637131 A CN 102637131A CN 201210075513X A CN201210075513X A CN 201210075513XA CN 201210075513 A CN201210075513 A CN 201210075513A CN 102637131 A CN102637131 A CN 102637131A
Authority
CN
China
Prior art keywords
controller
list
architecture
combined
mode
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.)
Pending
Application number
CN201210075513XA
Other languages
Chinese (zh)
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.)
Inspur Group Shandong General Software Co Ltd
Original Assignee
Inspur Group Shandong General Software 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 Inspur Group Shandong General Software Co Ltd filed Critical Inspur Group Shandong General Software Co Ltd
Priority to CN201210075513XA priority Critical patent/CN102637131A/en
Publication of CN102637131A publication Critical patent/CN102637131A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a flexible and configurable architecture of a form controller based on a composite mode. The flexible and configurable architecture comprises a form model controller, a form element controller and a form controller; the architecture adopts the composite mode as a whole; the single form controller combines the form model controller and the form element controller and coordinates the form model controller and the form element controller to perform operations by steps to complete the control over the whole form interface and background data. The flexible and configurable architecture adopts a flexible assembling mode and can intelligently match the interface structure of the form; the mode of being based on configurable extended attributes is helpful for configuring the internal operational logic of the form controller as needed to well suit specific business scenarios of users; and by substituting the composite mode and the configuration mode for inheritance and the hard-coded architecture design respectively, the architecture and final products which are developed based on the architecture have high reusable capacity, extendibility, adaptability to complex business scenarios, and delivery quality of software.

Description

A kind of based on the flexible configurable list controller architecture of integrated mode
Technical field
The invention belongs to list developing instrument technical field, relate to a kind of based on the flexible configurable list controller architecture of integrated mode.
Background technology
Computing machine is since occurring, and software development technique has experienced from assembly language, procedure-oriented, to object-oriented, popular till now component-oriented, service-oriented exploitation again.Wherein, The component-oriented exploitation is a kind of new software development mode that proposes the early 1990s; It is under the support of certain component model, and the one or more software components in the multiplexing component base are through the suites of measure high-level efficiency, construct the process of application software system in high quality.Software component is equivalent to " standard component " that industrial flow-line is produced, and its maximum characteristics are exactly effectively to reduce the construction cycle, to reduce cost through constantly multiplexing.Along with the member realization technology that with the distributed objects is the basis reaches its maturity, it has become Research on Software Reuse Techniques focus now, is considered to one of soft project developing direction of tool potentiality.
The list controller is based on the thought of componentization, and to the needs of visual self-defined list developing instrument, a cover of developing can adapt to the on-board components storehouse of various self-defined list complicated business scenes to greatest extent.The exploitation of self-defined list controller and configuration, be based in the performance history of visual list developing instrument most important, most crucial, also be the maximum step of workload.Therefore; Built-in list controller whether can better adapt to business demand diversity, whether higher direct utilization rate is arranged to reduce self-defined development workload and to improve development efficiency and user experience, just become the most important thing that restricts self-defined list development efficiency.At present, a lot of built-in list controllers all exist many wretched insufficiencies, can't satisfy the demand of user to ease for use, extensibility and development efficiency, and major defect is following:
1. the framework of list controller is unreasonable, can't mate the interface of various complicacies and mutual flexibly;
2. the reusability of list controller, extensibility are not enough;
3. the accumulation of list controller lacks support and instructs;
4. the exploitation of self-defined list controller, debugging efficiency are not high.
So; To the defective of above-mentioned prior art in existence aspect the list controller; Be necessary to study in fact; Be visual list developing instrument to provide a kind of based on the flexible configurable list controller architecture of integrated mode, provide a cover to have high directly utilization rate, high reusable ability, enhanced scalability and the built-in list controller of the high-adaptability of complicated business scene; Thereby reduce business development personnel's coding work amount and cost of development, improve its development efficiency and Software Delivery quality.
Summary of the invention
For addressing the above problem; The object of the present invention is to provide a kind of based on the flexible configurable list controller architecture of integrated mode, for visual list developing instrument provides a cover to have high directly utilization rate, high reusable ability, enhanced scalability and to the built-in list controller of the high-adaptability of complicated business scene.Thereby reduce business development personnel's coding work amount and cost of development, improve its development efficiency and Software Delivery quality.
For realizing above-mentioned purpose, technical scheme of the present invention is:
A kind of based on the flexible configurable list controller architecture of integrated mode, include list model controller, list element controller and list controller; It adopts synthesis model on the whole: single list controller combination table single model controller and list element controller, and coordinate it and carry out the substep operation, accomplish control to whole form interface and back-end data.
Further, said list controller is divided into single list controller, combination table single controller again, and it is all inherited from abstract list controller.
Further, said combination table single controller is formed by a plurality of single list control combinations, and combined controller itself also can be combined again, so as according to the needs at interface assemble out can adaptive current interface specific controller.
Further, said list element controller, list model controller are combined into basic controller, and basic controller is combined into combined controller; And basic controller, combined controller are combined into more complicated combined controller.
Further, said list model controller is used for being responsible for the processing of data, and said list element controller is used for being responsible for the processing to interface control.
Further; Said list controller architecture facing interface programming; Making is combined partly can replace with different realizations through the mode that disposes easily, and said replacement includes: the replacement of the replacement of the replacement of the replacement of assembled list element controller realization class, assembled list model controller realization class, assembled basic controller realization class and assembled combined controller realization class
Framework of the present invention adopts assembly model flexibly, interfacial structure that can intelligentized coupling list; It is based on the mode of configurable extended attribute, and the inner operation logic of allocation list single controller as required is with the specific business scenario of better adaptation user; And replace inheriting, replace the architecture design of hard coded with the mode of configuration with the mode of combination; Make this framework and the final products of developing based on this framework, all had very high reusable ability, extensibility, the adaptability and the Software Delivery quality of complicated business scene.
Description of drawings
Fig. 1 is the overall schematic of list controller architecture of the present invention;
Fig. 2 is the assembled relation and the extended attribute configuration interface synoptic diagram of list controller architecture of the present invention;
Fig. 3 is the Events Frame structural representation of list controller architecture of the present invention.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and 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.
Please, the present invention is based on the flexible configurable list controller architecture of integrated mode and include list model controller (Model), list element controller (Element) and list controller (Controller) with reference to shown in Figure 1; Wherein, the list controller is divided into single list controller, combination table single controller again, and it is all inherited from abstract list controller.Wherein, the list model controller is responsible for the processing of data; List element controller is responsible for the processing to interface control; The list controller adopts synthesis model generally: single list controller combination table single model controller and list element controller, and coordinate it and carry out the substep operation, accomplish control to whole form interface and back-end data; The combination table single controller is formed by a plurality of single list control combinations, and combined controller itself also can be combined again, so just can be according to the needs at interface, assemble out easily flexibly can adaptive current interface specific controller.Particularly, list element controller (Element), list model controller (Model) are combined into basic controller, and basic controller is combined into combined controller; And basic controller, combined controller are combined into more complicated combined controller.
On general frame, adopt synthesis model, use the mode of combination to realize the multiplexing of function and code, in framework layer the support to enhanced scalability is provided.Its form interface is based on that the pattern of combination pulls out, so, only, could control accurately it based on the list controller of integrated mode.Also have only through assembling, just can close zero, through assembling the complicated service scene is mated with simple parts for whole.
The present invention is based on the flexible configurable list controller architecture facing interface programming of integrated mode, make the part that is combined to replace with different realizations easily through the mode that disposes.These replacements include:
The replacement of the replacement of the replacement of the replacement of assembled list element controller (Element) realization class, assembled list model controller (Model) realization class, assembled basic controller realization class and assembled combined controller realization class.In the division of class, it splits according to degree of gathering in the function, make as far as possible each type accomplish in degree of gathering height, function responsibility single.
The present invention provide call preceding, call in, the complete extended method (Before, On, After) after calling, for subclass provides complete coding framework, realized the segmentation of method and the flexible expansion of code logic.Its extracting section that will change easily becomes extended attribute, and it can be disposed according to service needed when list designs flexibly.Through extended attribute change point is extracted separately and to encapsulate; And can be configured in the business development phase; Make it when business development,, reach the purpose of the inner actuating logic of dynamic adjustment form single controller according to the needs of specific transactions logic through revising the mode of configuration.In addition, the present invention provides incident extension mechanism flexibly, and in operational approach, has preset complete Event triggered point.Make the business development personnel, can be according to specific business scenario, the processing logic of the mode his-and-hers watches single controller through incident carries out bigger dynamic expansion.The mode of extended attribute has only provided the extended mode of details, and the details of the service logic that it has just been discerned inside is controlled.And the mode of incident can reach the bigger expansion to service logic, can expand very complicated service logic according to service needed.
Please with reference to shown in Figure 2, it is assembled relation of the present invention and extended attribute configuration interface synoptic diagram, and the present invention adopts the mode of facing interface programming, and through extended attribute change point is extracted separately and to encapsulate.Make new list controller, just can revise the service logic that member is carried out in development stage through certain configuration.Principle according to encapsulation changes becomes extended attribute with the extracting section that changes easily, and it can be disposed according to service needed when list designs flexibly.As shown in Figure 2, can clearly find out the package assembly of this list controller and the detailed configuration of each assembly node.What wherein, " realization " in the upper right corner showed is according to facing interface programming theory, the example of the self-defined configuration of type of realization; And lower right corner displaying is the principle that changes according to encapsulation; The instance that the change point extended attribute that extracts is configured; User's design period can carry out self-defined configuration to the value of the extended attribute that defines, can reach the purpose of service logic when design period moves according to service needed modification system like this.
Please with reference to shown in Figure 3, it is an Events Frame structural representation of the present invention, the invention provides the case mechanism of a cover based on Observer Pattern, can allow the business development personnel to realize the dynamic expansion of service logic based on configuration.Wherein, each list is all held a distinctive list context instance, and the latter holds an abstract event handler again, so that in controller, trigger specific incident.Event handler is held the access that task manager carries out event configuration, maintenance of event sniffer etc.
The present invention is based on the template method pattern, the operational approach of new table controller all provide call preceding, call in, the complete extended method (Before, On, After) after calling, and events corresponding trigger point.Code sample is as follows:
///?<summary>
///reload data
///?</summary>
public?virtual?void?Reload()
{
This.BeforeReload (); Verification and processing before // the execution
if?(this.CompContext.IsActionCanceled?==?true)
return;
This.CompContext.EventBroker.FireEvent (this, FormEvent.BeforeReload); // Event triggered
This.OnReload (); // core code logic
if?(this.CompContext.IsActionCanceled?==?true)
return;
This.CompContext.EventBroker.FireEvent (this, FormEvent.AfterReload); // Event triggered
This.AfterReload (); Processing after the // execution and rounding-off work
}
Based on this template way, all subclasses all will be followed this mode and write concrete BeforeReload, OnReload, AfterReload method.
Framework of the present invention adopts assembly model flexibly, interfacial structure that can intelligentized coupling list; It is based on the mode of configurable extended attribute, and the inner operation logic of allocation list single controller as required is with the specific business scenario of better adaptation user.And replace inheriting, replace the architecture design of hard coded with the mode of configuration with the mode of combination; Make this framework and the final products of developing based on this framework, all had very high reusable ability, extensibility, the adaptability and the Software Delivery quality of complicated business scene.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. one kind based on the flexible configurable list controller architecture of integrated mode, it is characterized in that, includes list model controller, list element controller and list controller; It adopts synthesis model on the whole: single list controller combination table single model controller and list element controller, and coordinate it and carry out the substep operation, accomplish control to whole form interface and back-end data.
2. according to claim 1 based on the flexible configurable list controller architecture of integrated mode, it is characterized in that: said list controller is divided into single list controller, combination table single controller again, and it is all inherited from abstract list controller.
3. said based on the flexible configurable list controller architecture of integrated mode like claim 2; It is characterized in that: said combination table single controller is formed by a plurality of single list control combinations; Combined controller itself also can be combined again, so as according to the needs at interface assemble out can adaptive current interface specific controller.
4. said based on the flexible configurable list controller architecture of integrated mode like claim 3, it is characterized in that: said list element controller, list model controller are combined into basic controller, and basic controller is combined into combined controller; And basic controller, combined controller are combined into more complicated combined controller.
5. said based on the flexible configurable list controller architecture of integrated mode like claim 4, it is characterized in that: said list model controller is used for being responsible for the processing of data, and said list element controller is used for being responsible for the processing to interface control.
6. said based on the flexible configurable list controller architecture of integrated mode like claim 5; It is characterized in that: said list controller architecture facing interface programming; Making is combined partly can replace with different realizations through the mode that disposes easily, and said replacement includes: the replacement of the replacement of the replacement of the replacement of assembled list element controller realization class, assembled list model controller realization class, assembled basic controller realization class and assembled combined controller realization class.
CN201210075513XA 2012-03-21 2012-03-21 Flexible and configurable architecture of form controller based on composite mode Pending CN102637131A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210075513XA CN102637131A (en) 2012-03-21 2012-03-21 Flexible and configurable architecture of form controller based on composite mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210075513XA CN102637131A (en) 2012-03-21 2012-03-21 Flexible and configurable architecture of form controller based on composite mode

Publications (1)

Publication Number Publication Date
CN102637131A true CN102637131A (en) 2012-08-15

Family

ID=46621534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210075513XA Pending CN102637131A (en) 2012-03-21 2012-03-21 Flexible and configurable architecture of form controller based on composite mode

Country Status (1)

Country Link
CN (1) CN102637131A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106408321A (en) * 2015-07-31 2017-02-15 华为技术有限公司 Management method and device of commodity template, and method and device for calling database, and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7437708B2 (en) * 2001-07-16 2008-10-14 Smartmatic International Corporation Enhanced software components
CN101414303A (en) * 2008-11-25 2009-04-22 浪潮集团山东通用软件有限公司 Structured management method of non-organization document contents

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7437708B2 (en) * 2001-07-16 2008-10-14 Smartmatic International Corporation Enhanced software components
CN101414303A (en) * 2008-11-25 2009-04-22 浪潮集团山东通用软件有限公司 Structured management method of non-organization document contents

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吴雪梅: "面向数据表单的构件库技术的研究与实现", 《C/C++嵌入式软件构件模型及构件管理库的研究与实现》 *
李涛: "C/C++嵌入式软件构件模型及构件管理库的研究与实现", 《中国优秀硕士学位论文全文数据库》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106408321A (en) * 2015-07-31 2017-02-15 华为技术有限公司 Management method and device of commodity template, and method and device for calling database, and system

Similar Documents

Publication Publication Date Title
CN109286653B (en) Intelligent cloud engineering platform
CN101814024B (en) Framework and tool for designing cross-platform 3D interface
CN103064690B (en) A kind of Development Framework based on Android operation system and the method for execution thereof
CN101477463B (en) Software platform and software development platform used for digital television set-top box
CN106201458A (en) A kind of interface creating method can joined flexibly and system
CN102375734B (en) Application product development system, method and device and operation system, method and device
CN100555219C (en) Atom manipulation encapsulation apparatus and method
CN101630340A (en) Graphic-object-oriented single-line diagram vector drawing tool of distribution network
Van Der Linden et al. An OPC UA interface for an evolvable ISA88 control module
CN105933767B (en) Middleware device, Middleware implementation method and television set
CN102650952A (en) Modeling tool order calling method and system based on MVC framework
CN105912341A (en) Configuration method of calibration parameter of sensor, and electronic equipment
CN104461562A (en) Task creating method and system
CN107203465A (en) System interface method of testing and device
CN104517307A (en) Method and device for animation producing
CN102662656A (en) Plug-in method and system for program structure
CN107451789A (en) Business flow processing method and system
CN102541566A (en) Method for generating interface frameworks of semiconductor software
CN102223396A (en) System and method for associating service logic with user interface in computer system based on cloud computing
CN103605526A (en) Template componentized code generating method based on chain-of-responsibility pattern
CN103425469A (en) Method for generating mobile game codes based on MDA technology
CN104063231A (en) Test resource rapid access method based on HIT-TENA
CN110554873A (en) system, computer device and storage medium for realizing human-computer interaction interface
Krupitzer et al. FESAS: Towards a framework for engineering self-adaptive systems
CN102637131A (en) Flexible and configurable architecture of form controller based on composite mode

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120815