ConfigOriginFactory

org.ekrich.config.ConfigOriginFactory
See theConfigOriginFactory companion class

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).

Attributes

Since

1.3.0

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

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 parameters

filename

the filename of this origin

Attributes

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).

Attributes

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 parameters

description

brief description of what the origin is

Attributes

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 parameters

url

the url of this origin

Attributes

Returns

a new origin

Since

1.3.0