ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
com.adobe.ep.ux.content.services 

ServiceLocator  - AS3 ADEP Content

Packagecom.adobe.ep.ux.content.services
Classpublic final class ServiceLocator
InheritanceServiceLocator Inheritance Object

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Content 10
Runtime Versions: Flash Player 10.2, AIR (unsupported)

Singleton helper for defining, locating, and working with various Data Services.



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
Public Methods
 MethodDefined By
  
Constructor.
ServiceLocator
  
Retrieves the remote object for the ActivationManager service
ServiceLocator
  
Retrieves a DataService service by destinationName.
ServiceLocator
  
[static] Returns the singleton instance of this class.
ServiceLocator
  
Retrieves a RemoteObject service by name.
ServiceLocator
  
Retrieves the remote object for the VersionRestoreManager service
ServiceLocator
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
  
Disconnects the channels for all existing Data Services and reset the Data Service instance cache.
ServiceLocator
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Public Constants
 ConstantDefined By
  ACTIVATION_MANAGER_SERVICE_RO : String = "lc.content.remote.activate.activationManager"
[static] The ServiceLocator.ACTIVATION_MANAGER_SERVICE_RO constant defines the value of the ActivationManager service destination.
ServiceLocator
  VERSION_RESTORE_MANAGER_SERVICE_RO : String = "lc.content.remote.activate.versionRestoreManager"
[static] The ServiceLocator.VERSION_RESTORE_MANAGER_SERVICE_RO constant defines the value of the VersionRestoreManager service destination.
ServiceLocator
Constructor Detail

ServiceLocator

()Constructor
public function ServiceLocator()

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Content 10
Runtime Versions: Flash Player 10.2, AIR (unsupported)

Constructor. Do not call this to get a new ServiceLocator. Use the getInstance() function instead.


Throws
Error — ServiceLocator class is a singleton.
Method Detail

getActivationManagerService

()method
public function getActivationManagerService():RemoteObject

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Content 10
Runtime Versions: Flash Player 10.2, AIR (unsupported)

Retrieves the remote object for the ActivationManager service

Returns
RemoteObject — The RemoteObject for ActivationManager service.

getDataService

()method 
public function getDataService(destinationName:String):DataService

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Content 10
Runtime Versions: Flash Player 10.2, AIR (unsupported)

Retrieves a DataService service by destinationName.

Parameters

destinationName:String — The destinationName of the DataService to retrieve.

Returns
DataService — The DataService requested.

getInstance

()method 
public static function getInstance():ServiceLocator

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Content 10
Runtime Versions: Flash Player 10.2, AIR (unsupported)

Returns the singleton instance of this class.

Returns
ServiceLocator — The only instance of the Service Locator to manage Data Services and remoting services.

getRemoteObject

()method 
public function getRemoteObject(name:String):RemoteObject

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Content 10
Runtime Versions: Flash Player 10.2, AIR (unsupported)

Retrieves a RemoteObject service by name.

Parameters

name:String — The name of the RemoteObject to retrieve.

Returns
RemoteObject — The RemoteObject requested or null if a remote object service isn't registered with the specified name.

getVersionRestoreManagerService

()method 
public function getVersionRestoreManagerService():RemoteObject

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Content 10
Runtime Versions: Flash Player 10.2, AIR (unsupported)

Retrieves the remote object for the VersionRestoreManager service

Returns
RemoteObject — The RemoteObject for VersionRestoreManager service.

reset

()method 
public function reset():void

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Content 10
Runtime Versions: Flash Player 10.2, AIR (unsupported)

Disconnects the channels for all existing Data Services and reset the Data Service instance cache.

Constant Detail

ACTIVATION_MANAGER_SERVICE_RO

Constant
public static const ACTIVATION_MANAGER_SERVICE_RO:String = "lc.content.remote.activate.activationManager"

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Content 10
Runtime Versions: Flash Player 10.2, AIR (unsupported)

The ServiceLocator.ACTIVATION_MANAGER_SERVICE_RO constant defines the value of the ActivationManager service destination.

VERSION_RESTORE_MANAGER_SERVICE_RO

Constant 
public static const VERSION_RESTORE_MANAGER_SERVICE_RO:String = "lc.content.remote.activate.versionRestoreManager"

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Content 10
Runtime Versions: Flash Player 10.2, AIR (unsupported)

The ServiceLocator.VERSION_RESTORE_MANAGER_SERVICE_RO constant defines the value of the VersionRestoreManager service destination.