| Package | org.spicefactory.parsley.processor.messaging.receiver |
| Class | public class AbstractMessageHandler |
| Inheritance | AbstractMessageHandler AbstractMethodReceiver AbstractObjectProviderReceiver AbstractMessageReceiver Object |
| Subclasses | DefaultCommandTarget, MessageHandler |
| Method | Defined By | ||
|---|---|---|---|
AbstractMessageHandler(provider:ObjectProvider, methodName:String, selector:*, messageType:ClassInfo = null, messageProperties:Array = null, order:int, supportsProcessorParam:Boolean = false)
Creates a new instance. | AbstractMessageHandler | ||
| Method | Defined By | ||
|---|---|---|---|
![]() |
Returns the Class to use as the message type. | AbstractMethodReceiver | |
invokeMethod(processor:MessageProcessor):* | AbstractMessageHandler | ||
| AbstractMessageHandler | () | Constructor |
public function AbstractMessageHandler(provider:ObjectProvider, methodName:String, selector:*, messageType:ClassInfo = null, messageProperties:Array = null, order:int, supportsProcessorParam:Boolean = false)Creates a new instance.
Parametersprovider:ObjectProvider — the provider for the instance that contains the target method
| |
methodName:String — the name of the target method that should be invoked
| |
selector:* (default = NaN) — an optional selector value to be used for selecting matching message targets
| |
messageType:ClassInfo (default = null) — the type of the message or null if it should be autodetected by the parameter of the target method
| |
messageProperties:Array (default = null) — the list of names of properties of the message that should be used as method parameters
| |
order:int (default = NaN) — the execution order for this receiver
| |
supportsProcessorParam:Boolean (default = false) — whether this handler type supports an additional parameter of type MessageProcessor
|
| invokeMethod | () | method |
protected function invokeMethod(processor:MessageProcessor):*
Parameters
processor:MessageProcessor |
* |