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.
1622



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



