Home Manual Reference Source
public class | source

TargetConfiguration

Extends:

ConfigurationFile → TargetConfiguration

This is a 'tricky' service as it only exists to be overwritten. It was created as a dynamic way for a target to extend any configuration. It's service provider returns a function instead of an instance, in which the plugin/service defines any path and then the service gets instantiated.

Constructor Summary

Public Constructor
public

constructor(overwritePath: string, baseConfiguration: ConfigurationFile, pathUtils: PathUtils)

Class constructor.

Method Summary

Public Methods
public

Return an empty object just to comply with the interface.

Inherited Summary

From class ConfigurationFile
public

Whether the configuration should be created every time getConfig gets called or not.

public

A list of paths that can overwrite the configuration.

public

A parent configuration to extend.

public

A local reference for the pathUtils service.

public abstract

This method will be called the first time getConfig gets called (or every time, depending on the value of the asFactory property) and it should return the configuration contents.

public

This is the public method all other services uses to obtain the configuration.

Public Constructors

public constructor(overwritePath: string, baseConfiguration: ConfigurationFile, pathUtils: PathUtils) source

Class constructor.

Override:

ConfigurationFile#constructor

Params:

NameTypeAttributeDescription
overwritePath string

The path to the overwrite file.

baseConfiguration ConfigurationFile

The configuration this will be extending.

pathUtils PathUtils

Because ConfigurationFile needs it in order to build the overwrite path.`

Public Methods

public createConfig(): Object source

Return an empty object just to comply with the interface.

Override:

ConfigurationFile#createConfig

Return:

Object