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.

Methods

GetCommandSet

Gets a command set with all supported commands and events.

GetCommandSet() *CommandSet

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

Examples

type MyDataController {
 _commandSet  *CommandSet;
}

func (dc *MyDataController) GetCommandSet() *CommandSet {
  if (dc._commandSet == nil)
    dc._commandSet = NewDataCommandSet();
  return dc._commandSet;
}
 

See also