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
Value members
Concrete methods
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
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