public class SettingsLoader extends Object
Constructor and Description |
---|
SettingsLoader() |
Modifier and Type | Method and Description |
---|---|
void |
assignDefaultsFromAnnotations(Object settings) |
<T extends ISettings> |
loadSettings(String baseName,
Class<T> settingsClass) |
<T extends ISettings> |
loadSettings(String env,
String targetFolder,
String baseName,
Class<T> settingsClass) |
<T extends ISettings> |
loadSettings(String env,
String targetFolder,
String baseName,
Class<T> settingsClass,
CommandOptionsBase options) |
void |
mergeObjects(Object existing,
Object overrides)
Merges all values defined in as not-null in overrides, into defaults
Operates recursively
|
public SettingsLoader()
public <T extends ISettings> T loadSettings(String baseName, Class<T> settingsClass)
public <T extends ISettings> T loadSettings(String env, String targetFolder, String baseName, Class<T> settingsClass)
public <T extends ISettings> T loadSettings(String env, String targetFolder, String baseName, Class<T> settingsClass, CommandOptionsBase options)
public void assignDefaultsFromAnnotations(Object settings) throws IllegalAccessException, InstantiationException
public void mergeObjects(Object existing, Object overrides)
existing
- overrides
- Copyright © 2016. All rights reserved.