public final class ConfigOriginFactory extends Object
ConfigOrigin
. ConfigOrigin
s 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)
.Modifier and Type | Method and Description |
---|---|
static ConfigOrigin |
newFile(String filename)
Creates a file origin with the given filename.
|
static ConfigOrigin |
newSimple()
Returns the default origin for values when no other information is
provided.
|
static ConfigOrigin |
newSimple(String description)
Returns an origin with the given description.
|
static ConfigOrigin |
newURL(URL url)
Creates a url origin with the given URL object.
|
public static ConfigOrigin newSimple()
#fromAnyRef(Object)
.public static ConfigOrigin newSimple(String description)
description
- brief description of what the origin ispublic static ConfigOrigin newFile(String filename)
filename
- the filename of this originpublic static ConfigOrigin newURL(URL url)
url
- the url of this originCopyright © 2018 com.typesafe. All rights reserved.