Package

eu.shiftforward.apso

config

Permalink

package config

Visibility
  1. Public
  2. All

Type Members

  1. trait ConfigReader[+T] extends (Config, String) ⇒ T

    Permalink

    Represents a function that given a config and the config key string, will return the given type.

    Represents a function that given a config and the config key string, will return the given type.

    T

    the type to be returned

    Annotations
    @implicitNotFound( ... )
  2. trait FileDescriptorCredentials[T] extends AnyRef

    Permalink

    Trait that describes how a FileDescriptor extracts credentials from a config.

    Trait that describes how a FileDescriptor extracts credentials from a config.

    The config file must follow the following structure:

    {{protocol}}.default = $protocolCredentials {{protocol}}.credentials = [{ id = id1 creds = $protocolCredentials },{ ids = [id2, id3] creds = $protocolCredentials }]

    The {{protocol}}.default is an optional and is used as a fallback when the file descriptor id matches none of the credentials ids.

    Inside the {{protocol}}.credentials list there must be a creds key which contains the all required keys for the pertaining protocol, and either an id or a ids key which represent an unique id or a list of unique ids respectively for which the credentials are valid.

    T

    The type of credential object that is extracted

Value Members

  1. object ConfigReader

    Permalink
  2. object Implicits extends BasicConfigReaders with ExtendedConfigReaders

    Permalink

    Provides useful extension methods for Config instances.

  3. object LazyConfigFactory

    Permalink

    Contains static methods for creating Config instances in a lazy way.

    Contains static methods for creating Config instances in a lazy way.

    The loading process resolves variables lazily - configurations are first completely loaded and merged (reference.conf, the application file and default overrides) and only then are variables resolved. This ConfigFactory also considers a third standard configuration file, overrides.conf, which has priority over the application file and can be used to specify keys that should always be overriden, e.g. by environment variables if they are defined.

Ungrouped