Table of Contents

TConfiguration Class

The standard implementation of IConfigurationRoot.

Remarks

Reference counted: hold it in an IConfigurationRoot variable, never in a variable of the class type.

Syntax

Unit: Bcl.Configuration

TConfiguration = class(TInterfacedObject, IConfigurationNode, IConfigurationRoot, IConfiguration);

Constructors

Name Description
Create Creates an empty configuration.

Methods

Name Description
DefaultFileName The JSON file an application reads by convention: the one named by the environment variable <APP>_CONFIG when it is set, otherwise <app>.json beside the executable.

Properties

Name Description
Current The configuration of the application: one instance, shared by the whole process and reachable from anywhere.