J2EE核心模式PDF电子书下载
- 电子书积分:15 积分如何计算积分?
- 作 者:(美)Deepak Alur等著
- 出 版 社:北京:科学出版社
- 出版年份:2004
- ISBN:7030124650
- 页数:459 页
CHAPTER 1
PART 1 Patterns and J2EE 2
Introduction 4
What Is J2EE? 6
What Are Patterns? 7
Historical References 7
Defining a Pattern 7
Categorizing Patterns 9
J2EE Pattern Catalog 10
Continuous Evolution 10
How to Use the J2EE Pattern Catalog 11
Benefits of Using Patterns 12
Patterns, Frameworks, and Reuse 14
Summary 15
ContentsForeword 15
CHAPTER 2 J2EE Platform Overview 16
Preface 17
A Brief Perspective 17
Application Servers—The New Breed 19
Convergence of Java Technologies 19
The Rise of the J2EE Platform 20
J2EE Value Proposition 21
J2EE Platform 22
J2EE Architecture 22
Acknowledgments 24
Java 2 Standard Edition 24
J2EE Application Components and Containers 25
Standard Services 26
J2EE Platform Roles 27
Deployment Descriptors 29
J2EE Patterns and J2EE Platform 30
Summary 31
PART 2 Design Considerations, Bad Practices, and Refactorings 32
CHAPTER 3 Presentation Tier Design Considerations and Bad Practices 34
Presentation Tier Design Considerations 35
Session Management 35
Controlling Client Access 38
Validation 43
Helper Properties—Integrity and Consistency 46
Presentation Tier Bad Practices 49
Control Code in Multiple Views 49
Exposing Presentation-Tier Data Structures to Business Tier 50
Allowing Duplicate Form Submissions 51
Exposing Presentation-Tier Data Structures to Domain Objects 51
Exposing Sensitive Resources to Direct Client Access 52
Assuming
Creating Fat Controllers 53
CHAPTER 4 Business Tier Design Considerations and Bad Practices 54
Business Tier Design Considerations 55
Using Session Beans 55
Using Entity Beans 59
Caching Enterprise Bean Remote References and Handles 62
Business and Integration Tiers Bad Practices 63
Mapping Object Model Directly to Entity Bean Model 63
Mapping Relational Model Directly to Entity Bean Model 63
Mapping Each Use Case to a Session Bean 64
Exposing All Enterprise Bean Attributes via Getter/Setter Methods 65
Embedding Service Lookup in Clients 65
Using Entity Bean as Read-Only Object 66
Using Entity Beans as Fine-Grained Objects 67
Storing Entire Entity Bean-Dependent Object Graph 68
Exposing EJB-related Exceptions to Non-EJB Clients 68
Using Entity Bean Finder Methods to Return a Large Results Set 69
Client Aggregates Data from Business Components 70
Using Enterprise Beans for Long-Lived Transactions 70
Stateless Session Bean Reconstructs Conversational State for Each Invocation 71
CHAPTER 5 J2EE Refactorings 72
Presentation Tier Refactorings 73
Introduce a Controller 74
Introduce Synchronizer Token 77
Localize Disparate Logic 83
Hide Presentation Tier-Specific Details From the Business Tier 91
Remove Conversions from View 96
Hide Resource From a Client 100
Business and Integration Tier Refactorings 104
Wrap Entities With Session 104
Introduce Business Delegate 106
Merge Session Beans 108
Eliminate Inter-Entity Bean Communication 110
Move Business Logic to Session 112
General Refactorings 113
Separate Data Access Code 113
Refactor Architecture by Tiers 116
Use A Connection Pool 119
PART 3 J2EE Pattern Catalog 122
CHAPTER 6 J2EE Patterns Overview 124
What Is a Pattern? 126
Identifying a Pattern 127
The Tiered Approach 128
J2EE Patterns 130
Presentation Tier Patterns 130
Business Tier Patterns 131
Integration Tier Patterns 132
Guide to the Catalog 132
Terminology 132
Use of UML 137
Pattern Template 138
J2EE Pattern Relationships 140
Relationship to Known Patterns 143
Patterns Roadmap 144
Summary 149
CHAPTER 7 Presentation Tier Patterns 150
Problem 152
Context 152
Intercepting Filter 152
Forces 153
Solution 153
Consequences 170
Related Patterns 170
Front Controller 172
Context 172
Problem 172
Forces 172
Solution 173
Consequences 184
Related Patterns 185
Solution 186
Forces 186
Problem 186
View Helper 186
Context 186
Consequences 201
Related Patterns 202
Composite View 203
Context 203
Problem 203
Forces 203
Solution 203
Consequences 212
Sample Code 213
Related Patterns 215
Problem 216
Forces 216
Context 216
Service to Worker 216
Solution 217
Consequences 222
Sample Code 222
Related Patterns 230
Dispatcher View 231
Context 231
Problem 231
Forces 231
Solution 232
Consequences 238
Sample Code 239
Related Patterns 244
CHAPTER 8 Business Tier Patterns 246
Business Delegate 248
Context 248
Problem 248
Forces 248
Solution 249
Consequences 254
Sample Code 256
Related Patterns 260
Value Object 261
Context 261
Problem 261
Forces 261
Solution 262
Consequences 274
Sample Code 276
Related Patterns 289
Session Facade 291
Context 291
Problem 291
Forces 292
Solution 293
Consequences 298
Sample Code 301
Related Patterns 309
Composite Entity 310
Context 310
Problem 310
Forces 312
Solution 313
Consequences 321
Sample Code 323
Related Patterns 335
Value Object Assembler 339
Context 339
Problem 339
Forces 340
Solution 341
Consequences 345
Sample Code 347
Related Patterns 351
Value List Handler 353
Context 353
Problem 353
Solution 354
Forces 354
Consequences 358
Sample Code 360
Related Patterns 366
Service Locator 367
Context 367
Problem 367
Forces 369
Solution 369
Consequences 379
Sample Code 380
Related Patterns 385
CHAPTER 9 Integration Tier Patterns 388
Context 390
Problem 390
Data Access Object 390
Forces 391
Solution 391
Consequences 397
Sample Code 399
Related Patterns 407
Service Activator 408
Context 408
Problem 408
Forces 409
Solution 409
Consequences 413
Sample Code 414
Related Patterns 420
EPILOGUEJ2EE Patterns Applied 422
PSA Overview 423
Use Case Model 424
Use Cases, Patterns, and Pattern Frameworks 426
Create Project Use Case 426
Pattern Identification 426
Pattern Realization 428
Reserve Resource Use Case 430
Pattern Identification 430
Pattern Realization 431
Find Available Resources Use Case 433
Pattern Identification 434
Pattern Realization 435
Bibliography 439
Apache Software License 443
Index 445
- 《指向核心素养 北京十一学校名师教学设计 英语 七年级 上 配人教版》周志英总主编 2019
- 《指向核心素养 北京十一学校名师教学设计 英语 九年级 上 配人教版》周志英总主编 2019
- 《金匮要略核心知识点全攻略》温成平,曹灵勇 2019
- 《基于核心素养提升的美术综合教学》麻丽娟主编 2019
- 《指向核心素养 北京十一学校名师教学设计 数学 九年级 上 配人教版》周志英总主编 2019
- 《增强“四个意识” 向核心看齐》欧黎明,于建荣 2017
- 《基于核心素养的有效学习与学业评价策略 初中政治》李亚莉主编 2018
- 《汉语言文学本科专业核心课程研究导引教材 古代汉语》马蓝婕责任编辑;(中国)魏宜辉 2019
- 《知识管理背景下的档案管理模式》曾祯,金瑞,王聪颖著 2019
- 《海河干流水环境质量与经济发展模式研究》于航白景峰,张春意 2019
- 《断陷湖盆比较沉积学与油气储层》赵永胜等著 1996
- 《SQL与关系数据库理论》(美)戴特(C.J.Date) 2019
- 《魔法销售台词》(美)埃尔默·惠勒著 2019
- 《看漫画学钢琴 技巧 3》高宁译;(日)川崎美雪 2019
- 《优势谈判 15周年经典版》(美)罗杰·道森 2018
- 《社会学与人类生活 社会问题解析 第11版》(美)James M. Henslin(詹姆斯·M. 汉斯林) 2019
- 《海明威书信集:1917-1961 下》(美)海明威(Ernest Hemingway)著;潘小松译 2019
- 《迁徙 默温自选诗集 上》(美)W.S.默温著;伽禾译 2020
- 《上帝的孤独者 下 托马斯·沃尔夫短篇小说集》(美)托马斯·沃尔夫著;刘积源译 2017
- 《巴黎永远没个完》(美)海明威著 2017
- 《指向核心素养 北京十一学校名师教学设计 英语 七年级 上 配人教版》周志英总主编 2019
- 《《走近科学》精选丛书 中国UFO悬案调查》郭之文 2019
- 《北京生态环境保护》《北京环境保护丛书》编委会编著 2018
- 《中医骨伤科学》赵文海,张俐,温建民著 2017
- 《美国小学分级阅读 二级D 地球科学&物质科学》本书编委会 2016
- 《指向核心素养 北京十一学校名师教学设计 英语 九年级 上 配人教版》周志英总主编 2019
- 《强磁场下的基础科学问题》中国科学院编 2020
- 《小牛顿科学故事馆 进化论的故事》小牛顿科学教育公司编辑团队 2018
- 《小牛顿科学故事馆 医学的故事》小牛顿科学教育公司编辑团队 2018
- 《高等院校旅游专业系列教材 旅游企业岗位培训系列教材 新编北京导游英语》杨昆,鄢莉,谭明华 2019