Command

Behavioral Pattern

A command object encapsulates a request as an object. This object is sent to a receiver which executes the command. The advantage of this technique is that the requests can be queued, logged or implemented to support undo/redo.
Links
Related patterns
  • Chain of Responsibility: The Chain of Responsibility pattern sends requests along a chain, the Command pattern sends a request to a single component.
Books