Packageorg.spicefactory.parsley.core.messaging
Classpublic class MessageReceiverKind
InheritanceMessageReceiverKind Inheritance Object

Enumeration for the different kinds of message receivers.



Public Properties
 PropertyDefined By
  key : String
[read-only] The unique key representing this kind.
MessageReceiverKind
Public Methods
 MethodDefined By
  
[static] Returns the constant corrsesponding to the specified command status.
MessageReceiverKind
Public Constants
 ConstantDefined By
  COMMAND_CANCEL_BY_TRIGGER : MessageReceiverKind
[static] Constant for a command observer for the status CANCEL, matching by trigger message and selector.
MessageReceiverKind
  COMMAND_CANCEL_BY_TYPE : MessageReceiverKind
[static] Constant for a command observer for the status CANCEL, matching by command type and id.
MessageReceiverKind
  COMMAND_COMPLETE_BY_TRIGGER : MessageReceiverKind
[static] Constant for a command observer for the status COMPLETE, matching by trigger message and selector.
MessageReceiverKind
  COMMAND_COMPLETE_BY_TYPE : MessageReceiverKind
[static] Constant for a command observer for the status COMPLETE, matching by command type and id.
MessageReceiverKind
  COMMAND_ERROR_BY_TRIGGER : MessageReceiverKind
[static] Constant for a command observer for the status ERROR, matching by trigger message and selector.
MessageReceiverKind
  COMMAND_ERROR_BY_TYPE : MessageReceiverKind
[static] Constant for a command observer for the status ERROR, matching by command type and id.
MessageReceiverKind
  COMMAND_EXECUTE_BY_TRIGGER : MessageReceiverKind
[static] Constant for a command observer for the status EXECUTE, matching by trigger message and selector.
MessageReceiverKind
  COMMAND_EXECUTE_BY_TYPE : MessageReceiverKind
[static] Constant for a command observer for the status EXECUTE, matching by command type and id.
MessageReceiverKind
  ERROR_HANDLER : MessageReceiverKind
[static] Constant for an error handler.
MessageReceiverKind
  TARGET : MessageReceiverKind
[static] Constant for a regular message target (like MessageHandler or Command).
MessageReceiverKind
Property Detail
keyproperty
key:String  [read-only]

The unique key representing this kind.


Implementation
    public function get key():String
Method Detail
forCommandStatus()method
public static function forCommandStatus(status:CommandStatus, byTrigger:Boolean):MessageReceiverKind

Returns the constant corrsesponding to the specified command status.

Parameters

status:CommandStatus — the status to return the corresponding receiver kind for
 
byTrigger:Boolean — whether the observer matches by trigger message and selector (true) or command type and id (false)

Returns
MessageReceiverKind — the constant corrsesponding to the specified command status
Constant Detail
COMMAND_CANCEL_BY_TRIGGERConstant
public static const COMMAND_CANCEL_BY_TRIGGER:MessageReceiverKind

Constant for a command observer for the status CANCEL, matching by trigger message and selector.

COMMAND_CANCEL_BY_TYPEConstant 
public static const COMMAND_CANCEL_BY_TYPE:MessageReceiverKind

Constant for a command observer for the status CANCEL, matching by command type and id.

COMMAND_COMPLETE_BY_TRIGGERConstant 
public static const COMMAND_COMPLETE_BY_TRIGGER:MessageReceiverKind

Constant for a command observer for the status COMPLETE, matching by trigger message and selector.

COMMAND_COMPLETE_BY_TYPEConstant 
public static const COMMAND_COMPLETE_BY_TYPE:MessageReceiverKind

Constant for a command observer for the status COMPLETE, matching by command type and id.

COMMAND_ERROR_BY_TRIGGERConstant 
public static const COMMAND_ERROR_BY_TRIGGER:MessageReceiverKind

Constant for a command observer for the status ERROR, matching by trigger message and selector.

COMMAND_ERROR_BY_TYPEConstant 
public static const COMMAND_ERROR_BY_TYPE:MessageReceiverKind

Constant for a command observer for the status ERROR, matching by command type and id.

COMMAND_EXECUTE_BY_TRIGGERConstant 
public static const COMMAND_EXECUTE_BY_TRIGGER:MessageReceiverKind

Constant for a command observer for the status EXECUTE, matching by trigger message and selector.

COMMAND_EXECUTE_BY_TYPEConstant 
public static const COMMAND_EXECUTE_BY_TYPE:MessageReceiverKind

Constant for a command observer for the status EXECUTE, matching by command type and id.

ERROR_HANDLERConstant 
public static const ERROR_HANDLER:MessageReceiverKind

Constant for an error handler.

TARGETConstant 
public static const TARGET:MessageReceiverKind

Constant for a regular message target (like MessageHandler or Command).