org.opennms.core.utils
Class PropertiesCache
java.lang.Object
org.opennms.core.utils.PropertiesCache
public class PropertiesCache
- extends Object
Caches properties files in order to improve performance.
- Author:
- Mathew Brozowski
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesCache
public PropertiesCache()
clear
public void clear()
getProperties
public Properties getProperties(File propFile)
throws IOException
- Get the current properties object from the cache loading it in memory
- Parameters:
propFile -
- Returns:
-
- Throws:
IOException
findProperties
public Properties findProperties(File propFile)
throws IOException
- Throws:
IOException
saveProperties
public void saveProperties(File propFile,
Properties properties)
throws IOException
- Throws:
IOException
updateProperties
public void updateProperties(File propFile,
Map<String,String> props)
throws IOException
- Throws:
IOException
setProperty
public void setProperty(File propFile,
String key,
String value)
throws IOException
- Throws:
IOException
getProperty
public String getProperty(File propFile,
String key)
throws IOException
- Throws:
IOException
Copyright © 2009. All Rights Reserved.