FileConfigReader

Config reader that reads a configuration from a file.

Extends: ConfigReader

Description

The FileConfigReader class allows you to create a config reader that reads a configuration from a file.

Configuration parameters

  • path: path to configuration file
  • parameters: this entire section is used as template parameters

Constructors

Creates a new instance of the config reader.

public constructor(path: string = null)

  • path: string - (optional) a path to configuration file.

Instance methods

configure

Configures component by passing configuration parameters.

public configure(config: ConfigParams): void

  • config: ConfigParams - configuration parameters to be set.

getPath

Gets the path to configuration file.

getPath(): string

  • returns: string - path to configuration file.

setPath

Sets the path to configuration file.

setPath(path: string): void

  • path: string - new path to configuration file.

See also