public class Configuration
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
load(java.io.File configFile,
java.lang.Object holder)
Loads config data from HOCON.
|
static void |
load(java.io.InputStream stream,
java.lang.Object holder)
Loads config data from InputStream, any values missing are just ignored(so your defaults stay at place).
|
static java.lang.String |
load(java.lang.String configData,
java.lang.Object holder)
Loads config data from HOCON string.
|
static void |
load(java.net.URI uri,
java.lang.Object holder)
Shortcut to load configs from URI.
|
static void |
load(java.net.URL url,
java.lang.Object holder)
Shortcut to load configs from URL.
|
public static java.lang.String load(java.lang.String configData,
java.lang.Object holder)
configData - Valid HOCON config.holder - Object with @ConfigHolder annotation and @Config's in it.public static void load(java.io.File configFile,
java.lang.Object holder)
configFile - File to load config from.holder - Object with @ConfigHolder annotation and @Config's in it.public static void load(java.io.InputStream stream,
java.lang.Object holder)
stream - Input stream to load data from.holder - Object with @ConfigHolder annotation and @Config's in it.public static void load(java.net.URL url,
java.lang.Object holder)
url - Given URL.holder - Object with @ConfigHolder annotation and @Config's in it.public static void load(java.net.URI uri,
java.lang.Object holder)
uri - Given URI.holder - Object with @ConfigHolder annotation and @Config's in it.