Google
 
   
Login
Username:

Password:


Lost Password?

Register now!
Search
Main Menu
service
top books
Polls
What do you think about php-deluxe.net?
Excellent!
Cool
Hmm..not bad
What the hell is this?
encyclopedia
recommendation
Freenet DSL
Who's Online
7 user(s) are online (5 user(s) are browsing encyclopedia)

Members: 0
Guests: 7

more...
partner

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:

  • make a software library easier to use and understand, since the façade has convenient methods for common tasks;
  • make code that uses the library more readable, for the same reason;
  • reduce dependencies of outside code on the inner workings of a library, since most code uses the façade, thus allowing more flexibility in developing the system;
  • wrap a poorly designed collection of APIs with a single well-designed API.
  • 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