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
44folder : abstract-factory
55permalink : /patterns/abstract-factory/
66categories : Creational
7- tags :
7+ tags :
88 - Java
99 - Gang Of Four
1010 - Difficulty-Intermediate
@@ -30,6 +30,8 @@ Use the Abstract Factory pattern when
3030## Real world examples
3131
3232* [ 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-- )
3335
3436## Credits
3537
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ Use the Builder pattern when
2626## Real world examples
2727
2828* [ 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 )
2932* [ Apache Camel builders] ( https://github.com/apache/camel/tree/0e195428ee04531be27a0b659005e3aa8d159d23/camel-core/src/main/java/org/apache/camel/builder )
3033
3134## Credits
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ title: Factory Method
44folder : factory-method
55permalink : /patterns/factory-method/
66categories : Creational
7- tags :
7+ tags :
88 - Java
99 - Difficulty-Beginner
1010 - Gang Of Four
@@ -29,9 +29,13 @@ Use the Factory Method pattern when
2929
3030## Known uses
3131
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-- )
3539
3640## Credits
3741
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ Use the Singleton pattern when
3131## Real world examples
3232
3333* [ 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+
3437
3538## Credits
3639
You can’t perform that action at this time.
0 commit comments