⇤ ← Revision 1 as of 2005-08-04 09:30:31
Size: 1017
Comment:
|
← Revision 2 as of 2009-12-25 07:18:02 ⇥
Size: 1017
Comment: converted to 1.6 markup
|
Deletions are marked like this. | Additions are marked like this. |
Line 4: | Line 4: |
-- flyaflya [[[DateTime(2005-08-04T09:30:31Z)]]] [[TableOfContents]] |
-- flyaflya [<<DateTime(2005-08-04T09:30:31Z)>>] <<TableOfContents>> |
-- flyaflya [2005-08-04 09:30:31]
Contents
1. Command(命令)
1.1. 意图
将一个请求封装为一个对象,从而使你可用不同的请求对客户进行参数化;对请求排队或记录请求日志,以及支持可撤消的操作。在python中叫“Command Dispatch Pattern”,也不需要将请求封装成对象,直接用字符串作命令请求。
1.2. 代码
1.3. 例子