Packagecom.ericfeminella.rpc
Interfacepublic interface IRemoteService
ImplementorsAMFPHPRemoteGateway

Provides a default contract for a class which needs to invoke asynchronous calls between tiers of an application.



Public Methods
 MethodDefined by
  
addResponder(responder:IResponder):void
Adds a callback responder which is invoked upon RPC result and fault responses
IRemoteService
  
invoke(method:String, ... args):void
Invokes a method on a remote object as specifed in remoteServiceClass
IRemoteService
  
remoteServiceClass(remoteClass:String):void
Sets the class in which remote procedure call (RPC) invocation is to be made.
IRemoteService
Method detail
addResponder()method
public function addResponder(responder:IResponder):void

Adds a callback responder which is invoked upon RPC result and fault responses

Parameters
responder:IResponder — object that implements IResponder
invoke()method 
public function invoke(method:String, ... args):void

Invokes a method on a remote object as specifed in remoteServiceClass

Parameters
method:String — method to invoke on the remote object
 
... args — arbitrary length of arguments passed to the remote method
remoteServiceClass()method 
public function remoteServiceClass(remoteClass:String):void

Sets the class in which remote procedure call (RPC) invocation is to be made. You must include the fully qualified classpath.

The remoteServiceClass instance class can be changed at runtime therefor a single instance of a concrete RemoteGateway implementation can be used to call methods on various objects

Parameters
remoteClass:String — remote class to invoke