Java SE / EE API说明的设计模式?

时间:2010-08-16 15:22:20

标签: java design-patterns api

  

可能重复:
  Examples of GoF Design Patterns

目前正在研究模式,this one缺乏具体的例子。您是否可以帮助我在 Java 6 SE / EE API 中使用具体示例说明设计模式的表格中填充缺少的单元格

最后,我将用您的贡献更新此表。感谢。

    Pattern name               Illustration
-----------------------------------------------------------------------------
1   Abstract factory
2   Builder
3   Factory method             java.util.Calendar.getInstance()
4   Lazy initialization
5   Object pool
6   Prototype                  java.util.ArrayList.clone()
7   Singleton                  java.lang.Runtime
8   Adapter
9   Bridge
10  Composite
11  Decorator                  java.io.BufferedWriter(Writer out)
12  Facade
13  Flyweight
14  Proxy
15  Chain of responsibility
16  Command
17  Interpreter
18  Iterator                   java.util.Iterator
19  Mediator
20  Memento
21  Null object                java.util.Collections.EMPTY_LIST
22  Observer
23  Specification
24  State
25  Strategy                   java.util.Comparator
26  Template method
27  Visitor

编辑:感谢@BalusC指向他的brilliant answer

0 个答案:

没有答案