The ADAPTER Pattern
Solution
- Define an adapter class that implements the target interface.
- The adapter class holds a reference to the adaptee. It translates
target methods to adaptee methods.
- The client wraps the adaptee into an adapter class object.