Font Size: a A A

Design And Implementation Of MVC Unified Framework For Large-Scale Software Architecture

Posted on:2010-08-06Degree:MasterType:Thesis
Country:ChinaCandidate:K WanFull Text:PDF
GTID:2178360272497030Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the business-to-information products has become increasingly dependent, the functionality of related software products more and more powerful, Software Architecture more and more complex, at the same time cause the development of software is also more and more large scale. The increasingly large scale software development brings new opportunities and new challenges to major software companies. Judging from the present situation, the development of high cost and high maintenance costs, high rate of duplication of development, development of low efficiency, the market response has been slow are haunt the software companies of the major problems. For the above problems and part of the reason is that most software development companies in software development, they often lack a good framework and development model. In a sense, to users, the client is the software system and the importance of the client of software system is self-evident. According to statistics the application of user interface software development accounted for an average of 48 percent and the volume of the 50% time. This shows that client development efficiency is the one of main factors that affect the efficiency of enterprise software development,therefore improve the efficiency of client development is undoubtedly improve the efficiency of the entire software system to develop a very effective means.In the traditional development model of the client whether it is B/S or C/S architecture has its own advantages and can't make up for their deficiencies. Therefore the use of B/S and C/S architecture combined with XML-based markup language interface of the new development model the client is no doubt there is enormous advantage, this is the future of client development model trend. Design and Implementation of MVC Framework based on the WPF technology, design and implementation of a unified framework for the client based on the MVC Framework,not only can greatly improve the efficient of client and user interface development also allowing the system to increase robustness and maintainability.MVC Framework provider of a range of interfaces and abstract class and is responsible for the initialization of the framework, as well as the scheduling between each layer. MVC Framework for the definition of all the control layer of the base class type (Abstract) Action, all the model layer of the base class type (Abstract) Model, all the business layer of the base class type (Abstract) AppObj, as the interface for control layer, the model layer, business layer interact with the MVC framework. In view layer, MVC Framework for the definition of a series of interfaces for the framework of the operation, XAML page (view objects) through the custom control which implementation of the interfaces to interactive with framework. MVC Framework initialize through the abstract class and interface to link the control layer, model layer, view layer, and not concern the really type of the object. In MVC Framework, the view layer to express the logic of the relationship between model and data and status information as the particular form of display to the user. It obtained information from the model layer and the same information can have a number of different forms of display. These controls in order to be able to interact with the MVC Framework, we need to set up another set of controls based on the MVC Framework architecture which beside the original structure of the control system. We package all the controls which used by system development, and classification of the custom control through a series of interface. Model layer is the framework for data-processing layer, are a collection of object models, as well as the buffer layer between business data objects layer and view objects layer. Model object encapsulates the core of the data and it is independent of the specific expression of the interface. Through the data binding mechanism, the model objects is responsible for automatic storage of the data objects from interface and provide the data which interface to show, and mapped to each other with business data objects. Control layer is a collection of controllers, when the event is triggered in the user interface, the controller will be activated, then controller can access the model data and in accordance with the logic of the corresponding treatment of the input data, provides services to each case the operation, deal with the final data and take back to the relevant user interface. Control layer also provides a page jump and communication method, and provides ViewLogicalLib methods library for system development.Unified Framework is based on the MVC Framework, which includes Unified User Interface, Unified Call Methods, Unified Exception, Unified Data Mapping and Unified Data Check. Unified User Interface provides the Main Framework for the client to maintain the consistency of the user interface for industry-specific system requirements and integration. Unified Call Methods used WPF route event, late binding and reflection mechanism, through MVC Framework provides a unified entrance for call methods which triggered by the events. It can help log the users'track of all operations. Through the configuration of the mapping relations greatly enhance the system flexibility and maintainability. Unified Exception is for developers to mitigate the coding for common exception handling, save the status and rollback, as well as logging. Through the configuration to the Microsoft Enterprise Lib,we classification and repackage the exception according to the current system needs. Use MVC framework and main client framework the unification of the page to load and call methods to establish the unified exception handle. Unified Data Mapping through the configuration of XAML page as well as the MVC Framework interface and initialization, use the model layer as the buffer layer between business object layer and view layer to set up the mapping relationship between them. At the practical application, is required only a simple method call to allow data transfer between them. In the Period their data structure and data types are automatically converted with certain rules and reflection mechanism. At the real-time check, Unified Data Check integrated the regular expression validation library. At the submission check, Unified Data Check provided methods to check all data after submit. Unified Data Check also integrated a unified way of tips and treatment to deal with the result.MVC Unified Framework use the characteristics which throughout the entire system with the client and the overall control system of the client, provides a good interface for Other utilities for the system module. So that other modules can be more in-depth access to all client information and resources, can integration with the system better but without losing their independence and flexibility. At the same time, Framework also comes with auto-configuration tool, through the analysis of XAML document declaration and the controls name which abide naming convention, it can automatic configuration the additional property for the XAML on the page which adapt to the Framework. At the same time, the model layers files can be automatically generate. In the actual development process we can found that when the business needs defined, more than 80% of the page elements of the system has confirmed. At present, we have been able to extract pages of the basic module and generate the relevant UserControls, the next step is automatically combination these UserControls to page and generated the dynamic page The purpose is, use MVC Unified Framework and auto-configuration tool to break up the traditional model of client development, improve the efficiency of client development and software quality.
Keywords/Search Tags:Software Architecture, Client Development Model, MVC Framework, Client Unified Framework, WPF, Automatic Generation Of User Interface
PDF Full Text Request
Related items