public final class ConfigurationUtil extends ConfigurationXmlUtil
Modifier and Type | Method and Description |
---|---|
static void |
clear() |
static ConfigurationManager |
getConfigurationManager() |
static Map<String,String> |
replace(Map<String,String> proMap)
对map中的value进行{}占位符或环境变量占位符的替换
|
static void |
replace(Map<String,String> proMap,
Map<String,String> proMap2)
交叉替换两个Map中的变量引用,不考虑多层及嵌套引用,只处理单层引用
支持:
Map1: key1 = {key2} key4=a
Map2: key3 = {key4} key2=b
不支持:
Map1: key1 = {key3} key4={key2}
Map2: key3 = {key4} key2=b
|
static String |
replace(String value,
Map<String,String> proMap)
替换字符串中的变量占位符
|
static String |
replace(String content,
String name,
String value)
Deprecated.
|
combineFindNodeList, combineSubList, combineSubList, combineSubList, combineXmlNode, getPropertyName, getPropertyName, parseXmlFromFileObject
public static ConfigurationManager getConfigurationManager()
public static void clear()
@Deprecated public static String replace(String content, String name, String value)
public static void replace(Map<String,String> proMap, Map<String,String> proMap2)
proMap
- proMap2
- public static Map<String,String> replace(Map<String,String> proMap)
proMap
- Copyright © 2006–2018 TinyGroup. All rights reserved.