View RSS Feed

My Java Tips

  1. Adapter design pattern

    by , 11-20-2011 at 06:10 PM (My Java Tips)
    A Adapter design pattern is Structural design pattern. It is also called as wrapper pattern or just a wrapper. Some classes could not work together because of incompatible interfaces. An adapter allows classes to work together by wrapping its own interface around that of an already existing class. The adapter also handles the logic necessary to transform data into an appropriate form.


    The adapter design pattern is useful in circumstances where an already existing class provides some ...