Package com.alibaba.druid.pool.ha
Class PropertiesUtils
- java.lang.Object
-
- com.alibaba.druid.pool.ha.PropertiesUtils
-
public class PropertiesUtils extends Object
Utilities for Properties.- Author:
- DigitalSonic
-
-
Constructor Summary
Constructors Constructor Description PropertiesUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertiesfilterPrefix(Properties properties, String prefix)static List<String>loadNameList(Properties properties, String propertyPrefix)Pick the name of a JDBC url.static PropertiesloadProperties(String file)Load properties from the given file into Properties.
-
-
-
Method Detail
-
loadProperties
public static Properties loadProperties(String file)
Load properties from the given file into Properties.
-
loadNameList
public static List<String> loadNameList(Properties properties, String propertyPrefix)
Pick the name of a JDBC url. Such as xxx.url, xxx is the name.
-
filterPrefix
public static Properties filterPrefix(Properties properties, String prefix)
-
-