SimpleCommand

SimpleCommand

new SimpleCommand()

A base Command implementation.

Your subclass should override the `execute` method where your business logic will handle the `Notification`.

Source:
See:
  • Controller Controller
  • Notification Notification
  • MacroCommand MacroCommand

Methods

execute(notification)

Fulfill the use-case initiated by the given Notification.

In the Command Pattern, an application use-case typically begins with some user action, which results in a `Notification` being broadcast, which is handled by business logic in the `execute` method of an `Command`.

Source:
Parameters:
Name Type Description
notification Notification