Design Patterns in Java

Front Cover
Addison-Wesley Professional, Apr 18, 2006 - Computers - 480 pages

Design Patterns in JavaTM gives you the hands-on practice and deep insight you need to fully leverage the significant power of design patterns in any Java software project. The perfect complement to the classic Design Patterns, this learn-by-doing workbook applies the latest Java features and best practices to all of the original 23 patterns identified in that groundbreaking text.

Drawing on their extensive experience as Java instructors and programmers, Steve Metsker and Bill Wake illuminate each pattern with real Java programs, clear UML diagrams, and compelling exercises. You'll move quickly from theory to application–learning how to improve new code and refactor existing code for simplicity, manageability, and performance.

Coverage includes

  • Using Adapter to provide consistent interfaces to clients
  • Using Facade to simplify the use of reusable toolkits
  • Understanding the role of Bridge in Java database connectivity
  • The Observer pattern, Model-View-Controller, and GUI behavior
  • Java Remote Method Invocation (RMI) and the Proxy pattern
  • Streamlining designs using the Chain of Responsibility pattern
  • Using patterns to go beyond Java's built-in constructor features
  • Implementing Undo capabilities with Memento
  • Using the State pattern to manage state more cleanly and simply
  • Optimizing existing codebases with extension patterns
  • Providing thread-safe iteration with the Iterator pattern
  • Using Visitor to define new operations without changing hierarchy classes

If you're a Java programmer wanting to save time while writing better code, this book's techniques, tips, and clear explanations and examples will help you harness the power of patterns to improve every program you write, design, or maintain.

All source code is available for download at http://www.oozinoz.com.

 

Contents

Introduction
1
Introducing Interfaces
11
Adapter
17
Facade
33
Composite
47
Bridge
63
Introducing Responsibility
75
Singleton
81
Introducing Operations
209
Template Method
217
State
229
Strategy
241
Command
251
Interpreter
261
Introducing Extensions
279
Decorator
287

Observer
87
Mediator
103
Proxy
117
Chain of Responsibility
137
Flyweight
145
Introducing Construction
155
Builder
159
Factory Method
167
Abstract Factory
175
Prototype
187
Memento
193
Iterator
305
Visitor
325
Directions
343
Solutions
347
Oozinoz Source
427
UML at a Glance
431
Glossary
439
Bibliography
447
Index
449
Copyright

Other editions - View all

Common terms and phrases

About the author (2006)

Steven John Metsker, passed away in 2008 and was a Managing Consultant with Dominion Digital, an information technology and business process reengineering company. Steve specialized in object-oriented techniques for creating clean, powerful software, and he is the author of Building Parsers with JavaTM, Design Patterns JavaTM Workbook, and Design Patterns in C# (all from Addison-Wesley).

William C. Wake, http://www.xp123.com , is an independent software consultant, coach, and trainer with more than twenty years of programming experience. Bill previously held positions with Capital One Financial, DMR Trecom, and VTLS, Inc. He is the author of the Refactoring Workbook and Extreme Programming Explored (both from Addison-Wesley).



Bibliographic information