Packageorg.spicefactory.parsley.command.impl
Classpublic class DefaultCommandTriggerProvider
InheritanceDefaultCommandTriggerProvider Inheritance Object
Implements CommandTriggerProvider

Default implementation of the CommandTriggerProvider interface that determines the trigger for a command based on the first parameter type of the execute method or (if the execute method does not have parameters) based on the first parameter type of the constructor.



Public Methods
 MethodDefined By
  
Returns the trigger message for the specified command type or null if it cannot be determined.
DefaultCommandTriggerProvider
Method Detail
getTriggerType()method
public function getTriggerType(commandType:ClassInfo):ClassInfo

Returns the trigger message for the specified command type or null if it cannot be determined.

Parameters

commandType:ClassInfo — the type of the target command

Returns
ClassInfo — the trigger message type for the specified command