I looked for detailed infor开发者_JS百科mation on wrappers and veeners. Looks like there are very few info about them. How can it be used in a design diagram or in Java?
Could someone explain me? Thank you.
Adapter or Wrapper (I've never heard anyone call it Verneer) is one of the Gang of Four Design Patterns. Here's what it's for:
Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces
Have a look at this.
The definitive reference, now 15 years old, is the Gang of Four "Design Patterns".
精彩评论