p

pureconfig

package pureconfig

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. pureconfig
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait BasicReaders extends PrimitiveReaders with JavaEnumReader with UriAndPathReaders with RegexReaders with JavaTimeReaders with DurationReaders with NumericReaders with TypesafeConfigReaders

    Trait containing ConfigReader instances for primitive types and simple classes in Java and Scala standard libraries.

  2. trait BasicWriters extends PrimitiveWriters with JavaEnumWriter with UriAndPathWriters with RegexWriters with JavaTimeWriters with DurationWriters with NumericWriters with TypesafeConfigWriters

    Trait containing ConfigWriter instances for primitive types and simple classes in Java and Scala standard libraries.

  3. trait CapitalizedWordsNamingConvention extends NamingConvention
  4. trait CollectionReaders extends AnyRef

    Trait containing ConfigReader instances for collection types.

  5. trait CollectionWriters extends AnyRef

    Trait containing ConfigWriter instances for collection types.

  6. trait ConfigConvert[A] extends ConfigReader[A] with ConfigWriter[A]

    Trait for objects capable of reading and writing objects of a given type from and to ConfigValues.

  7. sealed trait ConfigCursor extends AnyRef

    A wrapper for a ConfigValue providing safe navigation through the config and holding positional data for better error handling.

  8. trait ConfigFieldMapping extends (String) ⇒ String

    A mapping between case class fields and their respective keys in the config.

  9. case class ConfigListCursor(value: ConfigList, pathElems: List[String], offset: Int = 0) extends ConfigCursor with Product with Serializable

    A ConfigCursor pointing to a config list.

  10. case class ConfigObjectCursor(value: ConfigObject, pathElems: List[String]) extends ConfigCursor with Product with Serializable

    A ConfigCursor pointing to a config object.

  11. trait ConfigReader[A] extends AnyRef

    Trait for objects capable of reading objects of a given type from ConfigValues.

    Trait for objects capable of reading objects of a given type from ConfigValues.

    A

    the type of objects readable by this ConfigReader

  12. trait ConfigWriter[A] extends AnyRef

    Trait for objects capable of writing objects of a given type to ConfigValues.

    Trait for objects capable of writing objects of a given type to ConfigValues.

    A

    the type of objects writable by this ConfigWriter

  13. trait ConvertHelpers extends AnyRef

    Useful helpers for building ConfigConvert instances and dealing with results.

  14. trait DurationReaders extends AnyRef

    Trait containing ConfigReader instances for scala.concurrent.duration.Duration and scala.concurrent.duration.FiniteDuration.

  15. trait DurationWriters extends AnyRef

    Trait containing ConfigWriter instances for scala.concurrent.duration.Duration and scala.concurrent.duration.FiniteDuration.

  16. final case class Exported[A](instance: A) extends AnyVal with Product with Serializable

    A wrapper for type class instances intended to allow implicits in scope by import statements to have lower priority than implicits in the relevant companion objects.

    A wrapper for type class instances intended to allow implicits in scope by import statements to have lower priority than implicits in the relevant companion objects. This behavior requires type classes to provide a bridge in their companion objects, as done by ConfigReader (see pureconfig.ExportedReaders) and ConfigWriter (see pureconfig.ExportedWriters).

    A

    the type class

    instance

    the type class instance to wrap

  17. trait ExportedReaders extends AnyRef

    Trait allowing ConfigReader instances exported via Exported to be used.

    Trait allowing ConfigReader instances exported via Exported to be used.

    This trait should be the last to be mixed into ConfigReader's companion object so that exported readers will always have lower precedence than ConfigReader instances exposed as implicits through the usual means.

  18. trait ExportedWriters extends AnyRef

    Trait allowing ConfigWriter instances exported via Exported to be used.

    Trait allowing ConfigWriter instances exported via Exported to be used.

    This trait should be the last to be mixed into ConfigWriter's companion object so that exported writers will always have lower precedence than ConfigWriter instances exposed as implicits through the usual means.

  19. case class FluentConfigCursor(cursor: Result[ConfigCursor]) extends Product with Serializable

    A version of ConfigCursor with a more fluent interface, focused on config navigation instead of error handling.

    A version of ConfigCursor with a more fluent interface, focused on config navigation instead of error handling.

    The at method, used to access object and list values, is available without a previous need to cast the cursor and always returns another cursor instead of a ConfigReader.Result. The error handling is left for the last step, where users can opt to cast to a primitive value using one of the as methods or by requesting a regular cursor with cursor.

    cursor

    the regular cursor pointed to by this object, wrapped itself into a Right, or a Left with a list of failures in case an error occurred during navigation

  20. trait JavaEnumReader extends AnyRef

    Trait containing ConfigReader instance for Java Enums.

  21. trait JavaEnumWriter extends AnyRef

    Trait containing instance for ConfigWriter for Java Enum.

  22. trait JavaTimeReaders extends AnyRef

    Trait containing ConfigReader instances for java.time classes.

  23. trait JavaTimeWriters extends AnyRef

    Trait containing ConfigWriter instances for java.time classes.

  24. trait NamingConvention extends AnyRef
  25. trait NumericReaders extends AnyRef

    Trait containing ConfigReader instances for Java and Scala arbitrary-precision numeric types.

  26. trait NumericWriters extends AnyRef

    Trait containing ConfigWriter instances for Java and Scala arbitrary-precision numeric types.

  27. sealed trait PathSegment extends Product with Serializable
  28. trait PrimitiveReaders extends AnyRef

    Trait containing ConfigReader instances for primitive types.

  29. trait PrimitiveWriters extends AnyRef

    Trait containing ConfigWriter instances for primitive types.

  30. trait ProductReaders extends AnyRef
  31. trait ProductWriters extends AnyRef
  32. trait ReadsMissingKeys extends AnyRef

    A marker trait signaling that a ConfigReader accepts missing (undefined) values.

    A marker trait signaling that a ConfigReader accepts missing (undefined) values.

    The standard behavior of ConfigReaders that expect required keys in config objects is to return a KeyNotFound failure when one or more of them are missing. Mixing in this trait into the key's ConfigReader signals that if a value is missing for the key, the ConfigReader can be called with a cursor in the "undefined" state.

  33. trait RegexReaders extends AnyRef

    Trait containing ConfigReader instances for classes related to regular expressions.

  34. trait RegexWriters extends AnyRef

    Trait containing ConfigWriter instances for classes related to regular expressions.

  35. case class SimpleConfigCursor(value: ConfigValue, pathElems: List[String]) extends ConfigCursor with Product with Serializable

    A simple ConfigCursor providing no extra operations.

  36. class StringDelimitedNamingConvention extends NamingConvention
  37. trait TypesafeConfigReaders extends AnyRef

    Trait containing ConfigReader instances for Typesafe config models.

  38. trait TypesafeConfigWriters extends AnyRef

    Trait containing ConfigWriter instances for Typesafe config models.

  39. trait UriAndPathReaders extends AnyRef

    Trait containing ConfigReader instances for classes related to file system paths and URIs.

  40. trait UriAndPathWriters extends AnyRef

    Trait containing ConfigWriter instances for classes related to file system paths and URIs.

  41. trait WritesMissingKeys[A] extends AnyRef

    A trait signaling that a ConfigWriter can write missing (undefined) values.

    A trait signaling that a ConfigWriter can write missing (undefined) values.

    ConfigWriters always produce a valid ConfigValue with their to method. This trait adds an extra toOpt method that parent writers can use in order to decide whether or not they should write a value using this writer.

Value Members

  1. def loadConfig[Config](conf: Config, namespace: String)(implicit reader: Derivation[ConfigReader[Config]]): Result[Config]

    Load a configuration of type Config from the given Config

  2. def loadConfig[Config](conf: Config)(implicit reader: Derivation[ConfigReader[Config]]): Result[Config]

    Load a configuration of type Config from the given Config

  3. def loadConfig[Config](path: Path, namespace: String)(implicit reader: Derivation[ConfigReader[Config]]): Result[Config]

    Load a configuration of type Config from the given file.

    Load a configuration of type Config from the given file. Note that standard configuration files are still loaded but can be overridden from the given configuration file

    namespace

    the base namespace from which the configuration should be load

    returns

    A Success with the configuration if it is possible to create an instance of type Config from the configuration files, else a Failure with details on why it isn't possible

  4. def loadConfig[Config](path: Path)(implicit reader: Derivation[ConfigReader[Config]]): Result[Config]

    Load a configuration of type Config from the given file.

    Load a configuration of type Config from the given file. Note that standard configuration files are still loaded but can be overridden from the given configuration file

    returns

    A Success with the configuration if it is possible to create an instance of type Config from the configuration files, else a Failure with details on why it isn't possible

  5. def loadConfig[Config](namespace: String)(implicit reader: Derivation[ConfigReader[Config]]): Result[Config]

    Load a configuration of type Config from the standard configuration files

    Load a configuration of type Config from the standard configuration files

    namespace

    the base namespace from which the configuration should be load

    returns

    A Success with the configuration if it is possible to create an instance of type Config from the configuration files, else a Failure with details on why it isn't possible

  6. def loadConfig[Config](implicit reader: Derivation[ConfigReader[Config]]): Result[Config]

    Load a configuration of type Config from the standard configuration files

    Load a configuration of type Config from the standard configuration files

    returns

    A Success with the configuration if it is possible to create an instance of type Config from the configuration files, else a Failure with details on why it isn't possible

  7. def loadConfigFromFiles[Config](files: Traversable[Path], failOnReadError: Boolean = false, namespace: String = "")(implicit reader: Derivation[ConfigReader[Config]]): Result[Config]

    Loads files in order, allowing values in later files to backstop missing values from prior, and converts them into a Config.

    Loads files in order, allowing values in later files to backstop missing values from prior, and converts them into a Config.

    This is a convenience method which enables having default configuration which backstops local configuration.

    The behavior of the method if an element of files references a file which doesn't exist or can't be read is defined by the failOnReadError flag. With failOnReadError = false, such files will silently be ignored while otherwise they would yield a failure (a Left value).

    files

    Files ordered in decreasing priority containing part or all of a Config

    failOnReadError

    Where to return an error if any files fail to read

    namespace

    the base namespace from which the configuration should be load

  8. def loadConfigFromFilesOrThrow[Config](files: Traversable[Path])(implicit arg0: ClassTag[Config], reader: Derivation[ConfigReader[Config]]): Config

    returns

    the configuration

    Annotations
    @throws( ... )
    See also

    loadConfigFromFiles

  9. def loadConfigOrThrow[Config](conf: Config, namespace: String)(implicit arg0: ClassTag[Config], reader: Derivation[ConfigReader[Config]]): Config

    Load a configuration of type Config from the given Config

    Load a configuration of type Config from the given Config

    conf

    Typesafe configuration to load

    namespace

    the base namespace from which the configuration should be load

    returns

    the configuration

    Annotations
    @throws( ... )
  10. def loadConfigOrThrow[Config](conf: Config)(implicit arg0: ClassTag[Config], reader: Derivation[ConfigReader[Config]]): Config

    Load a configuration of type Config from the given Config

    Load a configuration of type Config from the given Config

    conf

    Typesafe configuration to load

    returns

    the configuration

    Annotations
    @throws( ... )
  11. def loadConfigOrThrow[Config](path: Path, namespace: String)(implicit arg0: ClassTag[Config], reader: Derivation[ConfigReader[Config]]): Config

    Load a configuration of type Config from the given file.

    Load a configuration of type Config from the given file. Note that standard configuration files are still loaded but can be overridden from the given configuration file

    namespace

    the base namespace from which the configuration should be load

    returns

    the configuration

    Annotations
    @throws( ... )
  12. def loadConfigOrThrow[Config](path: Path)(implicit arg0: ClassTag[Config], reader: Derivation[ConfigReader[Config]]): Config

    Load a configuration of type Config from the given file.

    Load a configuration of type Config from the given file. Note that standard configuration files are still loaded but can be overridden from the given configuration file

    returns

    the configuration

    Annotations
    @throws( ... )
  13. def loadConfigOrThrow[Config](namespace: String)(implicit arg0: ClassTag[Config], reader: Derivation[ConfigReader[Config]]): Config

    Load a configuration of type Config from the standard configuration files

    Load a configuration of type Config from the standard configuration files

    namespace

    the base namespace from which the configuration should be load

    returns

    the configuration

    Annotations
    @throws( ... )
  14. def loadConfigOrThrow[Config](implicit arg0: ClassTag[Config], reader: Derivation[ConfigReader[Config]]): Config

    Load a configuration of type Config from the standard configuration files

    Load a configuration of type Config from the standard configuration files

    returns

    the configuration

    Annotations
    @throws( ... )
  15. def loadConfigWithFallback[Config](conf: Config, namespace: String)(implicit reader: Derivation[ConfigReader[Config]]): Result[Config]

    Load a configuration of type Config from the given Config, falling back to the default configuration

    Load a configuration of type Config from the given Config, falling back to the default configuration

    conf

    Typesafe configuration to load

    namespace

    the base namespace from which the configuration should be load

    returns

    A Success with the configuration if it is possible to create an instance of type Config from the configuration files, else a Failure with details on why it isn't possible

  16. def loadConfigWithFallback[Config](conf: Config)(implicit reader: Derivation[ConfigReader[Config]]): Result[Config]

    Load a configuration of type Config from the given Config, falling back to the default configuration

    Load a configuration of type Config from the given Config, falling back to the default configuration

    conf

    Typesafe configuration to load

    returns

    A Success with the configuration if it is possible to create an instance of type Config from the configuration files, else a Failure with details on why it isn't possible

  17. def loadConfigWithFallbackOrThrow[Config](conf: Config, namespace: String)(implicit arg0: ClassTag[Config], reader: Derivation[ConfigReader[Config]]): Config

    Load a configuration of type Config from the given Config, falling back to the default configuration

    Load a configuration of type Config from the given Config, falling back to the default configuration

    conf

    Typesafe configuration to load

    namespace

    the base namespace from which the configuration should be load

    returns

    the configuration

    Annotations
    @throws( ... )
  18. def loadConfigWithFallbackOrThrow[Config](conf: Config)(implicit arg0: ClassTag[Config], reader: Derivation[ConfigReader[Config]]): Config

    Load a configuration of type Config from the given Config, falling back to the default configuration

    Load a configuration of type Config from the given Config, falling back to the default configuration

    conf

    Typesafe configuration to load

    returns

    the configuration

    Annotations
    @throws( ... )
  19. def saveConfigAsPropertyFile[Config](conf: Config, outputPath: Path, overrideOutputPath: Boolean = false, options: ConfigRenderOptions = ConfigRenderOptions.defaults())(implicit writer: Derivation[ConfigWriter[Config]]): Unit

    Save the given configuration into a property file

    Save the given configuration into a property file

    conf

    The configuration to save

    outputPath

    Where to write the configuration

    overrideOutputPath

    Override the path if it already exists

    options

    the config rendering options

    Annotations
    @throws( ... )
  20. def saveConfigToStream[Config](conf: Config, outputStream: OutputStream, options: ConfigRenderOptions = ConfigRenderOptions.defaults())(implicit writer: Derivation[ConfigWriter[Config]]): Unit

    Writes the configuration to the output stream and closes the stream

    Writes the configuration to the output stream and closes the stream

    conf

    The configuration to write

    outputStream

    The stream in which the configuration should be written

    options

    the config rendering options

  21. object BasicReaders extends BasicReaders
  22. object BasicWriters extends BasicWriters
  23. object CamelCase extends CapitalizedWordsNamingConvention

    CamelCase identifiers look like camelCase and useMorePureconfig

    CamelCase identifiers look like camelCase and useMorePureconfig

    See also

    https://en.wikipedia.org/wiki/Camel_case

  24. object CapitalizedWordsNamingConvention
  25. object CollectionReaders extends CollectionReaders
  26. object CollectionWriters extends CollectionWriters
  27. object ConfigConvert extends ConvertHelpers

    Provides methods to create ConfigConvert instances.

  28. object ConfigCursor
  29. object ConfigFieldMapping
  30. object ConfigReader extends BasicReaders with CollectionReaders with ProductReaders with ExportedReaders

    Provides methods to create ConfigReader instances.

  31. object ConfigWriter extends BasicWriters with CollectionWriters with ProductWriters with ExportedWriters

    Provides methods to create ConfigWriter instances.

  32. object ConvertHelpers extends ConvertHelpers
  33. object ExportedReaders extends ExportedReaders
  34. object ExportedWriters extends ExportedWriters
  35. object KebabCase extends StringDelimitedNamingConvention

    KebabCase identifiers look like kebab-case and use-more-pureconfig

    KebabCase identifiers look like kebab-case and use-more-pureconfig

    See also

    http://wiki.c2.com/?KebabCase

  36. object PascalCase extends CapitalizedWordsNamingConvention

    PascalCase identifiers look like e.g.PascalCase and UseMorePureconfig

    PascalCase identifiers look like e.g.PascalCase and UseMorePureconfig

    See also

    https://en.wikipedia.org/wiki/PascalCase

  37. object PathSegment extends Serializable
  38. object ProductReaders extends ProductReaders
  39. object ProductWriters extends ProductWriters
  40. object SnakeCase extends StringDelimitedNamingConvention

    SnakeCase identifiers look like snake_case and use_more_pureconfig

    SnakeCase identifiers look like snake_case and use_more_pureconfig

    See also

    https://en.wikipedia.org/wiki/Snake_case

Inherited from AnyRef

Inherited from Any

Ungrouped