程序包 org.coodex.util
类 Profile
java.lang.Object
org.coodex.util.Profile
- 直接已知子类:
ProfileBaseProperties,ProfileBaseYaml
自财运通项目中移植过来utilities中
2016/09/05 废弃
2014/04/27 支持命名空间
配置如下:
A.properties
org.coodex.util.profile.NAMESPACE=XX.properties
XX.properties
abcd=xxxxxx
则相当于在A.properties中
NAMESPACE.abcd=xxxxxx
2016/09/05 废弃
配置如下:
A.properties
org.coodex.util.profile.NAMESPACE=XX.properties
XX.properties
abcd=xxxxxx
则相当于在A.properties中
NAMESPACE.abcd=xxxxxx
2016-08-30
1、废弃基于File类型的构造
2、每个资源仅维持一个实例
2016-09-05
1、废弃命名空间的支持
2、修改监测机制
Profile.reloadInterval 用以制定重新加载的间隔时间,单位为秒
- 版本:
- v1.0 2014-03-18
- 作者:
- davidoff
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static String[]static Profile根据path获取Profilestatic Profilestatic Profile根据url获取Profilebooleanbooleanintintintlonglonglongprotected abstract StringgetStringImpl(String key) String[]getStrList(String key) String[]getStrList(String key, String delim) String[]getStrList(String key, String delim, String[] v) String[]getStrList(String key, String delim, Supplier<String[]> supplier) String[]getStrList(String key, Supplier<String[]> supplier) protected abstract boolean
-
构造器详细资料
-
Profile
public Profile()
-
-
方法详细资料
-
allSupportedFileExt
-
get
根据url获取Profile- 参数:
url- 资源url- 返回:
- profile
-
get
根据path获取Profile- 参数:
path- path- 返回:
- profile
-
get
-
getBool
-
getBool
-
getStringImpl
-
isNull
-
getString
-
getString
-
getString
-
getInt
-
getInt
-
getInt
-
getLong
-
getLong
-
getLong
-
getStrList
-
getStrList
-
getStrList
-
getStrList
-
getStrList
-