Creational Patterns
文章平均质量分 77
chuandalishuo
这个作者很懒,什么都没留下…
展开
-
Abstract Factory
Factory of factories Sometimes, you might need more than one factory to create objects of a similar nature. For example, say you’re dealing with Swing’s pluggable look-and-feel (the grap原创 2016-03-27 08:17:40 · 172 阅读 · 0 评论 -
Prototype Pattern
思路类似我们编程,不会每次都重新写代码,而是修改以前的代码。Instead of creating a new object, clone an exist object, then modify its properties. Benefit: when creating process is very complex, such as database read, big networ原创 2016-04-04 08:59:33 · 149 阅读 · 0 评论 -
Singleton
Book List:1. Design_Patterns For Dummies2. DesignPatterns-Elements of Reusable Object-Oriented Software-19953. Software Architecture Design Patterns in Java-20044. DesignPatternJavaWorkbook-St原创 2016-04-08 14:16:15 · 228 阅读 · 0 评论 -
Builder
To create an object including several steps or need to create several sub objects, there are lots of combinations of options to build up the object.原创 2016-04-04 09:00:34 · 185 阅读 · 0 评论 -
Factory Method
User APP: Need to create the object in several places in the code. We need to choose one kind of object to use in APP code, and it may change from time to time. Package: several related objects to c原创 2016-03-27 03:32:57 · 287 阅读 · 0 评论