Packagecom.asfusion.mate.actions.builders
Classpublic class RemoteObjectInvoker
InheritanceRemoteObjectInvoker Inheritance ServiceInvoker Inheritance AbstractServiceInvoker Inheritance BaseAction Inheritance AbstractAction
ImplementsIAction

The RemoteObjectInvoker tag is used to create a RemoteObject instance and call a method on the object created. To use this tag, you need to specify the same attributes you would when creating a remote object with the RemoteObject tag. In addition, you need to specify what method to call. This tag will also accept all mx.rpc.remoting.RemoteObject tag attributes (with the exception of the "operations" property).



Public Properties
 PropertyDefined by
  arguments : *
The property arguments allows you to pass an Object or an Array of objects when calling the function defined in the property method.
RemoteObjectInvoker
 InheritedchannelSet : ChannelSet
Provides access to the ChannelSet used by the service.
ServiceInvoker
  concurrency : String
Value that indicates how to handle multiple calls to the same service.
RemoteObjectInvoker
 Inheriteddebug : Boolean
Whether to show debugging information for its inner-handlerss.
AbstractServiceInvoker
 Inheriteddestination : String
The destination of the service.
ServiceInvoker
  endpoint : String
This property allows the developer to quickly specify an endpoint for a RemoteObject destination without referring to a services configuration file at compile time or programmatically creating a ChannelSet.
RemoteObjectInvoker
 InheritedfaultHandlers : Array
A set of inner-handlers to run when the server call returns a fault.
AbstractServiceInvoker
  instance : RemoteObject
If this property is null, a new RemoteObject instance is created on the prepare method.
RemoteObjectInvoker
 InheritedmakeObjectsBindable : Boolean
When this value is true, anonymous objects returned are forced to bindable objects.
ServiceInvoker
 Inheritedmethod : Object
The method attribute specifies what function to call on the service instance.
ServiceInvoker
 Inheritedpassword : Object
Password to supply to setCredentials method
ServiceInvoker
 Inheritedproperties : Array
Properties allows you to add properties to the currentInstance.
BaseAction
 InheritedremotePassword : Object
Password to supply to setCredentials method
ServiceInvoker
 InheritedremoteUsername : Object
Username to supply to setCredentials method
ServiceInvoker
 InheritedrequestTimeout : int
Provides access to the request timeout in seconds for sent messages.
ServiceInvoker
 InheritedresultHandlers : Array
A set of inner-handlers to run when the server call returns a result.
AbstractServiceInvoker
  showBusyCursor : Boolean
If true, a busy cursor is displayed while a service is executing.
RemoteObjectInvoker
  source : String
Lets you specify a source value on the client; not supported for destinations that use the JavaAdapter.
RemoteObjectInvoker
 Inheritedusername : Object
Username to supply to setCredentials method
ServiceInvoker
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
 Inheritedtoken : AsyncToken
Generated when making asynchronous RPC operations.
ServiceInvoker
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.
ServiceInvoker
 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
  
prepare(scope:IScope):void
The first method that trigger calls.
RemoteObjectInvoker
  
run(scope:IScope):void
Where all the action occurs.
RemoteObjectInvoker
 Inherited
setProperties(scope:IScope):void
Where all the properties are set into the currentInstance.
BaseAction
Property detail
argumentsproperty
arguments:*  [read-write]

The property arguments allows you to pass an Object or an Array of objects when calling the function defined in the property method. You can use an array to pass multiple arguments or use a simple Object if the signature of the method has only one parameter.

The default value is undefined.

Implementation
    public function get arguments():*
    public function set arguments(value:*):void
concurrencyproperty 
concurrency:String  [read-write]

Value that indicates how to handle multiple calls to the same service. The default value is multiple. The following values are permitted:

The default value is multiple.

Implementation
    public function get concurrency():String
    public function set concurrency(value:String):void
endpointproperty 
endpoint:String  [read-write]

This property allows the developer to quickly specify an endpoint for a RemoteObject destination without referring to a services configuration file at compile time or programmatically creating a ChannelSet. It also overrides an existing ChannelSet if one has been set for the RemoteObject service.

f the endpoint url starts with "https" a SecureAMFChannel will be used, otherwise an AMFChannel will be used. Two special tokens, {server.name} and {server.port}, can be used in the endpoint url to specify that the channel should use the server name and port that was used to load the SWF.

Note: This property is required when creating AIR applications.

Implementation
    public function get endpoint():String
    public function set endpoint(value:String):void
instanceproperty 
instance:RemoteObject  [read-write]

If this property is null, a new RemoteObject instance is created on the prepare method. Otherwise, this instance will be used. The class that will be used to create the instance if none is provided is mx.rpc.remoting.mxml.RemoteObject

The default value is null.

Implementation
    public function get instance():RemoteObject
    public function set instance(value:RemoteObject):void
showBusyCursorproperty 
showBusyCursor:Boolean  [read-write]

If true, a busy cursor is displayed while a service is executing. The default value is false.

The default value is false.

Implementation
    public function get showBusyCursor():Boolean
    public function set showBusyCursor(value:Boolean):void
sourceproperty 
source:String  [read-write]

Lets you specify a source value on the client; not supported for destinations that use the JavaAdapter. This allows you to provide more than one source that can be accessed from a single destination on the server.

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