上一篇 <<<模板方法模式(Template Pattern)
下一篇 >>>建造者模式(Builder Pattern)
外觀模式:通過提供一個高層接口幻梯,為子系統(tǒng)中的一組接口提供一個一致的界面。
-
優(yōu)點(diǎn):隔離了外部系統(tǒng)與子系統(tǒng)間復(fù)雜的交互過程,使得復(fù)雜系統(tǒng)的子系統(tǒng)更易使用。
應(yīng)用場景
- 支付回調(diào)等復(fù)雜邏輯
外觀模式核心代碼圖示
相關(guān)文章鏈接:
<<<23種常用設(shè)計(jì)模式總覽
<<<代理模式(Proxy Pattern)
<<<裝飾模式(Decorator Pattern)
<<<觀察者模式(Observer Pattern)
<<<單例模式(Singleton Pattern)
<<<責(zé)任鏈模式(Chain of Responsibility Pattern)
<<<策略模式(Strategy Pattern)
<<<模板方法模式(Template Pattern)
<<<建造者模式(Builder Pattern)
<<<適配器模式(Adapter Pattern)
<<<原型模式(Prototype Pattern)
<<<工廠相關(guān)模式(Factory Pattern)