ICommandable

An interface used to expose the functionality of commandable objects as commands and events grouped into a CommandSet object.

Description

The ICommandable interface allows you to expose the functionality of commandable objects as commands and events grouped into a CommandSet object.

Important points

  • This interface is typically implemented by controllers and is used to auto generate external interfaces.

Instance methods

getCommandSet

Gets a command set with all supported commands and events.

CommandSet getCommandSet()

  • returns: CommandSet - command set with commands and events.

Examples

class MyDataController implements ICommandable, IMyDataController {
  MyDataCommandSet _commandSet;
  CommandSet getCommandSet() {
    if (_commandSet == null)
      _commandSet =  MyDataCommandSet(this);
    return _commandSet;
  }
  ...
}

See also