|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.core.utils.PropertiesCache
public class PropertiesCache
Caches properties files in order to improve performance.
| Constructor Summary | |
|---|---|
PropertiesCache()
|
|
| Method Summary | |
|---|---|
void |
clear()
clear |
Properties |
findProperties(File propFile)
findProperties |
Properties |
getProperties(File propFile)
Get the current properties object from the cache loading it in memory |
String |
getProperty(File propFile,
String key)
getProperty |
void |
saveProperties(File propFile,
Properties properties)
saveProperties |
void |
setProperty(File propFile,
String key,
String value)
setProperty |
void |
updateProperties(File propFile,
Map<String,String> props)
updateProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertiesCache()
| Method Detail |
|---|
public void clear()
clear
public Properties getProperties(File propFile)
throws IOException
propFile - a File object.
Properties object.
IOException - if any.
public Properties findProperties(File propFile)
throws IOException
findProperties
propFile - a File object.
Properties object.
IOException - if any.
public void saveProperties(File propFile,
Properties properties)
throws IOException
saveProperties
propFile - a File object.properties - a Properties object.
IOException - if any.
public void updateProperties(File propFile,
Map<String,String> props)
throws IOException
updateProperties
propFile - a File object.props - a Map object.
IOException - if any.
public void setProperty(File propFile,
String key,
String value)
throws IOException
setProperty
propFile - a File object.key - a String object.value - a String object.
IOException - if any.
public String getProperty(File propFile,
String key)
throws IOException
getProperty
propFile - a File object.key - a String object.
String object.
IOException - if any.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||