Package | com.asfusion.mate.actions.builders |
Class | public class AsyncCommandInvoker |
Inheritance | AsyncCommandInvoker AsyncMethodInvoker MethodInvoker ObjectBuilder BaseAction AbstractAction |
AsyncCommandInvoker
allows calling the execute method
on the newly created EventDispatcher
object or in the instance if
one is provided. Because the method is asynchronous, we register to the success
and fault events in this object and run the successHandlers or faultHandlers
depending of the result. Unless you specify cache="none", this AsyncCommandInvoker
instance will be "cached" and not instantiated again. If you are using an instance,
the object is never generated and the same instance is used every time.
Method | Defined by | ||
---|---|---|---|
actionListStartHandler(event:ActionListEvent):void
Handler that will be fired when the first of the innerHandlers starts executing.
| AsyncMethodInvoker | ||
The last method that
trigger calls. | AbstractAction | ||
createInnerHandlers(scope:IScope, innerType:String, actionList:Array, innerDispatcher:IEventDispatcher):IActionList
Creates IActionList and sets the properties:
debug, type, listeners, dispatcher and inheritScope in the newly IActionList (inner-handlers).
| AsyncMethodInvoker | ||
createInstance(scope:IScope):Object
Where the currentInstance is created using the
generator class as the template, passing arguments to the constructor
as specified by the constructorArgs (if any). | ObjectBuilder | ||
The first method that
trigger calls. | AsyncMethodInvoker | ||
Where all the action occurs.
| AsyncCommandInvoker | ||
setProperties(scope:IScope):void
Where all the properties are set into the
currentInstance . | BaseAction |