class AbstractOperation
package feathers.rpc
extends AbstractInvoker
extended by AbstractOperation, Operation
The AbstractOperation class represents an individual method on a
service. An Operation can be called either by invoking the function of the
same name on the service or by accessing the Operation as a property on the
service and calling the send()
method.
See also:
mx.rpc.AbstractService
mx.rpc.remoting.RemoteObject
mx.rpc.soap.WebService
Constructor
new(?service:AbstractService, ?name:String)
Creates a new Operation. This is usually done directly by the MXML compiler or automatically by the service when an unknown Operation has been accessed. It is not recommended that a developer use this constructor directly.
Parameters:
service | The service on which the Operation is being invoked. |
---|---|
name | The name of the new Operation. |
Variables
arguments:Dynamic
The arguments to pass to the Operation when it is invoked. If you call
the send()
method with no parameters, an array based on
this object is sent. If you call the send()
method with
parameters (or call the function directly on the service) those
parameters are used instead of whatever is stored in this property.
For RemoteObject Operations the associated argumentNames array determines
the order of the arguments passed.
name:String
The name of this Operation. This is how the Operation is accessed off the service. It can only be set once.
properties:Dynamic
This is a hook primarily for framework developers to register additional user specified properties for your operation.
read onlyservice:AbstractService
Provides convenient access to the service on which the Operation is being invoked. Note that the service cannot be changed after the Operation is constructed.
Methods
send(args:Rest<Dynamic>):AsyncToken
Executes the method. Any arguments passed in are passed along as part of the method call. If there are no arguments passed, the arguments object is used as the source of parameters.
Parameters:
args | Optional arguments passed in as part of the method call. If there are no arguments passed, the arguments object is used as the source of parameters. |
---|
Returns:
AsyncToken object.
The same object is available in the result
and
fault
events from the token
property.