Skip to content

Commit 92db946

Browse files
committed
Added real world example for Builder.
1 parent fff7bbd commit 92db946

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Behavioral patterns are concerned with algorithms and the assignment of responsi
7676

7777
**Real world examples:**
7878
* [java.lang.StringBuilder](http://docs.oracle.com/javase/8/docs/api/java/lang/StringBuilder.html)
79+
* [Apache Camel builders](https://github.com/apache/camel/tree/0e195428ee04531be27a0b659005e3aa8d159d23/camel-core/src/main/java/org/apache/camel/builder)
7980

8081
## <a name="factory-method">Factory Method</a> [&#8593;](#list-of-design-patterns)
8182
**Intent:** Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.

0 commit comments

Comments
 (0)