| In the traditional Web-based applications, developers may mix business logic,data logic andpresentation logic together. This is not conducive to debug code and design pages, also notconducive to system scalability. The appearance of MVC design pattern solves these problems.MVC is an application system architecture,it divides the various functions of system into Model,Mew and Controller, this makes the structure of the system more clearer and flexible.Dependency Injection can also be called Inversion of Control. According to Martin Fowler, theways of depending on the objects are inversed. DI describes the creation way instead of creatingobjects. DI does not introduce additional functionality to the system, it is just to make theimplementation of the system more flexible and improve the reusability of components. By usingDI,the system flexibility and scalability can be a higher level.Aspect Oriented Programming, the same as Object Oriented Programming, is not aprogramming language itself,but a kind of sotfware design idea, a paradigm. AOP is a sort ofcomplement or improvement for OOP which changes perspective and paradigm of sotfwaredevelopment, it solves problems and unsettled issues that overlooked by OOP, and enablesprogrammers to land separation of tangled responsibilities, such as core business logic andauthentication handling.The appearance of MVC can be considered to a qualitative leap of the sotfware architecture. Itgives developers the convenience of self-evident, but have to say, there are some shortcomings inthe traditional MVC. For example,the relationship between views and models is too closely, thereare a lot of data exchange between them. The too close relationship between views and modelsleads to the application of views very limited while they leave the models. Based on traditionalMVC and introducing DI and AOP, we propose a new design pattern-CSCD mode, andsuccessfully apply it to Document Manager platform. The work of this paper will mainly rfom thefollowing several aspects:1〠Based on traditional MVC pattern, this paper will design a general and high-performancedevelopment model-CSCD mode; 2ã€On basis of retaining the advantage of traditional MVC,employing DI to improve thecomponent assembling technique, application codes no longer need addressing codesdependent on objects.3ã€By using AOP, the supporting functions are isolated rfom the main program’s businesslogic and system modularity is increased.4ã€Applying CSCD model to a Document Manager System, in order to reflect theconvenience brought by CSCD pattern for the development of Web application system. |