public class MockSpConfig extends SpConfig
| Constructor and Description |
|---|
MockSpConfig(String name) |
MockSpConfig(String serviceName,
SpConfigChangeCallback callback) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(String key) |
ConfigItem |
getConfigItem(String key) |
double |
getDouble(String key) |
int |
getInteger(String key) |
<T> T |
getObject(String key,
Class<T> clazz,
T defaultValue) |
String |
getString(String key) |
void |
register(String key,
boolean defaultValue,
String description) |
void |
register(String key,
double defaultValue,
String description) |
void |
register(String key,
int defaultValue,
String description) |
void |
register(String key,
String defaultValue,
String description) |
<T> void |
register(String key,
T defaultValue,
String description,
ConfigurationScope configurationScope) |
void |
registerObject(String key,
Object defaultValue,
String description) |
void |
registerPassword(String key,
String defaultValue,
String description) |
void |
setBoolean(String key,
Boolean value) |
void |
setDouble(String key,
double value) |
void |
setInteger(String key,
int value) |
void |
setObject(String key,
Object value) |
void |
setString(String key,
String value) |
getSpConfig, getSpConfigpublic MockSpConfig(String name)
public MockSpConfig(String serviceName, SpConfigChangeCallback callback)
public <T> void register(String key, T defaultValue, String description, ConfigurationScope configurationScope)
public void registerObject(String key, Object defaultValue, String description)
registerObject in class SpConfigpublic void registerPassword(String key, String defaultValue, String description)
registerPassword in class SpConfigpublic boolean getBoolean(String key)
getBoolean in class SpConfigpublic int getInteger(String key)
getInteger in class SpConfigpublic ConfigItem getConfigItem(String key)
getConfigItem in class SpConfigpublic void setBoolean(String key, Boolean value)
setBoolean in class SpConfigpublic void setInteger(String key, int value)
setInteger in class SpConfigCopyright © 2019. All rights reserved.