| Package | org.springextensions.actionscript.ioc.factory.config |
| SVN browsing | EventHandlerProxy.as |
| Fisheye | EventHandlerProxy.as |
| Class | public class EventHandlerProxy |
| Inheritance | EventHandlerProxy org.as3commons.reflect.MethodInvoker |
| Implements | IApplicationDomainAware |
| Subclasses | CommandProxy |
Documentation reference: eventbus event handling using metadata annotations
| Property | Defined by | ||
|---|---|---|---|
| applicationDomain : ApplicationDomain | EventHandlerProxy | ||
| arguments : Array [write-only]
When setting the argument(s) for this proxy (which should be an Event), we save the Event in the protected
event variable.
| EventHandlerProxy | ||
| Property | Defined by | ||
|---|---|---|---|
| event : Event | EventHandlerProxy | ||
| methodInstance : Method | EventHandlerProxy | ||
| properties : Array | EventHandlerProxy | ||
| Method | Defined by | ||
|---|---|---|---|
|
EventHandlerProxy(target:Object, method:Method, properties:Array = null)
Creates a new
EventHandlerProxy instance. | EventHandlerProxy | ||
|
invoke():*
Invokes the event handler for the proxied method and decides what arguments to use, based on the
metadata of event handler function.
| EventHandlerProxy | ||
| Method | Defined by | ||
|---|---|---|---|
|
getArguments():Array
Returns the arguments that need to be used for invoking the proxied result handler.
| EventHandlerProxy | ||
|
getArgumentsFromMethod():Array
Returns the arguments based on the method signature of the proxied event handler.
| EventHandlerProxy | ||
|
getArgumentsFromMethodParameters(method:Method):Array
Returns the arguments based on the proxied method parameters.
| EventHandlerProxy | ||
|
getArgumentsFromProperties(properties:Array):Array
Returns the arguments based on the 'properties' value of the EventHandler annotation.
| EventHandlerProxy | ||
|
getEventPropertyByType(event:Event, type:Type):Object
Returns a property of the given event that is of the given type.
| EventHandlerProxy | ||
|
hasMultipleParametersOfSameType(method:Method):Boolean
Returns
true if the specified Method has multiple parameters of the same type. | EventHandlerProxy | ||
|
init(target:Object, method:Method, properties:Array):void
Initializes the current
EventHandlerProxy. | EventHandlerProxy | ||
| applicationDomain | property |
applicationDomain:ApplicationDomain [read-write]Implementation
public function get applicationDomain():ApplicationDomain
public function set applicationDomain(value:ApplicationDomain):void
| arguments | property |
arguments:Array [write-only]When setting the argument(s) for this proxy (which should be an Event), we save the Event in the protected event variable.
Implementation public function set arguments(value:Array):void
| event | property |
protected var event:Event
| methodInstance | property |
protected var methodInstance:Method
| properties | property |
protected var properties:Array
| EventHandlerProxy | () | constructor |
public function EventHandlerProxy(target:Object, method:Method, properties:Array = null)
Creates a new EventHandlerProxy instance.
target:Object |
|
method:Method |
|
properties:Array (default = null) |
| getArguments | () | method |
protected function getArguments():ArrayReturns the arguments that need to be used for invoking the proxied result handler.
ReturnsArray |
| getArgumentsFromMethod | () | method |
protected function getArgumentsFromMethod():ArrayReturns the arguments based on the method signature of the proxied event handler.
ReturnsArray |
| getArgumentsFromMethodParameters | () | method |
protected function getArgumentsFromMethodParameters(method:Method):ArrayReturns the arguments based on the proxied method parameters.
Parametersmethod:Method — The specified Method instance.
|
Array — An Array of argument objects.
|
| getArgumentsFromProperties | () | method |
protected function getArgumentsFromProperties(properties:Array):ArrayReturns the arguments based on the 'properties' value of the EventHandler annotation.
Parametersproperties:Array |
Array |
| getEventPropertyByType | () | method |
protected function getEventPropertyByType(event:Event, type:Type):ObjectReturns a property of the given event that is of the given type.
Parametersevent:Event |
|
type:Type |
Object |
| hasMultipleParametersOfSameType | () | method |
protected function hasMultipleParametersOfSameType(method:Method):Boolean
Returns true if the specified Method has multiple parameters of the same type.
method:Method — The specified Method.
|
Boolean — true if the given method has multiple parameters of the same type.
|
| init | () | method |
protected function init(target:Object, method:Method, properties:Array):void
Initializes the current EventHandlerProxy.
target:Object |
|
method:Method |
|
properties:Array |
| invoke | () | method |
public override function invoke():*Invokes the event handler for the proxied method and decides what arguments to use, based on the metadata of event handler function.
Returns* |