Computers

Design Patterns : Facade pattern

Motivation

Structuring a system in to subsystem helps reduce complexity. A common design goal is to minimize the commutation and dependencies between systems. One way to achieve this goal is to introduce a façade object that provides a single, simplified interface to the more general facilities of a subsystem.

Intent

Provide a unified interface to a set of interfaces in a Wrapper.

Diagram

Applicability

Use Façade pattern when

  • You want to provide a simple interface to a complex subsystem.
  • There are clients and the implementation classes of an abstraction. Introduce many dependencies between façade to decouple the subsystem from clients and other subsystems, thereby, promoting subsystem independence and portability.

Applicability:

Use Facade pattern when

You want to provide a simple interface to a complex subsystem.
There are clients and the implementation classes of an abstraction. Introduce many dependencies between façade to decouple the subsystem from clients and other subsystems, thereby, promoting subsystem independence and portability.

Share this post

Related Posts