【笔记】《Expert One on One J2EE Design And Development without EJB》笔记

《Expert One on One J2EE Design And Development without EJB》笔记(本文)

《Expert One on One J2EE Design And Development》笔记(点击查看)


博主:中文版翻译的质量很高,熊节统筹翻译的。由于是扫描版PDF,直接上截图了。这本书应该是 Java Web 必读之书,以前都不晓得有这种书。害,学校也不教(本科TM的也就教个Java教程前5章),工作时也没大神带(野路子公司)。

说正题:书比较啰嗦,讲EJB能讲5章。这EJB小公司用不到,没有几个亿的投资额,怕是用不到这个技术,可直接略过。

C6讲 IoC,也比较啰嗦。C7开始讲Spring正题。C8讲AOP。


1. 业务服务层

Spring老大哥教你重新认识 业务服务层。

 

2. Web层定位

 

3. 封装

 

 

4. AOP

AOP的辉煌兴起。

 

5. Java系的开源力量

Spring创始人亲自现身说法,自然深有体会。

 

6.  如何选择开源框架

Spring创始人老大哥手把手教你如何选框架。

 

7. 控制反转与依赖注入

控制反转是原则,依赖注入是实现这个原则的方法之一,并且是其中比较好的方法。

 

 

8. 控制反转的两个实现策略

 

 

9. 容器构造时检查依赖关系

这就是有时候为什么项目跑不起来,Spring报些莫名其妙错误的原因。A依赖B,但是B根本不存在。

 

10. setter方法存在的意义

 

 

11. getter方法存在的意义

这也说明,并非所有的类都需要 getter方法。尤其是不需要持久化存储的类。但setter方法就不一样了,大概率要用,因为你创建A类,肯定是别的类比如B类,需要用A、依赖A,那A类就会被容器作为依赖注入到需要它的B类里去。

 

12. AOP

AOP是个术语,产生于1996年。比较重要的一个软件设计范式,感觉和OOP相辅相成。

 

 

13. 为什么需要AOP

简单说有:每个需要存储数据的方法,都需要获取数据库资源,进行读写;每个输入页面背后,都要对数据进行验证;用户每个操作都要进行权限判定,安全性检查,等。

 

14. AOP定义

国外技术书籍很严肃很严谨,AOP也来个定义,国内少见。

此处附个人绘制的示意图,仅供参考。

 What is this book about? The results of using J2EE in practice are often disappointing: applications are often slow, unduly complex, and take too long to develop. Rod Johnson believes that the problem lies not in J2EE itself, but in that it is often used badly. Many J2EE publications advocate approaches that, while fine in theory, often fail in reality, or deliver no real business value. "Expert One-on-One: J2EE Design and Development" aims to demystify J2EE development. Using a practical focus, it shows how to use J2EE technologies to reduce, rather than increase, complexity. Rod draws on his experience of designing successful high-volume J2EE applications and salvaging failing projects, as well as intimate knowledge of the J2EE specifications, to offer a real-world, how-to guide on how you too can make J2EE work in practice. It will help you to solve common problems with J2EE and avoid the expensive mistakes often made in J2EE projects. It will guide you through the complexity of the J2EE services and APIs to enable you to build the simplest possible solution, on time and on budget. Rod takes a practical, pragmatic approach, questioning J2EE orthodoxy where it has failed to deliver results in practice and instead suggesting effective, proven approaches. What does this book cover? In this book, you will learn When to use a distributed architecture When and how to use EJB How to develop an efficient data access strategy How to design a clean and maintainable web interface How to design J2EE applications for performance Who is this book for? This book would be of value to most enterprise developers. Although some of the discussion (for example, on performance and scalability) would be most relevant to architects and lead developers, the practical focus would make it useful to anyone with some familiarity with J2EE. Because of the complete design-deployment coverage, a less advanced developer could work through the book along with a more introductory text, and successfully build and understand the sample application. This comprehensive coverage would also be useful to developers in smaller organisations, who might be called upon to fill several normally distinct roles. What is special about this book? Wondering what differentiates this book from others like it in the market? Take a look: It does not just discuss technology, but stress its practical application. The book is driven from the need to solve common tasks, rather than by the elements of J2EE. It discuss risks in J2EE development It takes the reader through the entire design, development and build process of a non-trivial application. This wouldn't be compressed into one or two chapters, like the Java Pet Store, but would be a realistic example comparable to the complexity of applications readers would need to build. At each point in the design, alternative choices would be discussed. This would be important both where there's a real problem with the obvious alternative, and where the obvious alternatives are perhaps equally valid. It emphasizes the use of OO design and design patterns in J2EE, without becoming a theoretical book ,高清文档 
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

qilei2010

送我一张彩票中了平分

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值