Packagecom.adobe.cairngorm.business
Interfacepublic interface IServiceLocator
ImplementorsServiceLocator

IServiceLocator defines an interface for service locator. Its intention is to support unit testing.



Public Methods
 MethodDefined by
  
getHTTPService(name:String):HTTPService
Return the HTTPService for the given service id.
IServiceLocator
  
getRemoteObject(name:String):RemoteObject
Return the RemoteObject for the given service id.
IServiceLocator
  
getWebService(name:String):WebService
Return the WebService for the given service id.
IServiceLocator
  
logout():void
Logs the user out of all registered services.
IServiceLocator
  
setCredentials(username:String, password:String):void
Set the credentials for all registered services.
IServiceLocator
  
setRemoteCredentials(username:String, password:String):void
Set the remote credentials for all registered services.
IServiceLocator
Method detail
getHTTPService()method
public function getHTTPService(name:String):HTTPService

Return the HTTPService for the given service id.

Parameters
name:String — the name of the HTTPService.

Returns
HTTPService — the RemoteObject.
getRemoteObject()method 
public function getRemoteObject(name:String):RemoteObject

Return the RemoteObject for the given service id.

Parameters
name:String — the name of the RemoteObject.

Returns
RemoteObject — the RemoteObject.
getWebService()method 
public function getWebService(name:String):WebService

Return the WebService for the given service id.

Parameters
name:String — the name of the WebService.

Returns
WebService — the RemoteObject.
logout()method 
public function logout():void

Logs the user out of all registered services.

setCredentials()method 
public function setCredentials(username:String, password:String):void

Set the credentials for all registered services. Note that services that use a proxy or a third-party adapter to a remote endpoint will need to setRemoteCredentials instead.

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.