Packageasgard.net.remoting
Classpublic class RemotingServiceListener
InheritanceRemotingServiceListener Inheritance CoreEventDispatcher Inheritance CoreObject
ImplementsIRemotingServiceListener

The basic implementation of the IRemotingEventListener interface.



Public Properties
 PropertyDefined by
 Inheritedchannel : String
Indicates the channel of this dispatcher if this instance is global.
CoreEventDispatcher
 InheritedisGlobal : Boolean
(read-only) Returns the value of the isGlobal flag of this model.
CoreEventDispatcher
  service : RemotingService
The RemotingService reference of this listener.
RemotingServiceListener
  verbose : Boolean = true
Indicates the verbose mode of this listener.
RemotingServiceListener
Public Methods
 MethodDefined by
  
RemotingServiceListener(service:RemotingService = null, bGlobal:Boolean = false, sChannel:String = null)
Creates a new RemotingServiceListener instance.
RemotingServiceListener
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0.0, useWeakReference:Boolean = false):void
Allows the registration of event listeners on the event target.
CoreEventDispatcher
 Inherited
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
CoreEventDispatcher
  
Invoked when the service notify an error.
RemotingServiceListener
  
Invoked when the service notify a fault.
RemotingServiceListener
  
Invoked when the service process is finished.
RemotingServiceListener
 Inherited
Returns the internal EventDispatcher reference.
CoreEventDispatcher
 Inherited
getIsGlobal():Boolean
Returns the value of the isGlobal flag of this model.
CoreEventDispatcher
 Inherited
Returns the internal ILogger reference of this ILogable object.
CoreObject
 Inherited
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
CoreEventDispatcher
 Inherited
hashCode():uint
Returns a hashcode value for the object.
CoreObject
 Inherited
Creates and returns the internal EventDispatcher reference (this method is invoked in the constructor).
CoreEventDispatcher
 Inherited
isLocked():Boolean
Returns true if the object is locked.
CoreEventDispatcher
 Inherited
lock():void
Locks the object.
CoreEventDispatcher
 Inherited
registerEventListener(type:String, listener:Boolean, useCapture:int = false, priority:Boolean = 0, useWeakReference:* = false):void
Allows the registration of event listeners on the event target (Function or EventListener).
CoreEventDispatcher
  
Registers the specified service.
RemotingServiceListener
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
CoreEventDispatcher
  
Invoked when the service notify a success.
RemotingServiceListener
 Inherited
Sets the internal EventDispatcher reference.
CoreEventDispatcher
 Inherited
setGlobal(flag:Boolean = false, channel:String = null):void
Sets if the instance use a global EventDispatcher to dispatch this events, if the flag value is false the instance use a local EventDispatcher.
CoreEventDispatcher
 Inherited
setLogger(log:ILogger = null):void
Sets the internal ILogger reference of this ILogable object.
CoreObject
  
Invoked when the service process is started.
RemotingServiceListener
  
Invoked when the service notify a timeout.
RemotingServiceListener
 Inherited
toSource(indent:int = 0):String
Returns the string representation the source code of the object.
CoreEventDispatcher
 Inherited
toString():String
Returns the string representation of this instance.
CoreObject
 Inherited
unlock():void
Unlocks the display.
CoreEventDispatcher
 Inherited
unregisterEventListener(type:String, listener:Boolean, useCapture:* = false):void
Removes a listener (Function or EventListener object) from the EventDispatcher object.
CoreEventDispatcher
  
Unregister the service register in this listener.
RemotingServiceListener
 Inherited
willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
CoreEventDispatcher
Property detail
serviceproperty
service:RemotingService  [read-write]

The RemotingService reference of this listener.

Implementation
    public function get service():RemotingService
    public function set service(value:RemotingService):void
verboseproperty 
public var verbose:Boolean = true

Indicates the verbose mode of this listener.

Constructor detail
RemotingServiceListener()constructor
public function RemotingServiceListener(service:RemotingService = null, bGlobal:Boolean = false, sChannel:String = null)

Creates a new RemotingServiceListener instance.

Parameters
service:RemotingService (default = null) — The RemotingService reference of this listener.
 
bGlobal:Boolean (default = false) — the flag to use a global event flow or a local event flow.
 
sChannel:String (default = null) — the name of the global event flow if the bGlobal argument is true.
Method detail
error()method
public function error(e:RemotingEvent):void

Invoked when the service notify an error.

Parameters
e:RemotingEvent
fault()method 
public function fault(e:RemotingEvent):void

Invoked when the service notify a fault.

Parameters
e:RemotingEvent
finish()method 
public function finish(e:ActionEvent):void

Invoked when the service process is finished.

Parameters
e:ActionEvent
registerService()method 
public function registerService(service:RemotingService):void

Registers the specified service.

Parameters
service:RemotingService
result()method 
public function result(e:RemotingEvent):void

Invoked when the service notify a success.

Parameters
e:RemotingEvent
start()method 
public function start(e:ActionEvent):void

Invoked when the service process is started.

Parameters
e:ActionEvent
timeout()method 
public function timeout(e:ActionEvent):void

Invoked when the service notify a timeout.

Parameters
e:ActionEvent
unregisterService()method 
public function unregisterService():Boolean

Unregister the service register in this listener.

Returns
Boolean — True if the unregister is success.