命令模式 Command Pattern(Another Name:Action,Transaction) Encapsulate a request as an object ,thereby letting you parameterize clients with different requests, queue or log request , and support undoable operations . 将一个请求对象封装成一个对象,从而使用户能用不同的请求对客户进行参数化,对…
博客原文地址 折腾Java设计模式之命令模式 命令模式 wiki上的描述 Encapsulate a request as an object, thereby allowing for the parameterization of clients with different requests, and the queuing or logging of requests. It also allows for the support of undoable operations. 翻译意思…