com.adobe.livecycle.rca.service

# ServiceLocator - AS3 Review, Commenting, and Approval

Package | com.adobe.livecycle.rca.service
Class | public class ServiceLocator
Inheritance | ServiceLocator Object

Deprecated since Review, Commenting, and Approval 10: Please Use com.adobe.solutions.rca.services.impl.ServiceLocator

Language Version: | ActionScript 3.0

Product Version: | Review, Commenting, and Approval Building Block 9.5

Runtime Versions: | Flash Player 9, Flash Player 10, AIR (unsupported)

Singleton helper for defining, locating, and working with various types of services. This is a simplified version of the `com.adobe.cairngorm.business.ServiceLocator` class. Use it instead of including Cairngorm as a dependency for this project for this class only.

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
|  | getInstance():ServiceLocator [static] Returns the singleton instance of this class. | ServiceLocator
|  | getRemoteObject(name:String):RemoteObject Retrieves a RemoteObject service by name. | 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
|  | 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
--- | --- | ---
|  | COMBINE_MULTIPLE_DOCUMENTS_RO : String = "ReviewCommentingAndApproval/processes/util/CombineMultipleDocuments" [static] Specifies the name of the process that combines multiple documents. | ServiceLocator
|  | MANAGED_REVIEW_AND_APPROVAL_SERVICE_RO : String = "ReviewCommentingAndApprovalService" [static] Specifies the name of the service. | ServiceLocator
|  | MANAGED_REVIEW_AND_APPROVAL_UTIL_RO : String = "ReviewCommentingAndApprovalUtil" [static] Specifies the name of the building block utility service. | ServiceLocator
|  | SERVICELOCATOR_RO : String = "serviceLocator" [static] Specifies the value for the service locator. | ServiceLocator

Constructor Detail

### ServiceLocator

()
Constructor

`public function ServiceLocator()`

Language Version: | ActionScript 3.0

Product Version: | Review, Commenting, and Approval Building Block 9.5

Runtime Versions: | Flash Player 9, Flash Player 10, 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

### getInstance

()
method

`public static function getInstance():ServiceLocator`

Language Version: | ActionScript 3.0

Product Version: | Review, Commenting, and Approval Building Block 9.5

Runtime Versions: | Flash Player 9, Flash Player 10, AIR (unsupported)

Returns the singleton instance of this class.

Returns

| `ServiceLocator`

### getRemoteObject

()
method

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

Language Version: | ActionScript 3.0

Product Version: | Review, Commenting, and Approval Building Block 9.5

Runtime Versions: | Flash Player 9, Flash Player 10, AIR (unsupported)

Retrieves a RemoteObject service by name.

Parameters

| `name:String` — The name of RemoteObject to retrieve.

Returns

| `RemoteObject` — The RemoteObject requested. Null if a remote object service with the specified name is not registered.

Constant Detail

### COMBINE_MULTIPLE_DOCUMENTS_RO

Constant

`public static const COMBINE_MULTIPLE_DOCUMENTS_RO:String = "ReviewCommentingAndApproval/processes/util/CombineMultipleDocuments"`

Language Version: | ActionScript 3.0

Product Version: | Review, Commenting, and Approval Building Block 9.5

Runtime Versions: | Flash Player 9, Flash Player 10, AIR (unsupported)

Specifies the name of the process that combines multiple documents.

### MANAGED_REVIEW_AND_APPROVAL_SERVICE_RO

Constant

`public static const MANAGED_REVIEW_AND_APPROVAL_SERVICE_RO:String = "ReviewCommentingAndApprovalService"`

Language Version: | ActionScript 3.0

Product Version: | Review, Commenting, and Approval Building Block 9.5

Runtime Versions: | Flash Player 9, Flash Player 10, AIR (unsupported)

Specifies the name of the service.

### MANAGED_REVIEW_AND_APPROVAL_UTIL_RO

Constant

`public static const MANAGED_REVIEW_AND_APPROVAL_UTIL_RO:String = "ReviewCommentingAndApprovalUtil"`

Language Version: | ActionScript 3.0

Product Version: | Review, Commenting, and Approval Building Block 9.5

Runtime Versions: | Flash Player 9, Flash Player 10, AIR (unsupported)

Specifies the name of the building block utility service.

### SERVICELOCATOR_RO

Constant

`public static const SERVICELOCATOR_RO:String = "serviceLocator"`

Language Version: | ActionScript 3.0

Product Version: | Review, Commenting, and Approval Building Block 9.5

Runtime Versions: | Flash Player 9, Flash Player 10, AIR (unsupported)

Specifies the value for the service locator.

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