class serviceManager

Erweitert:

This class provides methods that enable the following EE functionalities to be exposed:
Locale and Brand

The environment variables locale and brand is used by the serviceManager when determining the search path for resources and strings. If these variables have not been set, the standard mechanism for determining the default language path will be used to derive the search path.

Instantiating Classes

Most classes need to be instantiated before use. The method serviceManager::createInstance should be used to create an instance of a class before use.

In Javascript, an alternative mechanism is provided to instantiate classes. A static serviceManager object is exposed in the Javascript DOM, allowing users to "dot off" of the object to create instances of classes. This is accomplished by overriding the default implementation of "getProperty" to attempt a retrieval of an object descripter of a service that corresponds to the name of the requested property.

Below is an example in Javascript, that creates an instance of the class "HelloWorldObject" in the service "HelloWorldService":
var helloWorldObj = shell.serviceManager.HelloWorldService.HelloWorldObject;
// ...

Methoden