Separate Module Dependencies With Adapter | |||
| |||
Context: Separate Module Dependencies With Adapter is an example of Introduce Indirection where the indirection is used to break the dependency between the server class an a client-bound interface, thus enabling the interface to evolve with the client, without requiring server implementation to be updated. Separating the server implementation from dependencies on client bound interfaces effectively decouples a server implementation from its context thereby promoting future reuse. |