public class PropertiesUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Properties |
getProperties(String propertiesPath)
Returns properties by given path.
|
static Properties |
getPropertiesFromCache(String propertiesPath)
Returns properties by given path.
If this properties already been put in the cache, we will returns this properties from cache. |
static Properties |
getReloadPropertiesInToCache(String propertiesPath)
Returns properties by given path, and put this properties into cache, you
can called getProperties method to get this properties from cache next.
|
public static Properties getProperties(String propertiesPath) throws PropertiesException
e.g:
"testFolder/propertiesName" or "testFolder/propertiesName.properties"
propertiesPath - the properties path.PropertiesExceptionpublic static Properties getPropertiesFromCache(String propertiesPath) throws PropertiesException
e.g:
"testFolder/propertiesName" or "testFolder/propertiesName.properties"
propertiesPath - the properties path.PropertiesExceptionpublic static Properties getReloadPropertiesInToCache(String propertiesPath) throws PropertiesException
e.g:
"testFolder/propertiesName" or "testFolder/propertiesName.properties"
propertiesPath - the properties path.PropertiesExceptionCopyright © 2014. All rights reserved.