BuildEngines
This is an special service as it doesn't do anything but returning another services: Build
engines are what projext uses to bundle targets, since they depend on a target configuration,
we can't have huge if
that checks the value of the setting in order to retrieve the required
service.
The solution we came up with is that the engines services all respect an interface and register
themselves with the name [name]BuildEngine
so the rest of the app can use this service to
retrieve them by name.
Constructor Summary
Public Constructor | ||
public |
constructor(app: Projext) Class constructor. |
Method Summary
Public Methods | ||
public |
getEngine(name: string): BuildEngine Get a build engine service. |
Public Constructors
Public Methods
public getEngine(name: string): BuildEngine source
Get a build engine service.
Params:
Name | Type | Attribute | Description |
name | string | The engine name. |
Throw:
If the service is not registered. |