Service Registry
TDGServiceRegistry
The service registry stores all the generators by its name. So each generator could ask the service for an other generator by its service name. So it is possible to compose a generator out of other generators. The registry is also used by the processor to access the generators.
Kind: global class
tdgServiceRegistry.services
The map to store the registered generators
Kind: instance property of TDGServiceRegistry
tdgServiceRegistry.saveStore()
Calls the 'saveStore()' function of each registered Generator
Kind: instance method of TDGServiceRegistry
tdgServiceRegistry.loadStore()
Calls the 'loadStore()' function of each registered Generator
Kind: instance method of TDGServiceRegistry
tdgServiceRegistry.getGenerator(serviceName)
returns the generator with the given service namne. If the generator could not be found an error is thrown.
Kind: instance method of TDGServiceRegistry
Param | Type | Description |
---|---|---|
serviceName | string | The name under the generator is registered |