Main Page | Packages | Class Tree | Index | Help

xp.mvc

class ServiceLocator

Object
  |
  +--xp.mvc.ServiceLocator


class ServiceLocator
extends Object



Method Summary

public
addService ( serviceId: String, service: Object ): Void
Adds the service specified by the serviceId.

public static
getInstance ( ): ServiceLocator


public
getService ( serviceId: String ): Object
Gets the service specified by the serviceId.



Method Documentation

addService

public function addService(serviceId: String,
 service: Object): Void
Adds the service specified by the serviceId.

If no service exists for the service name, an Error will be thrown.

Parameters:
serviceId
The service name or id of the service to be returned.
service
The service object

getInstance

public static function getInstance(): ServiceLocator

getService

public function getService(serviceId: String): Object
Gets the service specified by the serviceId.

If no service exists for the service name, an Error will be thrown.

Parameters:
serviceId
The service name or id of the service to be returned.

The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc