Command 在一个对象中封装一个请求

菜单命令
ShowCommand
客户代码
利用命令模式提供一个服务
DataService
命令模式的钩子
命令模式钩子
客户代码
The Command Pattern encapsulates a request as an object, thereby letting you parameterize other objects with different requests, queue or log requests, and suppoert undoable operations.
posted @ 2007-01-12 10:42  南守拥  阅读(247)  评论(0编辑  收藏  举报