public class Settings extends java.lang.Object
Typed representation of application settings stored in *.conf files.
Modifiers | Name | Description |
---|---|---|
class |
Settings.Env |
Utility class for reading the "app.env" config property. |
Type Params | Return Type | Name and description |
---|---|---|
|
public com.typesafe.config.Config |
getData()
|
|
public java.lang.String |
getDateFormat() |
|
public Settings.Env |
getEnv() |
|
public Settings.HttpConfig |
getHttp() |
|
public static Settings |
getInstance() Non-thread safe singleton method. |
|
public java.util.List<com.google.inject.Module> |
getModules() |
|
public static Settings |
load() Parse the configuration file and create an instance of Settings by loading the default configuration file or the source specified in the config.file, config.resource or config.url System property. |
|
public static Settings |
load(java.lang.String configuration) Same as Settings.load, but allows the user to specify a configuration file. |
|
public com.typesafe.config.Config |
path(java.lang.String path)
|
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Non-thread safe singleton method.
Parse the configuration file and create an instance of Settings by loading the default configuration file or the source specified in the config.file, config.resource or config.url System property.
Same as Settings.load, but allows the user to specify a configuration file.
configuration
- The name of the configuration resource e.g. "test.conf"
path
- The root of a configuration tree. E.g. "app".