SystemEnvReader

An EnvReader that reads environment variables from the system environment.

This class uses a PrimitiveTypesReader to parse the raw string values of the environment variables.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun <T> read(key: String, targetType: Class<T>): Optional<T>
Reads an environment variable from the system environment and converts it to the specified type.