Command Pattern

The Command Pattern encapsulates a request as an object, thereby letting you parameterize other objects with different requests, queue or log requests, and support undoable operations.
原文地址:https://www.cnblogs.com/jasonC/p/3455231.html