ConfigOriginFactory

This class contains some static factory methods for building a ConfigOrigin. ConfigOrigins are automatically created when you call other API methods to get a ConfigValue or Config. But you can also set the origin of an existing ConfigValue, using ConfigValue.withOrigin(ConfigOrigin).

This class contains some static factory methods for building a ConfigOrigin. ConfigOrigins are automatically created when you call other API methods to get a ConfigValue or Config. But you can also set the origin of an existing ConfigValue, using ConfigValue.withOrigin(ConfigOrigin).

Since

1.3.0

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def newFile(filename: String): ConfigOrigin

Creates a file origin with the given filename.

Creates a file origin with the given filename.

Value Params
filename

the filename of this origin

Returns

a new origin

Since

1.3.0

Returns the default origin for values when no other information is provided. This is the origin used in ConfigValueFactory.fromAnyRef(Object).

Returns the default origin for values when no other information is provided. This is the origin used in ConfigValueFactory.fromAnyRef(Object).

Returns

the default origin

Since

1.3.0

def newSimple(description: String): ConfigOrigin

Returns an origin with the given description.

Returns an origin with the given description.

Value Params
description

brief description of what the origin is

Returns

a new origin

Since

1.3.0

def newURL(url: URL): ConfigOrigin

Creates a url origin with the given URL object.

Creates a url origin with the given URL object.

Value Params
url

the url of this origin

Returns

a new origin

Since

1.3.0