Dedian |
|
|||
-- 關注搜索引擎的開發 |
日歷
統計
導航常用鏈接留言簿(8)隨筆分類(45)
隨筆檔案(82)
文章檔案(2)Java Spaces搜索積分與排名
最新評論
閱讀排行榜評論排行榜 |
Purpose:
Defines a higher-level interface to hide subsystem's complexities and provides an easy interface for client to use. Case study: Compiler subsystem Structure: -- The facade and backend classes(subsystem classes) are in a separate package from the client. -- The backend API is package-private -- The facade API is public. Implementation: consider following two issues when implementing a facade: -- Reducing client-subsystem coupling. -- Public versus private subsystem classes. reference: http://www.allapplabs.com/java_design_patterns/facade_pattern.htm
|
![]() |
|
Copyright © Dedian | Powered by: 博客園 模板提供:滬江博客 |