Wednesday 29 July 2015

The Facade Pattern

Facade Pattern

 - In this post we are going to look at a pattern that alters an interface, to simplify the interface. Its aptly named the Facade Pattern because this pattern hides all the complexity of one or more classes behind a clean, well lit facade.

Defined

-The Facade Pattern provides a unified interface to a set of interfaces in a subsystem. Facade defines a higher level interface that makes the subsystem easier to use.

Diagrams


 

Bullet Points

  • When you need to simplify and unify a large interface or complex set of interfaces, use a Facade.
  • A Facade decouples a client from a complex subsystem
  • Implementing a Facade requires that we compose the facade with its subsystem and use delegation to perform the work of the Facade.
  • You  can implement more then one Facade per subsystem

 

No comments:

Post a Comment