public final class ConfigOriginFactory extends java.lang.Object
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).| Modifier and Type | Method and Description |
|---|---|
static ConfigOrigin |
newFile(java.lang.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(java.lang.String description)
Returns an origin with the given description.
|
static ConfigOrigin |
newURL(java.net.URL url)
Creates a url origin with the given URL object.
|
public static newSimple()
#fromAnyRef(Object).public static newSimple(java.lang.String description)
description - brief description of what the origin ispublic static newFile(java.lang.String filename)
filename - the filename of this originpublic static newURL(java.net.URL url)
url - the url of this origin