Design Pattern Explained (3) - FACADE

xiaoxiao2021-03-06  58

Facade Pronounces / F2'sa: D /

"Province a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface tria makees the subsystem easier to use."

------ Gof

INTENT: You Want To Simplify Now Use An existing system. You need to define yourown interfaces.

Problem: You NEED To Use Only A Subset of a Complex System. Or You NEED TO INTE-ACT WITH TEH SYSTEM IN A Particular Way.

This Approach ONLY WORKS WHEN USING A Subset of The System's Capability or WHEN INTERACTING WIT ITICULAR WAY. (It see That We do always "

Variations on Facade:.. 1 reduce the number of objects a client must work with 2 supplement existing functions with new routines In addition to using functions that are in the system, I also need to provide some new functionality 3 encapsulating layer Track system usage Swap Out systems.

... .....

转载请注明原文地址:https://www.9cbs.com/read-116907.html

New Post(0)