随笔分类 -  Design Pattern

摘要:【 注意Presenter跟View之间的关系,从Presenter出发的箭头并没有直接连在View上,而是跟View的“接口”相连,这就说明一个很重要的一点就是Presenter并不是直接跟具体的View紧密联系在一起,Presenter只知道View的Interface。这样做的好处就是让Presenter可以独立于具体的View而实现所有的logic, 如果之后改变View,只要相应的Int... 阅读全文
posted @ 2009-12-01 14:53 FangwenYu 阅读(1494) 评论(0) 推荐(0)
摘要:Source: http://blog.vuscode.com/malovicn/archive/2006/10/10/Model-View-Presenter-_2800_MVP_2900_-pattern.aspx What is MVP? View is responsible for visual representation of the form and it contains a ... 阅读全文
posted @ 2009-11-29 22:48 FangwenYu 阅读(419) 评论(0) 推荐(0)
摘要:Source: http://blog.vuscode.com/malovicn/archive/2007/01/19/dependency-injection-and-service-locator.aspx Dependency Injection (DI) -- Dependency injection is an interface programming technique whic... 阅读全文
posted @ 2009-11-28 21:16 FangwenYu 阅读(339) 评论(0) 推荐(0)