July 2001
Intermediate to advanced
656 pages
15h 51m
English
Assign the responsibility to an intermediate object to mediate between other components or services so that they are not directly coupled.
Solution
The intermediary creates an indirection between the other components.
Where to assign a responsibility, to avoid direct coupling between two (or more) things? How to de-couple objects so that low coupling is supported and reuse potential remains higher?
Problem
Examples
These objects act as intermediaries to the external tax calculators. Via polymorphism, they provide a consistent interface to the inner objects and hide the variations in the external APIs. By adding a level of indirection and adding polymorphism, the adapter objects protect the inner design ...
Read now
Unlock full access