A builder DSL for mapping commands to messages.
This API adds on top of the standalone Spicelib Commands builder APIs the ability
to let commands get managed by a Parsley Context during execution and to trigger execution
based on a message.
public function messageType(type:Class):MappedCommandBuilder
The type of message (including subtypes) that should trigger
type:Class — the type of message that should trigger command execution
public function order(order:int):MappedCommandBuilder
The execution order in relation to other message receivers.
This order attribute affects all types of message receivers,
not only those that execute commands.
order:int — the execution order in relation to other message receivers
public function register(context:Context):void
Registers this mapping with the specified Context.
context:Context — the Context this mapping is applied to
public function scope(scope:String):MappedCommandBuilder
The name of the scope in which to listen for messages.
scope:String — the name of the scope in which to listen for messages
public function selector(selector:*):MappedCommandBuilder
The optional selector for mapping matching messages.
selector:* — the selector to use for matching messages
Mon Feb 6 2012, 01:04 AM +01:00