Packagecom.bourre.service
Classpublic class AbstractService
InheritanceAbstractService Inheritance AbstractCommand
ImplementsService

Player version: Flash Player 9.0
Language version: ActionScript 3.0

The AbstractService class implements basic Service interface.



Protected Properties
 PropertyDefined by
 Inherited_owner : Plugin
A reference to the plugin owner of this command.
AbstractCommand
Public Methods
 MethodDefined by
  
Creates new AbstractService instance.
AbstractService
  
addASyncCommandListener(listener:ASyncCommandListener, ... rest):Boolean
Adds the passed-in command listener object as listener for this command events.
AbstractService
  
addEventListener(type:String, listener:Object, ... rest):Boolean
AbstractService
  
AbstractService
 Inherited
execute(e:Event = null):void
Override the execute virtual method to create a concret command.
AbstractCommand
  
Fires the onCommandEnd event to the listeners of this command.
AbstractService
  
fireError():void
Dispatches an error event to tell listeners that an error occurs.
AbstractService
  
fireResult():void
Dispatches event to tell listeners that a result is available.
AbstractService
  
getArguments():Object
Returns arguments used by this service.
AbstractService
 Inherited
Returns the exclusive logger object owned by the plugin.
AbstractCommand
 Inherited
getModel(key:String):AbstractModel
Returns a reference to the model AbstractModel.
AbstractCommand
 Inherited
Returns a reference to the owner of this command.
AbstractCommand
  
getResult():Object
Returns the service treatment result.
AbstractService
  
AbstractService
 Inherited
getView(key:String):AbstractView
Returns a reference to the view AbstractView.
AbstractCommand
 Inherited
isModelRegistered(key:String):Boolean
Check if a model AbstractModel is registered with passed key in owner's ModelLocator.
AbstractCommand
  
isRunning():Boolean
Returns true if this object is running.
AbstractService
 Inherited
isViewRegistered(key:String):Boolean
Check if a view AbstractView is registered with passed key in owner's ViewLocator.
AbstractCommand
  
release():void
Releases service.
AbstractService
  
Removes the passed-in command listener object as listener for this command events.
AbstractService
  
removeEventListener(type:String, listener:Object):Boolean
AbstractService
  
AbstractService
  
run():void
Starts the asynchronous process of this runnable object.
AbstractService
  
setArguments(... rest):void
Defines arguments to use for this service.
AbstractService
 Inherited
setOwner(owner:Plugin):void
Defines the plugin owner of this command.
AbstractCommand
  
setResult(result:Object):void
AbstractService
 Inherited
toString():String
Returns the string representation of this instance.
AbstractCommand
Protected Methods
 MethodDefined by
 Inherited
firePrivateEvent(e:Event):void
Fires a private event directly on this command's owner.
AbstractCommand
Constructor detail
AbstractService()constructor
public function AbstractService()

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Creates new AbstractService instance.

Method detail
addASyncCommandListener()method
public function addASyncCommandListener(listener:ASyncCommandListener, ... rest):Boolean

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Adds the passed-in command listener object as listener for this command events.

The addASyncCommandListener function support the custom arguments provided by the EventBroadcaster.addEventListener() method.

Parameters
listener:ASyncCommandListener — the listener object which want to receive notification from this command
 
... rest — optional arguments corresponding to the EventBroadcaster.addEventListener() behavior.

Returns
Booleantrue if the listener have been added as result of the call
addEventListener()method 
public function addEventListener(type:String, listener:Object, ... rest):Boolean

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Parameters
type:String
 
listener:Object
 
... rest

Returns
Boolean
addServiceListener()method 
public function addServiceListener(listener:ServiceListener):Boolean

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Parameters
listener:ServiceListener

Returns
Boolean
fireCommandEndEvent()method 
public function fireCommandEndEvent():void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Fires the onCommandEnd event to the listeners of this command.

fireError()method 
public function fireError():void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Dispatches an error event to tell listeners that an error occurs.

fireResult()method 
public function fireResult():void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Dispatches event to tell listeners that a result is available.

getArguments()method 
public function getArguments():Object

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Returns arguments used by this service.

Returns
Object — arguments used by this service.
getResult()method 
public function getResult():Object

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Returns the service treatment result.

Returns
Object — The service treatment result.
getServiceListener()method 
public function getServiceListener():Collection

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Returns
Collection
isRunning()method 
public function isRunning():Boolean

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Returns true if this object is running.

Returns
Booleantrue if this object is running.
release()method 
public function release():void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Releases service.

Event broadcaster, service arguments and result are released.

removeASyncCommandListener()method 
public function removeASyncCommandListener(listener:ASyncCommandListener):Boolean

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Removes the passed-in command listener object as listener for this command events.

Parameters
listener:ASyncCommandListener — the listener object which to remove from this command's listeners

Returns
Booleantrue if the listener have been removed as result of the call
removeEventListener()method 
public function removeEventListener(type:String, listener:Object):Boolean

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Parameters
type:String
 
listener:Object

Returns
Boolean
removeServiceListener()method 
public function removeServiceListener(listener:ServiceListener):Boolean

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Parameters
listener:ServiceListener

Returns
Boolean
run()method 
public function run():void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Starts the asynchronous process of this runnable object.

The contract for concret implementations of the run method is that the Runnable object must be considered as running as result of the call. Except if an exception was throw during the call.

setArguments()method 
public function setArguments(... rest):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Defines arguments to use for this service.

Parameters
... rest — argument list
setResult()method 
public function setResult(result:Object):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Parameters
result:Object