摘要
面向对象软件开发方法是当前软件开发领域的主流技术。将此技术应用到开发电子商务系统中 ,用面向对象的开发方法促使软件开发人员按对象是应用领域的观点去思考问题 ,是开发电子商务系统的一种尝试 ,也是必然趋势。在介绍SmalltalkMVC模式之后 ,着重讨论了将MVC模式应用于基于J2EE开发电子商务系统中 ,进行系统设计和对象设计与实现。将整个系统分为 5类对象处理 :View、Controller、Model、DB类对象和例外类对象。具体实现时 ,View类由JSP实现 ,Controller类由Servlet实现 ,Model类由EJB/JavaBean组成 ,DB类由Input ,Data ,Value 3个类处理。一般情况下 ,Controller类操作比较固定 ,其他类针对不同操作对象又进行了类的划分与继承 ,以达到复用性好、易维护、开发高效的要求。
In the software development fields, the object-oriented method is technical mainstream. Applying this technology to E-commerce system, using object oriented method to make the software developers consider problem from the point of view that the objects are the application fields, is a new attempt to develop E-commerce system, and is an inevitable trend as well. After smalltalk MVC patterns was introduced, the OOA & OOD for E-commerce system based on J2EE by MVC patterns was discussed. The whole E-commerce system was composed of view class object, controller class object, model class object, DB class object and exception class object. These class were implemented respectively by JSP, servlet , EJB/JavaBean technology , DB class was composed of input, data and value classes. The other classes ,except controller class were divided and inherited according to their operations in order to meet the requirements of good reuserability, easy- maintain ability ,open and high effectiveness. Finally an illustrative example was given.
出处
《石油化工高等学校学报》
CAS
2002年第3期64-67,共4页
Journal of Petrochemical Universities