com.adobe.solutions.rca.services.impl

# ServiceLocator - AS3 Review, Commenting, and Approval

Package | com.adobe.solutions.rca.services.impl
Class | public class ServiceLocator
Inheritance | ServiceLocator Object

Language Version: | ActionScript 3.0

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

Runtime Versions: | Flash Player 10.2, AIR (unsupported)

Singleton helper for defining, locating, and working with Review Commenting and Approval 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() The constructor for ServiceLocator class. | 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
--- | --- | ---
|  | AUDITOR_RO : String = "rca.Auditor" [static] Name of the auditor service. | ServiceLocator
|  | REVIEW_COMMENTING_AND_APPROVAL_SERVICE_RO : String = "rca.ReviewAndApprovalService" [static] Name of the Review Commenting and Approval core service. | ServiceLocator
|  | REVIEW_COMMENTING_AND_APPROVAL_UTIL_SERVICE_RO : String = "rca.ReviewCommentingAndApprovalUtil" [static] Name of the Review Commenting and Approval util service. | ServiceLocator
|  | STAGE_MANAGEMENT_SERVICE_RO : String = "rca.StageManagementService" [static] Name of the stage management service. | ServiceLocator

Constructor Detail

### ServiceLocator

()
Constructor

`public function ServiceLocator()`

Language Version: | ActionScript 3.0

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

Runtime Versions: | Flash Player 10.2, AIR (unsupported)

The constructor for `ServiceLocator` class. Do not call this to get a new instance of `ServiceLocator`. Instead use the `getInstance` function.

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 10.0

Runtime Versions: | Flash Player 10.2, AIR (unsupported)

Returns the singleton instance of this class.

Returns

| `ServiceLocator` — It returns singleton instance of this class.

### getRemoteObject

()
method

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

Language Version: | ActionScript 3.0

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

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` — It returns the requested `RemoteObject` or `null` if a remote object service is not registered with the specified name.

Constant Detail

### AUDITOR_RO

Constant

`public static const AUDITOR_RO:String = "rca.Auditor"`

Language Version: | ActionScript 3.0

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

Runtime Versions: | Flash Player 10.2, AIR (unsupported)

Name of the auditor service.

### REVIEW_COMMENTING_AND_APPROVAL_SERVICE_RO

Constant

`public static const REVIEW_COMMENTING_AND_APPROVAL_SERVICE_RO:String = "rca.ReviewAndApprovalService"`

Language Version: | ActionScript 3.0

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

Runtime Versions: | Flash Player 10.2, AIR (unsupported)

Name of the Review Commenting and Approval core service.

### REVIEW_COMMENTING_AND_APPROVAL_UTIL_SERVICE_RO

Constant

`public static const REVIEW_COMMENTING_AND_APPROVAL_UTIL_SERVICE_RO:String = "rca.ReviewCommentingAndApprovalUtil"`

Language Version: | ActionScript 3.0

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

Runtime Versions: | Flash Player 10.2, AIR (unsupported)

Name of the Review Commenting and Approval util service.

### STAGE_MANAGEMENT_SERVICE_RO

Constant

`public static const STAGE_MANAGEMENT_SERVICE_RO:String = "rca.StageManagementService"`

Language Version: | ActionScript 3.0

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

Runtime Versions: | Flash Player 10.2, AIR (unsupported)

Name of the stage management service.

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