Package io.odysz.common
Class Configs
java.lang.Object
io.odysz.common.Configs
Load path/config.xml, use
A servlet constext must been registed by LeisureFactory before Messages is inited
getCfg(String)
to access the configured value (String).A servlet constext must been registed by LeisureFactory before Messages is inited
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
log
-
cfgFullpath
-
cfgs
-
-
Constructor Details
-
Configs
public Configs()
-
-
Method Details
-
init
For redirect path of config.xml- Parameters:
xmlDir
-
-
init
- Parameters:
xmlDir
-cfgxml
- e. g. config.xmltid
- optional [table-name]- Returns:
- absolute configure file path
- Since:
- 2.0.0
-
load
- Parameters:
cfgs
-tid
-- Returns:
- absolute configure file path
-
load
- Parameters:
cfgs
-xml
-tid
-- Returns:
- absolute configure file path
-
getCfg
-
getCfg
-
getBoolean
-
getInt
-
hasCfg
-
hasCfg
-