| Package | org.spicefactory.parsley.processor.messaging.receiver |
| Class | public class DynamicCommandProxy |
| Inheritance | DynamicCommandProxy AbstractMessageReceiver Object |
| Implements | MessageTarget |
stateful property is false (the default) a new instance will be
created for each matching message.
| Property | Defined By | ||
|---|---|---|---|
![]() | messageType : Class [read-only]
The class or interface of the message. | AbstractMessageReceiver | |
![]() | order : int [read-only]
The execution order for this receiver. | AbstractMessageReceiver | |
| returnType : Class [read-only]
| DynamicCommandProxy | ||
![]() | selector : * [read-only]
An optional selector value to be used for selecting matching messages. | AbstractMessageReceiver | |
| Method | Defined By | ||
|---|---|---|---|
DynamicCommandProxy(messageInfo:ClassInfo, selector:*, order:int, context:Context, definition:DynamicObjectDefinition, stateful:Boolean, returnType:Class, execute:String, result:String = null, error:String = null, messageProperties:Array = null)
Creates a new instance. | DynamicCommandProxy | ||
handleMessage(processor:MessageProcessor):void
Handles a message for this target. | DynamicCommandProxy | ||
| returnType | property |
returnType:Class [read-only]
public function get returnType():Class| DynamicCommandProxy | () | Constructor |
public function DynamicCommandProxy(messageInfo:ClassInfo, selector:*, order:int, context:Context, definition:DynamicObjectDefinition, stateful:Boolean, returnType:Class, execute:String, result:String = null, error:String = null, messageProperties:Array = null)Creates a new instance.
ParametersmessageInfo:ClassInfo — the type of the message which should trigger command execution
| |
selector:* — the selector value to be used for selecting matching message targets
| |
order:int — the execution order for this receiver
| |
context:Context — the dynamic Context to use for creating new target instances
| |
definition:DynamicObjectDefinition — the object definition to create new instances from
| |
stateful:Boolean — whether the target command should keep state between command executions
| |
returnType:Class — the return type of the method that executes the command
| |
execute:String — the name of the method that executes the command
| |
result:String (default = null) — the (optional) name of the method to invoke for the result
| |
error:String (default = null) — the (optional) name of the method to invoke in case of errors.
| |
messageProperties:Array (default = null) — the list of names of properties of the message that should be used as method parameters
|
| handleMessage | () | method |
public function handleMessage(processor:MessageProcessor):voidHandles a message for this target. The specified processor may be used to control the message processing, like canceling or suspending a message.
Parameters
processor:MessageProcessor — the processor for the message
|