December 2018
Intermediate to advanced
500 pages
12h 19m
English
The command pattern is a behavioral design pattern in which an object is used to represent a request (or actions) and encapsulate all information needed to process the same. This information includes the method name, the object that owns the method, and values for the method parameters.
Many times, the command needs to be persisted. This can happen if the command is going to be a long-running one or when you need to remember the commands to support features such as undo in a word processor (here, each change to the document will be a command).
The players in the command pattern are as follows:
Read now
Unlock full access