Facade is a pattern which was referred to in so many books or articles. Here is a simple review of facade in POSA2, in which facade is called wrapper facade. For more details, refer to POSA2.
They say, the Wrapper Facade design pattern encapsulates the functions and data provided by existing non-object-oriented APIs within more concise, robust, portable, maintainable, and cohesive object-oriented class interfaces. It can alleviate the accidental complexity associated with programming using low-level APIs.
Subsequent patterns, such as Reactor, Proactor, use these wrapper facades of all kinds of os-specific APIs in their own implementations. Therefore, Wrapper Facade is such a foundamental facility not just for portable-oriented projects, many others frameworks or applications use it to simplify their code.
本文介绍了Facade设计模式,也称为Wrapper Facade,在《Patterns of Software Architecture》第二版中有所提及。该模式通过提供更简洁、健壮且易于维护的对象导向接口来封装非面向对象API的功能和数据,从而减轻使用底层API编程时的复杂性。
3533

被折叠的 条评论
为什么被折叠?



