|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addPropertiesFile(java.lang.String filename)
load a property file inside the classpath. |
void |
addPropertiesFileFromFilePath(java.lang.String filename)
load a property file from the file system If not found throw IOException |
void |
addProperty(java.lang.String key,
java.lang.String value)
add the specified key,value to the manager properties |
java.util.Properties |
getProperties()
return all the loaded properties |
java.util.Properties |
getProperties(java.lang.String prop_file)
read the property file inside the classpath. |
java.util.Properties |
getPropertiesFromPath(java.lang.String prop_file)
read the property file from the file system Does not load it |
java.lang.String |
getProperty(java.lang.String key)
return the property with specified key from loaded properties. |
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
return the property with specified key from loaded properties. |
void |
removeAllProperties()
remove all resource manager properties |
Method Detail |
public java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
key
- : the property key to getdefaultValue
- : default value if key is not found
public java.lang.String getProperty(java.lang.String key)
key
- : the property key to get
public void addProperty(java.lang.String key, java.lang.String value)
key
- : the property keyvalue
- : value of the propertypublic void removeAllProperties()
public void addPropertiesFile(java.lang.String filename) throws java.io.IOException
filename
- : properties file name.
java.io.IOException
- : throws if the file is not foundpublic void addPropertiesFileFromFilePath(java.lang.String filename) throws java.io.IOException
filename
- : properties file name.
java.io.IOException
- : throws if the file is not foundpublic java.util.Properties getProperties(java.lang.String prop_file) throws java.io.IOException
java.io.IOException
- : throws if the file is not foundpublic java.util.Properties getPropertiesFromPath(java.lang.String prop_file) throws java.io.IOException
java.io.IOException
- : throws if the file is not foundpublic java.util.Properties getProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |