摘要: 命令模式CommandPattern(AnotherName:Action,Transaction)Encapsulatearequestasanobject,therebylettingyouparameterizeclientswithdifferentrequests,queueorlogrequest,andsupportundoableoperations.将一个请求对象封装成一个对象,从而使用户能用不同的请求对客户进行参数化,对请求排队或者记录请求日志,以及支持可撤销的操作用于行为请求者和行为实行者实现解耦,可实现二者之间的松耦合,以便适应变化,分离变化于不变的因素.命令模式类图命 阅读全文
posted @ 2013-09-18 13:31 fanhualuodi 阅读(165) 评论(0) 推荐(0) 编辑