Add known uses to Factory Method

This commit is contained in:
Ilkka Seppälä 2016-07-04 21:52:39 +03:00
parent 5c26f46174
commit f806c5b712

View File

@ -27,6 +27,12 @@ Use the Factory Method pattern when
* a class wants its subclasses to specify the objects it creates
* classes delegate responsibility to one of several helper subclasses, and you want to localize the knowledge of which helper subclass is the delegate
## Known uses
java.util.Calendar
java.util.ResourceBundle
java.text.NumberFormat#getInstance()
## Credits
* [Design Patterns: Elements of Reusable Object-Oriented Software](http://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612)