The Adapter Pattern: Java Design Patterns and Architecture, Part 19

The Adapter pattern is simply a class that adapts the functionality of one class to some required interface or set of methods. You can use it whenever you need a class that implements some particular interface and only have a class with the required functionality that implements a different interface. Strangely, there are lots of classes around that feature "adapter" in their name but don't seem to implement this pattern at all.



Source Code



DesignPatterns19 - Adapter.zip

Next ...


Coming soon ...