Facade pattern |
In computer programming, a façade is an object that provides a simplified interface to a larger body of code, such as a class library. A façade can:
The façade is an object-oriented design pattern (computer science).
Façades are very common in object-oriented design. For example, the Java standard library contains dozens of classes for parsing font files and rendering text into geometric outlines and ultimately into pixels. However, most Java programmers are unaware of these details, because the library also contains facade classes (Font and Graphics - Graphics itself is wrapped by another class Graphics2D offering more functionality) that offer simple methods for the most common font-related operations.
=See also=
*Adapter pattern *Mediator pattern *Singleton pattern
=External links=
*[http://c2.com/cgi/wikiFacadePattern Description from the Portland Pattern Repository] *[http://home.earthlink.net/~huston2/dp/facade.html Description] by Vince Huston|
|