Skip to main content
O'Reilly home
    • Sign In
    • Try Now
    • Teams
      • For business
      • For government
      • For higher ed
    • Individuals
    • Features
      • All features
      • Certifications
      • Interactive learning
      • Live events
      • Answers
      • Insights reporting
    • Blog
    • Content sponsorship

Design Patterns in Java™, Second Edition by

Get full access to Design Patterns in Java™, Second Edition and 60K+ other titles, with free 10-day trial of O'Reilly.

There's also live online events, interactive content, certification prep materials, and more.

Start your free trial

Contents

Preface

CHAPTER 1 INTRODUCTION

Why Patterns?

Why Design Patterns?

Why Java?

UML

Challenges

The Organization of This Book

Welcome to Oozinoz!

Summary

PART I INTERFACE PATTERNS

CHAPTER 2 INTRODUCING INTERFACES

Interfaces and Abstract Classes

Interfaces and Obligations

Summary

Beyond Ordinary Interfaces

CHAPTER 3 ADAPTER

Adapting to an Interface

Class and Object Adapters

Adapting Data for a JTable

Identifying Adapters

Summary

CHAPTER 4 FACADE

Facades, Utilities, and Demos

Refactoring to FACADE

Summary

CHAPTER 5 COMPOSITE

An Ordinary Composite

Recursive Behavior in Composites

Composites, Trees, and Cycles

Composites with Cycles

Consequences of Cycles

Summary

CHAPTER 6 BRIDGE

An Ordinary Abstraction: On the Way to BRIDGE

From Abstraction ...

Get Design Patterns in Java™, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.

Start your free trial

About O’Reilly

  • Teach/write/train
  • Careers
  • Community partners
  • Affiliate program
  • Submit an RFP
  • Diversity
  • O’Reilly for marketers

Support

  • Contact us
  • Newsletters
  • Privacy policy
facebook-logo linkedin-logo youtube-logo

International

  • Australia & New Zealand
  • Hong Kong & Taiwan
  • India
  • Indonesia
  • Japan

Download the O’Reilly App

Take O’Reilly with you and learn anywhere, anytime on your phone and tablet.

Apple app store Google play store

Watch on your big screen

View all O’Reilly videos, Superstream events, and Meet the Expert sessions on your home TV.

Roku Payers and TVs Amazon appstore

Do not sell my personal information

O'Reilly home

© 2023, O’Reilly Media, Inc. All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.

Terms of service • Privacy policy • Editorial independence

Don’t leave empty-handed

Get Mark Richards’s Software Architecture Patterns ebook to better understand how to design components—and how they should interact.

It’s yours, free.

Get it now
Cover of Software Architecture Patterns

Check it out now on O’Reilly

Dive in for free with a 10-day trial of the O’Reilly learning platform—then explore all the other resources our members count on to build skills and solve problems every day.

Start your free trial Become a member now