October 2004
Beginner
480 pages
8h 43m
English
This chapter concludes the e-commerce case study introduced in Chapter 9, “The Strategy Pattern.”
This chapter
• Describes a new requirement for the case study: Add header and footer information to the printed sales ticket.
• Shows how the Decorator pattern handles the requirement flexibly.
• Discusses how the Decorator pattern can be used to handle input/output (especially Java I/O).
• Describes the key features of the Decorator pattern.
• Describes some of my experience using the Decorator pattern in practice.
• Describes how the essence of the Decorator pattern is not a linked list, but a collection of optional, decorating objects.