Design Patterns five: Interface isolation mode

An interface isolation mode

In the assembly building process, the direct dependency between certain interfaces often bring a lot of problems, even impossible. Adding a layer of indirect use (stable) interface, the interface would have to isolate closely related to each other.

Second, the typical mode

Facade

Proxy

Adapter

Mediator

Third, the facade pattern (Facade)

 

Fourth, the proxy mode

 

Guess you like

Origin www.cnblogs.com/inspred/p/10994073.html