Designs Pattern - The Adapter Pattern and the Facade Pattern
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
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

Comments