Command Pattern - main players

  • Client
    • Creates and executes Commands
  • ICommand
    • An interface that specifies the Execute operation
  • Invoker
    • Asks the Command to carry out the Action
  • Command
    • A class that implements the Execute operation by invoking operations on the Receiver
  • Receiver
    • Any class that can perform the required Action
  • Action
    • The operation that needs to be performed