Builder设计模式分享

779 views

Published on

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
779
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Builder设计模式分享

  1. 1. Builder设计模式分享<br />2010.8.27<br />胡伟军<br />
  2. 2. 技术源于生活,高于生活,可以还原于生活<br />好的思想来源于生活<br />好的技术来源于实践<br />开场白<br />
  3. 3. Sufferd By Constructing<br />在生活中我们遇到了什么问题<br />
  4. 4. 我们的理想模式<br />
  5. 5. IOC<br />Spring<br />Configuratoin<br />XML<br />Annotation(MetaData)<br />Design Pattern<br />Factory Method<br />Abstract Factory <br />Prototype<br />Builder<br />事物的构造解决方案<br />
  6. 6. Factory Method/ Abstract Factory<br />
  7. 7. Prototype<br />
  8. 8. Builder Pattern<br />
  9. 9. Director——我<br />Builder——叉烧饭Builder(Unkonw?)<br />ConcreteBuilder——周星星牌叉烧饭Builder<br />Product——叉烧饭(做出来的效果?)<br />Builder Pattern<br />
  10. 10.
  11. 11. 我->叉烧饭Builder(周星星)->鸡蛋()->冷饭()->叉烧()->青菜()-build(….这个过程很复杂,包含了,大量的业务逻辑)->叉烧饭<br />Builder Pattern<br />
  12. 12. 设计模式构造系的奥义<br /> 当事物的构造包含复杂的业务逻辑和实现的时候,请考虑将事物的构造逻辑…..<br />
  13. 13. 封装<br />抽象<br />设计模式构造系的奥义<br />
  14. 14. 代码<br />
  15. 15. 学而不思则惘,思而不学则怠<br />Learn It, Do It, Discuss It, Teach It.<br />结尾<br />
  16. 16. 讨论:<br />Thinking<br />

×