ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
com.adobe.livecycle.assetmanager.client.service 

ServiceLocator  - AS3 Asset Manager

Packagecom.adobe.livecycle.assetmanager.client.service
Classpublic final class ServiceLocator
InheritanceServiceLocator Inheritance Object
Deprecated: Deprecated

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

A singleton helper for defining, locating, and working with 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 a DataService service by destinationName.
ServiceLocator
  
[static] Returns the singleton instance of this class.
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 resets the cache for the data service instance.
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
Constructor Detail

ServiceLocator

()Constructor
public function ServiceLocator()

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

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


Throws
Error — ServiceLocator class is a singleton.
Method Detail

getDataService

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

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

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: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

Returns the singleton instance of this class.

Returns
ServiceLocator — The ServiceLocator instance.

reset

()method 
public function reset():void

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

Disconnects the channels for all existing data services and resets the cache for the data service instance.