Facade

Facade - Faade Design Pattern Source: Design Patterns...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Façade Design Pattern Source: Design Patterns – Elements of Reusable Object- Oriented Software; Gamma, et. al.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Problem A subsystem contains lots of classes, all of which are necessary to perform its function Most of the subsystem's internal complexity is not directly relevant to its clients We want to simplify the client's interface to the subsystem to make it easier to use We want to minimize client dependencies on the subsystem's internal details
Background image of page 2
Solution Introduce a Façade object that provides a simplified interface to the subsystem The Façade's interface provides exactly those operations needed by most clients, and no more The Façade translates high-level client requests into lower-level requests on subsystem objects Internal subsystem objects have no knowledge of the Façade
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Solution Most clients interact with the subsystem strictly through the Façade Advanced clients may still be allowed to access the full scope of subsystem functionality, but most clients don't need or want to
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 9

Facade - Faade Design Pattern Source: Design Patterns...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online