public class DatabaseConfigLoader extends Object
| Constructor and Description |
|---|
DatabaseConfigLoader() |
| Modifier and Type | Method and Description |
|---|---|
void |
init() |
<T extends DatabaseConfig> |
loadAs(Class<T> configType)
This will load the config if it already exists or will create the config from the default
config file if it doesn't exist.
|
@Inject public void init()
public <T extends DatabaseConfig> T loadAs(Class<T> configType)
T - type that extends the base DatabaseConfig classconfigType - the class to parse the config into