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
  
getConsumer(destinationId:String):Consumer
Return the message Consumer for the given service id.
IServiceLocator
  
getHTTPService(serviceId:String):HTTPService
Return the HTTPService for the given service id.
IServiceLocator
  
getProducer(destinationId:String):Producer
Return the message Produce for the given service id.
IServiceLocator
  
getRemoteObject(serviceId:String):RemoteObject
Return the RemoteObject for the given service id.
IServiceLocator
  
getWebService(destinationId: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
getConsumer()method
public function getConsumer(destinationId:String):Consumer

Return the message Consumer for the given service id.

Parameters
destinationId:String — the service id.

Returns
Consumer — the RemoteObject.
getHTTPService()method 
public function getHTTPService(serviceId:String):HTTPService

Return the HTTPService for the given service id.

Parameters
serviceId:String — the service id.

Returns
HTTPService — the RemoteObject.
getProducer()method 
public function getProducer(destinationId:String):Producer

Return the message Produce for the given service id.

Parameters
destinationId:String — the service id.

Returns
Producer — the RemoteObject.
getRemoteObject()method 
public function getRemoteObject(serviceId:String):RemoteObject

Return the RemoteObject for the given service id.

Parameters
serviceId:String — the service id.

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

Return the WebService for the given service id.

Parameters
destinationId:String — the service id.

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.