`
sinokaka
  • 浏览: 324236 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

One important characteristic of a framework

阅读更多
One important characteristic of a framework is that the methods defined by the user to tailor the framework will often be called from within the framework itself, rather than from the user‘s application code. The framework often plays the role of the main program in coordinating and sequencing application activity. This inversion of control gives frameworks the power to serve as extensible skeletons. The methods supplied by the user tailor the generic algorithms defined in the framework for a particular application.

--Ralph Johnson and Brian Foote
 
框架的一个重要特性就是框架会去调用符合这个框架的方法,而不是用户自己的程序,框架通常在主程序中扮演的是定位和引导程序的活动的角色,倒转控制给了框架充当扩展骨架的能力。用户可以根据特定的应用程序来裁剪框架中的通用算法。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics