Packagecom.asfusion.mate.actions.builders
Classpublic class ServiceInvokerBuilder
InheritanceServiceInvokerBuilder Inheritance AbstractServiceInvoker Inheritance BaseAction Inheritance AbstractAction
ImplementsIBuilder
SubclassesDelegateInvoker

This base 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.



Public Properties
 PropertyDefined 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
 Inheriteddebug : Boolean
Whether to show debugging information for its inner-handlerss.
AbstractServiceInvoker
 InheritedfaultHandlers : 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
 Inheritedproperties : Array
Properties allows you to add properties to the currentInstance.
BaseAction
  registerTarget : Boolean
Registers the newly created object as an injector target.
ServiceInvokerBuilder
 InheritedresultHandlers : Array
A set of inner-handlers to run when the server call returns a result.
AbstractServiceInvoker
Protected Properties
 PropertyDefined by
 InheritedautoUnregistration : Boolean = true
When auto unregistration is true, all inner handlers will be unregistered after the first inner handlers fires.
AbstractServiceInvoker
 InheritedcurrentIndex : int = 0
Index used to store groups of inner handlers.
AbstractServiceInvoker
 InheritedcurrentInstance : * = null
The currentInstance is the Object that this class will use and modify to do its work.
AbstractAction
 Inheriteddocument : Object
A reference to the document object associated with the IActionList that contains this action item.
AbstractAction
 InheritedinnerHandlersClass : Class
Class that is used as a template to create the inner-handlers
AbstractServiceInvoker
 InheritedinnerHandlersDispatcher : IEventDispatcher
Dispatcher that will trigger the inner-handlers execution by dispatching events (ie: ResultEvent or FaultEvent).
AbstractServiceInvoker
 InheritedinnerHandlersList : Array
Inner handlers list that stores all inner handlers indexed by the currentIndex.
AbstractServiceInvoker
Public Methods
 MethodDefined by
 Inherited
initialized(document:Object, id:String):void
Called automatically by the MXML compiler if the AbstractAction is set up by using a tag.
AbstractAction
 Inherited
trigger(scope:IScope):void
This method gets called when the IActionList (ex: EventHandlers) is running.
AbstractAction
Protected Methods
 MethodDefined by
 Inherited
Handler that will be fired when the first of the innerHandlers starts executing.
AbstractServiceInvoker
 Inherited
complete(scope:IScope):void
The last method that trigger calls.
AbstractAction
 Inherited
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
  
prepare(scope:IScope):void
The first method that trigger calls.
ServiceInvokerBuilder
  
run(scope:IScope):void
Where all the action occurs.
ServiceInvokerBuilder
 Inherited
setProperties(scope:IScope):void
Where all the properties are set into the currentInstance.
BaseAction
Property detail
cacheproperty
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.

Implementation
    public function get cache():String
    public function set cache(value:String):void
constructorArgumentsproperty 
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.

Implementation
    public function get constructorArguments():*
    public function set constructorArguments(value:*):void
generatorproperty 
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
registerTargetproperty 
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.

Implementation
    public function get registerTarget():Boolean
    public function set registerTarget(value:Boolean):void
Method detail
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).

Parameters
scope:IScope

Returns
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.

Parameters
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.

Parameters
scope:IScope