Packagecom.adobe.cairngorm.business
Classpublic class ServiceLocator
ImplementsIServiceLocator



Public Methods
 MethodDefined by
  
ServiceLocator
  
getConsumer(serviceId:String):Consumer
Return the message Consumer for the given service id.
ServiceLocator
  
getDataService(serviceId:String):DataService
Return the DataService for the given service id.
ServiceLocator
  
getHTTPService(serviceId:String):HTTPService
Return the HTTPService for the given service id.
ServiceLocator
  
[static] Return the ServiceLocator instance.
ServiceLocator
  
getInvokerService(serviceId:String):AbstractInvoker
ServiceLocator
  
getProducer(serviceId:String):Producer
Return the message Produce for the given service id.
ServiceLocator
  
getRemoteObject(serviceId:String):RemoteObject
Return the RemoteObject for the given service id.
ServiceLocator
  
getService(serviceId:String):AbstractService
ServiceLocator
  
getWebService(serviceId:String):WebService
Return the WebService for the given service id.
ServiceLocator
  
logout():void
Logs the user out of all registered services.
ServiceLocator
  
setCredentials(username:String, password:String):void
Set the credentials for all registered services.
ServiceLocator
Constructor detail
ServiceLocator()constructor
public function ServiceLocator()
Method detail
getConsumer()method
public function getConsumer(serviceId:String):Consumer

Return the message Consumer for the given service id.

Parameters
serviceId:String — the service id.

Returns
Consumer — the RemoteObject.
getDataService()method 
public function getDataService(serviceId:String):DataService

Return the DataService for the given service id.

Parameters
serviceId:String — the service id.

Returns
DataService — 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.
getInstance()method 
public static function getInstance():ServiceLocator

Return the ServiceLocator instance.

Returns
ServiceLocator — the instance.
getInvokerService()method 
public function getInvokerService(serviceId:String):AbstractInvoker

Parameters
serviceId:String — id of the service to be returned. This is the id defined in the concrete service locator implementation.

Returns
AbstractInvoker
getProducer()method 
public function getProducer(serviceId:String):Producer

Return the message Produce for the given service id.

Parameters
serviceId: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.
getService()method 
public function getService(serviceId:String):AbstractService

Parameters
serviceId:String — id of the service to be returned. This is the id defined in the concrete service locator implementation.

Returns
AbstractService
getWebService()method 
public function getWebService(serviceId:String):WebService

Return the WebService for the given service id.

Parameters
serviceId: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.