Inheritance diagram for org.openmobileis.common.util.PropertiesService:
Definition at line 12 of file PropertiesService.java.
Public Member Functions | |
String | getProperty (String key, String defaultValue) |
return the property with specified key from loaded properties. | |
String | getProperty (String key) |
return the property with specified key from loaded properties. | |
void | addProperty (String key, String value) |
add the specified key,value to the manager properties | |
void | removeAllProperties () |
remove all resource manager properties | |
void | addPropertiesFile (String filename) throws IOException |
load a property file inside the classpath. | |
void | addPropertiesFileFromFilePath (String filename) throws java.io.IOException |
load a property file from the file system If not found throw IOException | |
java.util.Properties | getProperties (String prop_file) throws java.io.IOException |
read the property file inside the classpath. | |
java.util.Properties | getPropertiesFromPath (String prop_file) throws java.io.IOException |
read the property file from the file system Does not load it | |
java.util.Properties | getProperties () |
return all the loaded properties |
String org.openmobileis.common.util.PropertiesService.getProperty | ( | String | key, | |
String | defaultValue | |||
) |
return the property with specified key from loaded properties.
return default value if not found.
key | : the property key to get | |
defaultValue | : default value if key is not found |
Implemented in org.openmobileis.common.util.PropertiesManager.
String org.openmobileis.common.util.PropertiesService.getProperty | ( | String | key | ) |
return the property with specified key from loaded properties.
return null if not found.
key | : the property key to get |
Implemented in org.openmobileis.common.util.PropertiesManager.
void org.openmobileis.common.util.PropertiesService.addProperty | ( | String | key, | |
String | value | |||
) |
add the specified key,value to the manager properties
key | : the property key | |
value | : value of the property |
Implemented in org.openmobileis.common.util.PropertiesManager.
void org.openmobileis.common.util.PropertiesService.addPropertiesFile | ( | String | filename | ) | throws IOException |
load a property file inside the classpath.
if the path is /org/openmobileis/file.properties First look in the classpath for /properties/org/openmobileis/file.properties then in /org/openmobileis/file.properties. If not found throw IOException
filename | : properties file name. |
IOException | : throws if the file is not found |
Implemented in org.openmobileis.common.util.PropertiesManager.
void org.openmobileis.common.util.PropertiesService.addPropertiesFileFromFilePath | ( | String | filename | ) | throws java.io.IOException |
load a property file from the file system If not found throw IOException
filename | : properties file name. |
IOException | : throws if the file is not found |
Implemented in org.openmobileis.common.util.PropertiesManager.
java.util.Properties org.openmobileis.common.util.PropertiesService.getProperties | ( | String | prop_file | ) | throws java.io.IOException |
read the property file inside the classpath.
Does not load it if the path is /org/openmobileis/file.properties First looks in the classpath for /properties/org/openmobileis/file.properties then for /org/openmobileis/file.properties. If not found throw IOException
filename | : properties file name. |
IOException | : throws if the file is not found |
Implemented in org.openmobileis.common.util.PropertiesManager.
java.util.Properties org.openmobileis.common.util.PropertiesService.getPropertiesFromPath | ( | String | prop_file | ) | throws java.io.IOException |
read the property file from the file system Does not load it
filename | : properties file name. |
IOException | : throws if the file is not found |
Implemented in org.openmobileis.common.util.PropertiesManager.
java.util.Properties org.openmobileis.common.util.PropertiesService.getProperties | ( | ) |
return all the loaded properties
Implemented in org.openmobileis.common.util.PropertiesManager.