public class ConfigProperties extends Properties
defaults
Constructor and Description |
---|
ConfigProperties() |
ConfigProperties(Properties p) |
Modifier and Type | Method and Description |
---|---|
void |
foreach(BiConsumer<String,String> foreachConsumer)
key-value foreach
|
<T> void |
injectToConfig(T config)
根据
Conf 的注解信息以及配置文件中的内容将配置信息注入到此类中。 |
<T> void |
injectToConfig(T config,
Class<T> configType)
根据
Conf 的注解信息以及配置文件中的内容将配置信息注入到此类中。
手动指定Class类对象 |
void |
load(InputStream inputStream)
override this load method
|
void |
load(InputStream inputStream,
String charset)
override this load method
|
void |
load(Reader reader)
override this load method
|
getProperty, getProperty, list, list, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
public ConfigProperties()
public ConfigProperties(Properties p)
public void load(Reader reader) throws IOException
load
in class Properties
IOException
public void load(InputStream inputStream) throws IOException
load
in class Properties
IOException
public void load(InputStream inputStream, String charset) throws IOException
IOException
public void foreach(BiConsumer<String,String> foreachConsumer)
public <T> void injectToConfig(T config)
Conf
的注解信息以及配置文件中的内容将配置信息注入到此类中。Copyright © 2020. All rights reserved.