public final class XProperties extends Properties
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
server_port |
defaults| 构造器和说明 |
|---|
XProperties() |
| 限定符和类型 | 方法和说明 |
|---|---|
XMap |
argx()
获取启动参数
|
String |
get(String key)
获取某项配置
|
String |
get(String key,
String def) |
boolean |
getBool(String key,
boolean def) |
int |
getInt(String key,
int def) |
long |
getLong(String key,
long def) |
Properties |
getProp(String key) |
XMap |
getXmap(String key) |
XProperties |
load(XMap args) |
void |
onChange(Act2<String,String> event) |
List<String> |
plugs()
获取插件列表
|
int |
serverPort()
获取服务端口(默认:8080)
|
Object |
setProperty(String key,
String value) |
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNamesclear, 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, valuespublic XProperties load(XMap args)
public Object setProperty(String key, String value)
setProperty 在类中 Propertiespublic XMap argx()
public int getInt(String key, int def)
public long getLong(String key, long def)
public boolean getBool(String key, boolean def)
public Properties getProp(String key)
public int serverPort()
Copyright © 2019. All rights reserved.