Class SimpleCommand

  extended by
      extended by
All Implemented Interfaces:
ICommand, INotifier

public class SimpleCommand
extends Notifier
implements ICommand

A base ICommand implementation.

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

See Also:
Controller, Notification, MacroCommand

Field Summary
Fields inherited from class
Constructor Summary
Method Summary
 void execute(INotification notification)
          Fulfill the use-case initiated by the given INotification.
Methods inherited from class
sendNotification, sendNotification, sendNotification
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface
sendNotification, sendNotification, sendNotification

Constructor Detail


public SimpleCommand()
Method Detail


public void execute(INotification notification)
Fulfill the use-case initiated by the given INotification.

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

Specified by:
execute in interface ICommand
notification - the INotification to handle.