Chapter 2. Behavioral Patterns
Command 51
Interpreter 59
Mediator 77
Iterator 69
Memento 88
Observer 94
State 104
Strategy 114
Visitor 121
Template Method 131
Introduction to Behavioral Patterns
Behavioral patterns are concerned with the flow of control through a system. Some ways of organizing control within a system can yield great benefits in both efficiency and maintainability of that system. Behavioral patterns distill the essence of proven practices into readily understood, well known, and easy-to-apply heuristics.
Behavioral patterns covered in this chapter are as follows:
Chain of Responsibility –. To establish a chain within a system, so that a message can either be handled at the level where it is first received, or be directed ...
Get Applied Java™ Patterns 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.