/  86
 
GoF DesignPatterns -
 with examples usingJavaand UML2
written by:
Benneth Christiansson (Ed.)Mattias Forss,Ivar Hagen,Kent Hansson,Johan Jonasson,Mattias Jonasson,Fredrik Lott,Sara Olsson, andThomas Rosevall
Copyright
©2008, Authors.This work is licensed under a Creative CommonsAttribution-ShareAlike 3.0 License. (This licenseallows you to redistribute this book in unmodifiedform. It allows you to make and distribute modifiedversions, as long as you include an attribution to theoriginal author, clearly describe the modificationsthat you have made, and distribute the modifiedwork under the same license as the original.
 
Logica Java Architects Training Crew Design Patterns- Explained
Table of Contents
 Factory, Abstract Factory, Builder, Prototype and Singleton
3
 Adapter, Bridge, Composite, Decorator, Facade, Flyweight and Proxy
24
Chain-of-responsibility, Command, Iterator, Mediator, Memento, Observer,State and Strategy
50
Foreword
This book is the result of a joint effort of the authors with an equalcontribution from all. The idea to the book originated during theparticipation of a Java Architect training program taught at Logica SverigeAB Karlstad office. During the course the authors identified the lack of aquick-guide book to the basic GoF
1
design patterns. A book that could beused as a bare bone reference as well as a learning companion forunderstanding design patterns. So we divided the workload and together wecreated an up-to-date view of the GoF design patterns in a structured anduniform manner. Illustrating the choosen patterns with examples in Java anddiagrams using UML2 notation. We have also emphasized benefits anddrawbacks for the individual patterns and, where applicable. We alsoillustrate real world usage situations where the pattern has successfully beenimplemented.I personally as editor must express my deepest admiration for the dedicationand effort the authors have shown during this process, everyone who everhave written a book knows what I mean. I am really proud to be the editor of this very usable book.
--- Benneth Christiansson, Karlstad, autumn 2008 ---
1Design Patterns Elements of Reusable Elements by Gamma, Helm, Johnson and Vlissides (1995)
2
 
Logica Java Architects Training Crew Design Patterns- Explained
Chapter1Creational Patterns
“Creational design patterns are design patterns that deal with objectcreation mechanisms, trying to create objects in a manner suitable to thesituation. The basic form of object creation could result in design problemsor added complexity to the design. Creational design patterns solve this problem by somehow controlling this object creation.”
2
 
All the creational patterns define the best possible way in which an objectcan be created considering reuse and changeability. These describes the bestway to handle instantiation. Hard coding the actual instantiation is a pitfalland should be avoided if reuse and changeability are desired. In suchscenarios, we can make use of patterns to give this a more general andflexible approach.
2http://en.wikipedia.org/wiki/Creational_pattern
3

Share & Embed

More from this user

Recent Readcasters

Add a Comment

Characters: ...

Chems Eddine Nouioualeft a comment

Great Thanks ..

deleted_fbuser_1323666755left a comment

Thnaks. This is Excellent .....

Shyam Kumar Bleft a comment

Thanks for the sharing the great book

toneeraj3991left a comment

Thanks for the book.. it is good