@Deprecated public class SimpleAppConfig extends Object implements AutoCloseable
| Constructor and Description |
|---|
SimpleAppConfig(Class<?> appClassRef)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
String |
get(String key)
Deprecated.
|
String |
get(String key,
String defaultValue)
Deprecated.
|
void |
put(String key,
String value)
Deprecated.
|
void |
putAll(Map<String,String> map)
Deprecated.
Because we commit the configuration after every update/put, this method allows for more efficient batch updates
because it only commits changes to disk once.
|
protected static void |
setForceDir(File forceDir)
Deprecated.
for testing only.
|
public SimpleAppConfig(Class<?> appClassRef)
public void put(String key, String value)
key - the keyvalue - a null value will remove the config property.public void putAll(Map<String,String> map)
map - the config map to add/storepublic void close()
close in interface AutoCloseableprotected static void setForceDir(File forceDir)
forceDir - the config directory to useCopyright © 2014–2017 Github jjYBdx4IL Projects. All rights reserved.