摘要: Using Callbacks to Achieve Extensibility 利用回调完成可扩展性 Let's now consider another use of "inversion of control" to parameterize a single operation, while moving control and error handling into a framewor... 阅读全文
posted @ 2012-11-24 23:23 sqtds 阅读(186) 评论(0) 推荐(0) 编辑
摘要: The Template Method Design Pattern 模板方法 One good use of concrete inheritance is to implement the Template Method design pattern. 类继承的一个好的用法是实现模板方法设计模式 The Template Method design pattern (GoF) addr... 阅读全文
posted @ 2012-11-24 12:10 sqtds 阅读(158) 评论(0) 推荐(0) 编辑