门面设计模式 [英] Facade Design Pattern

查看:83
本文介绍了门面设计模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

系统应该只有一个外观设计模式?

解决方案

没有。没有这样的限制,没有一个原因。为什么?

一个明显的情况是系统中包含一些子系统及其各自的外观,但即使是相同的系统也可以有多个外观,为什么不呢?



请参阅:

http:// www .ni.com / white-paper / 3702 / en [ ^ ],

http://en.wikipedia.org/wiki/Subsystem [ ^ ],

http://en.wikipedia.org/wiki/Facade_pattern [ ^ ]。



-SA


不,它可以有多个



请参考以下链接



http://msdn.microsoft.com/en-us/library/orm-9780596527730-01-04.aspx [ ^

A system should have one and only one facade design pattern?

解决方案

No. There is no such limitation, there is no a single reason for that. Why?
One obvious situation is when a system contains some subsystems in it, with their respective facades, but even the same very system can have more then one facade, why not?

Please see:
http://www.ni.com/white-paper/3702/en[^],
http://en.wikipedia.org/wiki/Subsystem[^],
http://en.wikipedia.org/wiki/Facade_pattern[^].

—SA


No, It can have more than one

refer the below link

http://msdn.microsoft.com/en-us/library/orm-9780596527730-01-04.aspx[^]


这篇关于门面设计模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆