I don't consider the Adapter pattern a long-term solution to architecture issues; even though it offers some benefits, its long-term drawbacks should always be taken into consideration.
The following are the benefits:
- Adapting without modifying: The main benefit of the Adapter pattern is that it offers a standard approach to adapting code without modifying it.
- Reusability and flexibility: This pattern permits continuing to use legacy code with new systems with a minimal amount of changes; this has an immediate return on investment.
The following are the drawbacks:
- Persisting legacy: The ability to use legacy code with new systems is cost-effective, but in the long term, it can become an issue, because the old code ...