com.adobe.ep.ux.content.services

# ServiceLocator - AS3 ADEP Content

Package | com.adobe.ep.ux.content.services
Class | public final class ServiceLocator
Inheritance | ServiceLocator 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
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | constructor : Object A reference to the class object or constructor function for a given object instance. | Object

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | ServiceLocator() Constructor. | ServiceLocator
|  | getActivationManagerService():RemoteObject Retrieves the remote object for the ActivationManager service | ServiceLocator
|  | getDataService(destinationName:String):DataService Retrieves a DataService service by destinationName. | ServiceLocator
|  | getInstance():ServiceLocator [static] Returns the singleton instance of this class. | ServiceLocator
|  | getRemoteObject(name:String):RemoteObject Retrieves a RemoteObject service by name. | ServiceLocator
|  | getVersionRestoreManagerService():RemoteObject Retrieves the remote object for the VersionRestoreManager service | ServiceLocator
|  | hasOwnProperty(name:String):Boolean Indicates whether an object has a specified property defined. | Object
|  | isPrototypeOf(theClass:Object):Boolean Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. | Object
|  | propertyIsEnumerable(name:String):Boolean Indicates whether the specified property exists and is enumerable. | Object
|  | reset():void Disconnects the channels for all existing Data Services and reset the Data Service instance cache. | ServiceLocator
|  | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void Sets the availability of a dynamic property for loop operations. | Object
|  | toLocaleString():String Returns the string representation of this object, formatted according to locale-specific conventions. | Object
|  | toString():String Returns the string representation of the specified object. | Object
|  | valueOf():Object Returns the primitive value of the specified object. | Object

Public Constants

| Constant | Defined 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.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00