Packageorg.mymvc
Interfacepublic interface IServices
ImplementorsAbstractServices

IServices defines an interface for managing services on an IServiceLocator.



Public Methods
 MethodDefined by
  
getService(name:String):Object
Return the service with the given name.
IServices
  
logout():void
Log the user out of all registered services.
IServices
  
register(serviceLocator:IServiceLocator):void
Register the services.
IServices
  
setCredentials(username:String, password:String):void
Set the credentials for all registered services.
IServices
  
setRemoteCredentials(username:String, password:String):void
Set the remote credentials for all registered services.
IServices
Method detail
getService()method
public function getService(name:String):Object

Return the service with the given name.

Parameters
name:String — the name of the service.

Returns
Object — the service.
logout()method 
public function logout():void

Log the user out of all registered services.

register()method 
public function register(serviceLocator:IServiceLocator):void

Register the services.

Parameters
serviceLocator:IServiceLocator — the IServiceLocator instance.
setCredentials()method 
public function setCredentials(username:String, password:String):void

Set the credentials for all registered services.

Parameters
username:String — the username to set.
 
password:String — the password to set.
setRemoteCredentials()method 
public function setRemoteCredentials(username:String, password:String):void

Set the remote credentials for all registered services.

Parameters
username:String — the username to set.
 
password:String — the password to set.