如果你研究petstore,请贴上QQ或MSN.

cultra 2003-10-16 04:38:56
我的MSN是zhy_ong@hotmail.com
qq:7404134
...全文
28 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
PetStore 中EJB 的设计模式............................................................................................................3 1. 概述..........................................................................................................................................3 2. 模式分类..................................................................................................................................4 2.1. Data Access Object 模式..........................................................................................4 2.1.1. 意图...................................................................................................................4 2.1.2. 动机...................................................................................................................4 2.1.3. 结构...................................................................................................................5 2.1.4. PetStore 的例子................................................................................................6 2.1.4.1 概述...................................................................................................6 2.1.4.2 CatalogEJB................................................................................................8 2.1.4.3 CatalogDAO..............................................................................................9 2.1.4.4 CatalogDAOImpl ......................................................................................9 2.1.4.5 CatalogDAOFactory................................................................................10 2.1.5. GOF 模式关系................................................................................................10 2.1.4.6 Bridge 模式.............................................................................................10 2.1.4.7 Adapter 模式...........................................................................................11 2.2. Value Object 模式...................................................................................................11 2.2.1. 意图.................................................................................................................11 2.2.2. 动机.................................................................................................................13 2.2.3. 结构.................................................................................................................14 2.2.4. PerStore 的例子..............................................................................................14 2.3. Session Façade 模式...............................................................................................16 2.3.1. 意图.................................................................................................................16 2.3.2. 动机.................................................................................................................16 2.3.3. 结构.................................................................................................................17 2.3.4. PetStore 中的例子..........................................................................................18 2.1.4.8 概述.................................................................................................18 2.1.4.9 ShoppingClientFacadeLocalEJB.............................................................18 2.3.5. GOF 中Facde 模式........................................................................................19 2.4. Fast-Lane Reader 模式...........................................................................................20 2.4.1. 意图.................................................................................................................20 2.4.2. 动机.................................................................................................................20 2.4.3. 结构.................................................................................................................21 2.4.4. PetStore 中的例子..........................................................................................21 PetStore 中EJB 的设计模式 2/2 2.1.4.10 CatalogDAO....................................................................................21 2.1.4.11 CatalogWebImpl..............................................................................21 2.1.4.12 ProductListTag ................................................................................22 2.5. Page-by-Page Iterator 模式.....................................................................................23 2.5.1. 意图.................................................................................................................23 2.5.2. 动机.................................................................................................................24 2.5.3. 结构.................................................................................................................25 2.5.4. PetStore 的例子..............................................................................................25 2.1.4.13 CatalogDAOImp .............................................................................25 2.1.4.14 ProductItemListTag.........................................................................26 2.5.5. GOF 的Iterator 模式......................................................................................27 2.6. ServiceLocator 模式...............................................................................................27 2.6.1. 意图.................................................................................................................28 2.6.2. 动机.................................................................................................................28 2.6.3. 结构.................................................................................................................28 2.6.4. PetStore 中的例子..........................................................................................29 2.1.4.15 ServiceLocatorImpl.........................................................................29 2.1.4.16 我们项目的例子.............................................................................30 2.6.5. GOF 模式........................................................................................................32 2.1.4.17 Singleton 模式................................................................................32 2.7. Local 模式...............................................................................................................33 2.7.1. 意图.................................................................................................................33 2.7.2. 动机.................................................................................................................33 2.7.3. 结构.................................................................................................................33 2.7.4. PetStore 例子..................................................................................................35 2.8. CMR 模式...............................................................................................................35 2.8.1. 意图.................................................................................................................35 2.8.2. 动机.................................................................................................................35 2.8.3. 结构.................................................................................................................35 2.8.4. PetStore 中的例子..........................................................................................36 2.9. 业务代表模式.........................................................................................................37 2.9.1. 意图.................................................................................................................38 2.9.2. 动机.................................................................................................................38 2.9.3. 结构.................................................................................................................39 2.9.4. PetStore 中的例子..........................................................................................39 2.9.5. GOF 模式........................................................................................................41 2.1.4.18 Proxy 模式......................................................................................41 3. EJB 模式关系.........................................................................................................................42 4. 相关的资料.............................................................................................................................43 5. 总结...............................................................................................................................
PetStore 中EJB 的设计模式.............................3 1. 概述........................................................3 2. 模式分类..................................................4 2.1. Data Access Object 模式.........................4 2.1.1. 意图..................................................4 2.1.2. 动机.................................................4 2.1.3. 结构.................................................5 2.1.4. PetStore 的例子................................6 2.1.4.1 概述..............................................6 2.1.4.2 CatalogEJB.....................................8 2.1.4.3 CatalogDAO....................................9 2.1.4.4 CatalogDAOImpl .............................9 2.1.4.5 CatalogDAOFactory.........................10 2.1.5. GOF 模式关系...................................10 2.1.4.6 Bridge 模式......................................10 2.1.4.7 Adapter 模式.................................11 2.2. Value Object 模式......................................11 2.2.1. 意图......................................................11 2.2.2. 动机............................................................13 2.2.3. 结构...............................................................14 2.2.4. PerStore 的例子................................................14 2.3. Session Façade 模式..................................16 2.3.1. 意图.....................................................16 2.3.2. 动机.....................................................16 2.3.3. 结构.....................................................17 2.3.4. PetStore 中的例子..................................18 2.1.4.8 概述...........................................................18 2.1.4.9 ShoppingClientFacadeLocalEJB......................18 2.3.5. GOF 中Facde 模式.................................19 2.4. Fast-Lane Reader 模.................................20 2.4.1. 意图..................................................20 2.4.2. 动机..................................................20 2.4.3. 结构..................................................21 2.4.4. PetStore 中的例子.............................21 PetStore 中EJB 的设计模式2/2 2.1.4.10 CatalogDAO..........................................21 2.1.4.11 CatalogWebImpl..........................................21 2.1.4.12 ProductListTag ...........................................22 2.5. Page-by-Page Iterator 模式...................................23 2.5.1. 意图.......................................................23 2.5.2. 动机.......................................................24 2.5.3. 结构.......................................................25 2.5.4. PetStore 的例子............................................25 2.1.4.13 CatalogDAOImp ........................................25 2.1.4.14 ProductItemListTag....................................26 2.5.5. GOF 的Iterator 模式.....................................27 2.6. ServiceLocator 模式........................................27 2.6.1. 意图...........................................................28 2.6.2. 动机..........................................................28 2.6.3. 结构..........................................................28 2.6.4. PetStore 中的例子......................................29 2.1.4.15 ServiceLocatorImpl.................................29 2.1.4.16 我们项目的例子..................................30 2.6.5. GOF 模式..............................................32 2.1.4.17 Singleton 模式.....................................32 2.7. Local 模式.......................................33 2.7.1. 意图...........................................33 2.7.2. 动机............................................33 2.7.3. 结构............................................33 2.7.4. PetStore 例..................................35 2.8. CMR 模式......................................................35 2.8.1. 意图..........................................................35 2.8.2. 动机.........................................................35 2.8.3. 结构.......................................................35 2.8.4. PetStore 中的例子.......................................36 2.9. 业务代表模式..................................................37 2.9.1. 意图................................................................38 2.9.2. 动机...............................................................38 2.9.3. 结构..............................................................39 2.9.4. PetStore 中的例子.................39 2.9.5. GOF 模式..............................41 2.1.4.18 Proxy 模式.........................41 3. EJB 模式关系................................42 4. 相关的资料......................................43 5. 总结...............................................43

23,404

社区成员

发帖
与我相关
我的任务
社区描述
Java 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧