--[[ * @author PureMVC Lua Native Port by Sean * @author Copyright(c) 2006-2012 Futurescale, Inc., Some rights reserved. * * @class puremvc.SimpleCommand * @extends puremvc.Notifier * * SimpleCommands encapsulate the business logic of your application. Your * subclass should override the #execute method where your business logic will * handle the * {@link puremvc.Notification Notification} * * Take a look at * {@link puremvc.Facade#registerCommand Facade's registerCommand} * or {@link puremvc.Controller#registerCommand Controllers registerCommand} * methods to see how to add commands to your application. * * @constructor ]] local Notifier = require( framework.PACKAGE_NAME .. '/patterns/observer/Notifier') local SimpleCommand = class('SimpleCommand', Notifier) function SimpleCommand:ctor() SimpleCommand.super.ctor(self) end --[[ * 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 is handled by the business logic * in the #execute method of a command. * * @param {puremvc.Notification} notification * The notification to handle. * @return {void} ]] function SimpleCommand:execute(notification) end return SimpleCommand