java.lang.Object
org.jwall.util.PropertyManager
- public class PropertyManager
- extends java.lang.Object
This class implements central resource management for the properties. This
allows all classes to use the same Resourcebundles. The open
files are cached so that they do not need to be reparsed for every class.
|
Constructor Summary |
private |
PropertyManager()
Instantiation is not possible. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
openProperties
private static java.util.HashMap openProperties
DEFAULT
public static final java.lang.String DEFAULT
- The default property file
- See Also:
- Constant Field Values
PropertyManager
private PropertyManager()
- Instantiation is not possible.
getString
public static java.lang.String getString(java.lang.String fileName,
java.lang.String propertyName)
- Gets the value of a property from a file
getString
public static java.lang.String getString(java.lang.String propertyName)
- Gets the value of a property from the default file.
getPathForOS
public static java.lang.String getPathForOS(java.lang.String path)
- Takes a file path and converts to current Operating System