Structural Design Patterns
- Adapter
Pattern
Structural Design Patterns This pattern establishes a relationship between the two unrelated interfaces such that they work together. This is similar to the conversion of one interface of one class to the interface expected by the client.
Suppose there are several sockets of different sizes, and shapes in a house. Due to variation in sizes, all the sockets are not capable of plugin a mobile charger. So we use an Adapter to make it portable across different sockets. Here Adapter works as a connector. This connector connects them together and meets the purpose of the client.
Read more information at:
http://www.javajazzup.com/issue4/page50.shtml