Noah Subrin's DEV Blog
Technology for Business minds

Designs Pattern - The Adapter Pattern and the Facade Pattern

Print the article

This entry was posted on 10/25/2006 6:06 PM and is filed under Design Patterns.

Today I taught the first class in this semester's SRA-U Design Patterns series. The course is available via web cast. My students are in DC, VA, MD, as well as Atlanta.

Today we covered the Adapter Pattern and the Facade Pattern. The Adapter Pattern converts the interface of a class into another interface clients expect. It is also known as a wrapper. An example of this in the .Net world is the RCW - runtime callable wrapper - that wraps a COM object with a new interface which can be called by Managed Clients.

The Facade pattern provides a unified interface to a set of interfaces in a subsystem. It makes an interface simpler to use. An example of this in the real world is the MS Web Service Facade for Legacy Applications. This pattern in the MS Enterprise Library of Patterns simplifies a web service calling a legacy app.

My slide deck and code are available for download: Week 1 Code


 

What did you think of this article?




Trackbacks
Trackback specific URL for this entry
  • No trackbacks exist for this entry.
Comments
    • No comments exist for this entry.
Leave a comment

Submitted comments will be subject to moderation before being displayed.

 Enter the above security code (required)

 Name

 Email (will not be published)

 Website

Your comment is 0 characters limited to 3000 characters.