所有方法 静态方法 实例方法 具体方法
| 限定符和类型 |
方法和说明 |
void |
addConfigChangeListener(JbootConfigChangeListener listener,
Class forClass) |
void |
addConfigChangeListener(JbootConfigChangeListener listener,
String... forKeys) |
private String |
buildKey(String prefix,
Method method) |
<T> T |
createConfigObject(Class<T> clazz,
String prefix,
String file)
创建一个新的配置对象(Object)
|
<T> T |
get(Class<T> clazz) |
<T> T |
get(Class<T> clazz,
String prefix,
String file)
获取配置信息,并创建和赋值clazz实例
|
String |
getBootArg(String key)
获取启动参数
|
Map<String,String> |
getBootArgs() |
Map<String,Object> |
getConfigCache() |
String |
getConfigValue(Properties properties,
String key) |
String |
getConfigValue(String key) |
JbootConfigDecryptor |
getDecryptor() |
private String |
getOriginalConfigValue(Properties properties,
String key)
获取值的优先顺序:1、远程配置 2、启动配置 3、环境变量 4、系统属性 5、properties配置文件
|
Properties |
getProperties()
获取Jboot默认的配置信息
|
private void |
init() |
boolean |
isDevMode() |
static JbootConfigManager |
me() |
void |
notifyChangeListeners(String key,
String newValue,
String oldValue) |
static void |
parseArgs(String[] args)
解析启动参数
|
<T> T |
refreshAndGet(Class<T> clazz)
刷新数据,并返回新的数据
|
<T> T |
refreshAndGet(Class<T> clazz,
String prefix,
String file)
刷新数据,并返回新的数据
|
private void |
refreshMainProperties() |
void |
removeConfigChangeListener(JbootConfigChangeListener listener) |
void |
removeRemoteProperty(String key) |
static void |
setBootArg(String key,
Object value) |
static void |
setBootProperties(File propertiesFile) |
static void |
setBootProperties(Properties properties) |
static void |
setBootProperties(String propertiesFilePath) |
void |
setDecryptor(JbootConfigDecryptor decryptor) |
void |
setDevMode(Boolean devMode) |
void |
setRemoteProperties(Map map) |
void |
setRemoteProperty(String key,
String value) |