File tree Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ title: Abstract Factory
4
4
folder : abstract-factory
5
5
permalink : /patterns/abstract-factory/
6
6
categories : Creational
7
- tags :
7
+ tags :
8
8
- Java
9
9
- Gang Of Four
10
10
- Difficulty-Intermediate
@@ -30,6 +30,8 @@ Use the Abstract Factory pattern when
30
30
## Real world examples
31
31
32
32
* [ javax.xml.parsers.DocumentBuilderFactory] ( http://docs.oracle.com/javase/8/docs/api/javax/xml/parsers/DocumentBuilderFactory.html )
33
+ * [ javax.xml.transform.TransformerFactory] ( http://docs.oracle.com/javase/8/docs/api/javax/xml/transform/TransformerFactory.html#newInstance-- )
34
+ * [ javax.xml.xpath.XPathFactory] ( http://docs.oracle.com/javase/8/docs/api/javax/xml/xpath/XPathFactory.html#newInstance-- )
33
35
34
36
## Credits
35
37
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ Use the Builder pattern when
26
26
## Real world examples
27
27
28
28
* [ java.lang.StringBuilder] ( http://docs.oracle.com/javase/8/docs/api/java/lang/StringBuilder.html )
29
+ * [ java.nio.ByteBuffer] ( http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html#put-byte- ) as well as similar buffers such as FloatBuffer, IntBuffer and so on.
30
+ * [ java.lang.StringBuffer] ( http://docs.oracle.com/javase/8/docs/api/java/lang/StringBuffer.html#append-boolean- )
31
+ * All implementations of [ java.lang.Appendable] ( http://docs.oracle.com/javase/8/docs/api/java/lang/Appendable.html )
29
32
* [ Apache Camel builders] ( https://github.com/apache/camel/tree/0e195428ee04531be27a0b659005e3aa8d159d23/camel-core/src/main/java/org/apache/camel/builder )
30
33
31
34
## Credits
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ title: Factory Method
4
4
folder : factory-method
5
5
permalink : /patterns/factory-method/
6
6
categories : Creational
7
- tags :
7
+ tags :
8
8
- Java
9
9
- Difficulty-Beginner
10
10
- Gang Of Four
@@ -29,9 +29,13 @@ Use the Factory Method pattern when
29
29
30
30
## Known uses
31
31
32
- * java.util.Calendar
33
- * java.util.ResourceBundle
34
- * java.text.NumberFormat#getInstance()
32
+ * [ java.util.Calendar] ( http://docs.oracle.com/javase/8/docs/api/java/util/Calendar.html#getInstance-- )
33
+ * [ java.util.ResourceBundle] ( http://docs.oracle.com/javase/8/docs/api/java/util/ResourceBundle.html#getBundle-java.lang.String- )
34
+ * [ java.text.NumberFormat] ( http://docs.oracle.com/javase/8/docs/api/java/text/NumberFormat.html#getInstance-- )
35
+ * [ java.nio.charset.Charset] ( http://docs.oracle.com/javase/8/docs/api/java/nio/charset/Charset.html#forName-java.lang.String- )
36
+ * [ java.net.URLStreamHandlerFactory] ( http://docs.oracle.com/javase/8/docs/api/java/net/URLStreamHandlerFactory.html#createURLStreamHandler-java.lang.String- )
37
+ * [ java.util.EnumSet] ( https://docs.oracle.com/javase/8/docs/api/java/util/EnumSet.html#of-E- )
38
+ * [ javax.xml.bind.JAXBContext] ( https://docs.oracle.com/javase/8/docs/api/javax/xml/bind/JAXBContext.html#createMarshaller-- )
35
39
36
40
## Credits
37
41
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ Use the Singleton pattern when
31
31
## Real world examples
32
32
33
33
* [ java.lang.Runtime#getRuntime()] ( http://docs.oracle.com/javase/8/docs/api/java/lang/Runtime.html#getRuntime%28%29 )
34
+ * [ java.awt.Desktop#getDesktop()] ( http://docs.oracle.com/javase/8/docs/api/java/awt/Desktop.html#getDesktop-- )
35
+ * [ java.lang.System#getSecurityManager()] ( http://docs.oracle.com/javase/8/docs/api/java/lang/System.html#getSecurityManager-- )
36
+
34
37
35
38
## Credits
36
39
You can’t perform that action at this time.
0 commit comments