PureMVC Framework for haXe: API Documentation
Back | Index
class org.puremvc.haxe.patterns.command.SimpleCommand
extends org.puremvc.haxe.patterns.observer.Notifier
implements org.puremvc.haxe.interfaces.ICommand

A base ICommand implementation.

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

function new() : Void
function execute(notification : org.puremvc.haxe.interfaces.INotification) : Void

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.

Back | Index