Chain of Responsibility(Gof-Behavioral Design Patterns)
来源:互联网 发布:ubuntu如何安装vim 编辑:程序博客网 时间:2024/05/22 14:16
这是一种比较有用的模式,特别是在分级审核的情况下。
首先,需要定义一个抽象传递类,也就是一个接口,里面列出基本的属性和方法,当然,还需要有个方法用来连接所有的链条。
然后,定义具体的审核类,它应该是继承刚才的抽象类,并实现所有的接口。这些类是链条上的实际环节,如市长、省长等。
在使用的时候,根据需要实例化审核类,设置其上级对象。
具体实例略。
- Chain of Responsibility(Gof-Behavioral Design Patterns)
- Design Pattern - Behavioral Patterns - Chain of Responsibility Pattern
- Behavioral Patterns Part 1/11: Chain Of Responsibility Pattern
- Design Patterns -- Chain of Responsibility (CoR)
- Command Pattern(GoF-Behavioral Design Patterns)
- Interpreter Pattern(GoF-Behavioral Design Patterns)
- Iterator Pattern(GoF-Behavioral Design Patterns)
- Mediator Pattern(GoF-Behavioral Design Patterns)
- Memento Pattern(GoF-Behavioral Design Patterns)
- Design Patterns 入門 - 職責鏈(Chain of Responsibility) [精華]
- 大卫的Design Patterns学习笔记13:Chain of Responsibility
- C++实现Behavioral - Chain Of Responsibility模式
- Behavioral模式之Chain of Responsibility模式
- [Behavioral Patterns #1] Chain of responsibilty
- 笔记:Gof设计模式--Chain of Responsibility
- Patterns in SOME –Chain Of Responsibility
- Behavioral Design Patterns
- Behavioral patterns_Java design Patterns
- 我的日记-2009.3.26
- 一位软件工程师的6年总结(转)
- 系统程序员成长计划-Don’t Repeat Yourself(DRY)(上)
- 家居用品适合B2C直销模式吗?
- 系统程序员成长计划-Don’t Repeat Yourself(DRY)(下)
- Chain of Responsibility(Gof-Behavioral Design Patterns)
- 动态加载XAML文件
- 山雨欲来风满楼——云计算趋势一览
- 系统程序员成长计划-你的数据放在哪里
- .net下的AO对象的安全释放
- 2008年中国薪酬状况白皮书
- ASP.NET缓存:方法和最佳实践 (转载)
- 2.4 简单看一下Metadata
- 测试我的地址