public class ConfigTable extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static String |
classpath |
static String |
CONFIG_NAME |
protected static Hashtable<String,String> |
configs |
protected static boolean |
debug |
static boolean |
IS_KEY_IGNORE_CASE |
static boolean |
IS_LOWER_KEY |
static boolean |
IS_THROW_SQL_EXCEPTION |
static boolean |
IS_UPPER_KEY |
protected static boolean |
isLoading |
protected static long |
lastLoadTime |
protected static String |
minVersion |
protected static int |
reload |
protected static String |
root |
protected static boolean |
sqlDebug |
protected static String |
version |
protected static String |
webRoot |
| 限定符 | 构造器和说明 |
|---|---|
protected |
ConfigTable() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
addConfig(File... files) |
static void |
addConfig(String content) |
protected static void |
debug() |
static String |
get(String key) |
static boolean |
getBoolean(String key) |
static boolean |
getBoolean(String key,
boolean def) |
static String |
getClassPath() |
static Hashtable<String,String> |
getConfigs() |
static int |
getInt(String key) |
static int |
getInt(String key,
int def) |
static String |
getMinVersion() |
static String |
getPackageType() |
static int |
getReload() |
static String |
getRoot() |
static String |
getString(String key) |
static String |
getString(String key,
String def) |
static String |
getVersion() |
static String |
getWebClassPath() |
static String |
getWebRoot() |
static void |
init() |
static void |
init(String flag) |
static boolean |
isDebug() |
static boolean |
isSQLDebug() |
protected static void |
line(String src,
String chr,
int append,
boolean center) |
protected static void |
loadConfig(File file) |
protected static void |
loadConfig(String flag)
加载配置文件
首先加载anyline-config.xml
然后加载anyline开头的xml文件并覆盖先加载的配置
|
protected static void |
loadConfigDir(File dir,
String flag) |
static void |
parse(InputStream is) |
static void |
parse(String xml) |
static void |
put(String key,
String value) |
static void |
setDebug(boolean bol) |
static void |
setLowerKey(boolean bol) |
static void |
setRoot(String root) |
static void |
setUpperKey(boolean bol) |
static void |
setWebRoot(String webRoot) |
protected static String root
protected static String webRoot
protected static String classpath
protected static long lastLoadTime
protected static int reload
protected static boolean debug
protected static boolean sqlDebug
protected static boolean isLoading
public static boolean IS_UPPER_KEY
public static boolean IS_LOWER_KEY
public static boolean IS_KEY_IGNORE_CASE
public static boolean IS_THROW_SQL_EXCEPTION
public static String CONFIG_NAME
public static void addConfig(String content)
public static void addConfig(File... files)
public static String getWebRoot()
public static void setWebRoot(String webRoot)
public static String getRoot()
public static void setRoot(String root)
public static String getWebClassPath()
public static String getClassPath()
public static void init()
public static String getPackageType()
public static void init(String flag)
protected static void loadConfig(String flag)
flag - flagpublic static void parse(String xml)
public static void parse(InputStream is)
protected static void loadConfig(File file)
public static boolean getBoolean(String key)
public static boolean getBoolean(String key, boolean def)
public static int getInt(String key)
public static int getInt(String key, int def)
public static String getVersion()
public static String getMinVersion()
public static int getReload()
public static void setDebug(boolean bol)
public static boolean isDebug()
public static boolean isSQLDebug()
protected static void debug()
public static void setUpperKey(boolean bol)
public static void setLowerKey(boolean bol)
Copyright © 2022. All rights reserved.