Sample

In the example in this chapter we took a pretty straightforward approach to providing a Product Configuration System by applying abstraction and then utilizing a few simple patterns. Note that we also took advantage of several patterns provided within the Java language itself. The Enumerator used throughout this example is a language-provided Iterator (which provides a way to access all the elements of a composite structure). The final solution, though, is far from perfect, but it provides a good first pass in which to begin the system.

Get Joy of Patterns: Using Patterns for Enterprise Development, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.