Top Description Constructors Methods
com.typesafe.config

public final Class ConfigOriginFactory

extends Object
Class Inheritance
Imports
java.net.URL, com.typesafe.config.impl.ConfigImpl

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ConfigOrigin

Returns:

a new origin
newFile
(String
the filename of this origin
filename
)

Creates a file origin with the given filename.

public static ConfigOrigin

Returns:

the default origin
newSimple
()

Returns the default origin for values when no other information is provided.

public static ConfigOrigin

Returns:

a new origin
newSimple
(String
brief description of what the origin is
description
)

Returns an origin with the given description.

public static ConfigOrigin

Returns:

a new origin
newURL
(URL
the url of this origin
url
)

Creates a url origin with the given URL object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ConfigOriginFactoryback to summary
private ConfigOriginFactory()

Method Detail

newFileback to summary
public static ConfigOrigin newFile(String filename)

Creates a file origin with the given filename.

Parameters
filename:String

the filename of this origin

Returns:ConfigOrigin

a new origin

Since
1.3.0
newSimpleback to summary
public static ConfigOrigin newSimple()

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

Returns:ConfigOrigin

the default origin

Since
1.3.0
newSimpleback to summary
public static ConfigOrigin newSimple(String description)

Returns an origin with the given description.

Parameters
description:String

brief description of what the origin is

Returns:ConfigOrigin

a new origin

Since
1.3.0
newURLback to summary
public static ConfigOrigin newURL(URL url)

Creates a url origin with the given URL object.

Parameters
url:URL

the url of this origin

Returns:ConfigOrigin

a new origin

Since
1.3.0