Package | org.spicefactory.parsley.messaging.receiver |
Class | public class AbstractMethodReceiver |
Inheritance | AbstractMethodReceiver AbstractObjectProviderReceiver AbstractMessageReceiver Object |
Implements | MethodReceiver |
Subclasses | DefaultCommandObserver, DefaultMessageErrorHandler, DefaultMessageHandler |
Property | Defined By | ||
---|---|---|---|
order : int [read-only]
The execution order for this receiver. | AbstractMessageReceiver | ||
provider : ObjectProvider [read-only]
The provider for the actual instance handling the message. | AbstractObjectProviderReceiver | ||
selector : * [read-only]
An optional selector value to be used for selecting matching messages. | AbstractMessageReceiver | ||
targetMethod : Method [read-only]
The method to invoke for matching messages. | AbstractMethodReceiver | ||
type : Class [read-only]
The class or interface of the message. | AbstractMessageReceiver |
Method | Defined By | ||
---|---|---|---|
Creates a new instance. | AbstractMethodReceiver | ||
Initializes this receiver, passing the target object
provider and method. | AbstractMethodReceiver | ||
toString():String | AbstractMethodReceiver |
Method | Defined By | ||
---|---|---|---|
deduceMessageTypeFromParameter(method:Method, paramIndex:uint):void
Returns the Class to use as the message type. | AbstractMethodReceiver | ||
setProvider(provider:ObjectProvider):void
Sets the provider for target instances for this receiver. | AbstractObjectProviderReceiver |
targetMethod | property |
targetMethod:Method
[read-only] The method to invoke for matching messages.
public function get targetMethod():Method
AbstractMethodReceiver | () | Constructor |
public function AbstractMethodReceiver(info:MessageReceiverInfo)
Creates a new instance.
Parametersinfo:MessageReceiverInfo — the mapping information for this receiver
|
deduceMessageTypeFromParameter | () | method |
protected function deduceMessageTypeFromParameter(method:Method, paramIndex:uint):void
Returns the Class to use as the message type. When the explicit type is set, this method will validate if it matches the target parameter of the method (subtypes are allowed). If omitted the message type will be solely determined by the parameter type.
Parameters
method:Method — the target method
| |
paramIndex:uint — the index of the parameter that expects the dispatched message
|
init | () | method |
public function init(provider:ObjectProvider, method:Method):void
Initializes this receiver, passing the target object provider and method.
Parameters
provider:ObjectProvider — the provider to use for obtaining target instances for matching messages
| |
method:Method — the target method on instances obtained by the provider that handles the message
|
toString | () | method |
public function toString():String
ReturnsString |