Package | com.asfusion.mate.actions.builders |
Class | public class ServiceInvokerBuilder |
Inheritance | ServiceInvokerBuilder AbstractServiceInvoker BaseAction AbstractAction |
Implements | IBuilder |
Subclasses | DelegateInvoker |
ServiceInvokerBuilder
class is very similar
to AbstractServiceInvoker
with the difference that it
also supports the IBuilder
interface that will allow
creating an object using a generator
class.
Property | Defined by | ||
---|---|---|---|
cache : String
The cache attribute lets you specify whether this newly created object should be kept live
so that the next time an instance of this class is requested, this already created object
is returned instead.
| ServiceInvokerBuilder | ||
constructorArguments : *
The constructorArgs allows you to pass an Object or an Array of objects to the contructor
when the instance is created.
| ServiceInvokerBuilder | ||
debug : Boolean
Whether to show debugging information for its inner-handlerss.
| AbstractServiceInvoker | ||
faultHandlers : Array
A set of inner-handlers to run when the server call returns a fault.
| AbstractServiceInvoker | ||
generator : Class
The generator attribute specifies what class should be instantiated.
| ServiceInvokerBuilder | ||
properties : ArrayProperties allows you to add properties to the currentInstance . | BaseAction | ||
registerTarget : Boolean
Registers the newly created object as an injector target.
| ServiceInvokerBuilder | ||
resultHandlers : Array
A set of inner-handlers to run when the server call returns a result.
| AbstractServiceInvoker |
Method | Defined by | ||
---|---|---|---|
actionListStartHandler(event:ActionListEvent):void
Handler that will be fired when the first of the innerHandlers starts executing.
| AbstractServiceInvoker | ||
The last method that
trigger calls. | AbstractAction | ||
createInnerHandlers(scope:IScope, innerType:String, actionList:Array, innerHandlersClass:Class = null):IActionList
Creates IActionList and sets the properties:
debug, type, listeners, dispatcher and inheritScope in the newly IActionList (inner-handlers).
| AbstractServiceInvoker | ||
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). | ServiceInvokerBuilder | ||
The first method that
trigger calls. | ServiceInvokerBuilder | ||
Where all the action occurs.
| ServiceInvokerBuilder | ||
setProperties(scope:IScope):void
Where all the properties are set into the
currentInstance . | BaseAction |
cache | property |
cache:String
[read-write]The cache attribute lets you specify whether this newly created object should be kept live so that the next time an instance of this class is requested, this already created object is returned instead.
The default value is inherit
.
public function get cache():String
public function set cache(value:String):void
constructorArguments | property |
constructorArguments:*
[read-write]The constructorArgs allows you to pass an Object or an Array of objects to the contructor when the instance is created.
You can use an array to pass multiple arguments or use a simple Object if your signature has only one parameter.
The default value is undefined
.
public function get constructorArguments():*
public function set constructorArguments(value:*):void
generator | property |
generator:Class
[read-write]The generator attribute specifies what class should be instantiated.
Implementation public function get generator():Class
public function set generator(value:Class):void
registerTarget | property |
registerTarget:Boolean
[read-write]
Registers the newly created object as an injector target. If true, this allows this object to be injected
with properties using the Injectors
tags.
public function get registerTarget():Boolean
public function set registerTarget(value:Boolean):void
createInstance | () | method |
protected function 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).
scope:IScope |
Object |
prepare | () | method |
protected override function prepare(scope:IScope):void
The first method that trigger
calls.
Usually, this is where the currentInstance
is created or set if needed.
In this method you can also perform any code that must be done first.
scope:IScope |
run | () | method |
protected override function run(scope:IScope):void
Where all the action occurs. At this moment, the currentInstance
is already instantiated and all the properties are already set.
scope:IScope |