正在加载图片...
ooAD大报告之 Petstore中EB的设计模式分析 1.概述 我们的开源项目是 SUM JAVA上面的 Pet store,通过分析数据模型,和实际操作 PetStore我们 大概对它的数据模型有所了解。现在开始分析系统EB层的设计模式。首先什么是模式?看Gof的 《设计模式》的定义,就是对被用来在特定场景下解决一般设计问题的类和相互通信的对象描述。 其实,就是一些经验,并且经过科学整理,可以在某种场合下反复使用,解决一些问题。当然在《设 计模式》一书罗列出23中模式,并且进行了详细描述。今天我们所说的模式,是 Petstore中的EJB 设计经验 关于 PetStore的模式,根据SUN的站点和我们的分析列出了以下几种模式,当然其中的 Front Controller属于Web层的 Pattern Intent Data Access Decouple business logic from data access logic and adapt the resource being accessed, so that the type of resource can change ily and independently. Fast-Lane Accelerate read-only data access by not using enterprise beans. eager Front Centralize view management (navigation, templating, security Controller etc.) for a Web application in a single object that handles coming client requests. Page-by-Page Efficiently access a large, remote list by retrieving its elements Iterate one sublist of value objects at a time Provide a unified. workflow-oriented interface to a set of Session facade enterprise beans. Value Objec Efficiently transfer remote, fine-grained data by sending a coarse-grained view of the data. 我们首先知道EJB层有这些模式,我们把这些模式简单介绍一下,包括它的意图, 动机,结构,然后看在 PetStore中使用了那些,又是怎样使用的。我们想把我所理解 的写出。 2.模式分类 21. Data Access object模式 这个模式SUN上有详细的描述。这模式使用了GΦF中 Bridge和 Adapter模式。如果大家不熟悉 最好看下Gof的介绍。 作者:张玉平,吴小静,范赟梦,张麒,罗晟,张翅OOAD 大报告之 PetStore 中 EJB 的设计模式分析 作者: 张 玉 平 , 吴 小 静 , 范 赟 梦 , 张麒,罗晟, 张 翅 3 1. 概述 我们的开源项目是SUM JAVA上面的Pet Store,通过分析数据模型,和实际操作PetStore 我们 大概对它的数据模型有所了解。现在开始分析系统EJB 层的讴计模式。首先什么是模式?看Gof 的 《讴计模式》的定义,就是对被用来在特定场景下解决一般讴计问题的类和相互通信的对象描述。 其实,就是一些经验,并丏经过科学整理,可以在某种场合下反复使用,解决一些问题。当然在《讴 计模式》一书罗列出23 中模式,并丏迚行了详细描述。今天我们所说的模式,是PetStore 中的EJB 讴计经验。 关于PetStore 的模式,根据SUN 的站点和我们的分析列出了以下几种模式,当然其中的 FrontController 属于Web 层的。 Pattern Intent Data Access Object Decouple business logic from data access logic and adapt the resource being accessed, so that the type of resource can change easily and independently. Fast-Lane Reader Accelerate read-only data access by not using enterprise beans. Front Controller Centralize view management (navigation, templating, security, etc.) for a Web application in a single object that handles incoming client requests. Page-by-Page Iterator Efficiently access a large, remote list by retrieving its elements one sublist of value objects at a time. Session Facade Provide a unified, workflow-oriented interface to a set of enterprise beans. Value Object Efficiently transfer remote, fine-grained data by sending a coarse-grained view of the data. 我们首先知道EJB 层有这些模式,我们把这些模式简单介绍一下,包括它的意图, 劢机,结构,然后看在PetStore 中使用了那些,又是怎样使用的。我们想把我所理解 的写出。 2. 模式分类 2.1. Data Access Object模式 这个模式SUN 上有详细的描述。这模式使用了GoF 中Bridge 和Adapter 模式。如果大家丌熟悉, 最好看下Gof 的介绍
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有