Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jwall.util
Class PropertyManager  view PropertyManager download PropertyManager.java

java.lang.Object
  extended byorg.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.


Field Summary
static java.lang.String DEFAULT
          The default property file
private static java.util.HashMap openProperties
           
 
Constructor Summary
private PropertyManager()
          Instantiation is not possible.
 
Method Summary
static java.lang.String getPathForOS(java.lang.String path)
          Takes a file path and converts to current Operating System
static java.lang.String getString(java.lang.String propertyName)
          Gets the value of a property from the default file.
static java.lang.String getString(java.lang.String fileName, java.lang.String propertyName)
          Gets the value of a property from a file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

openProperties

private static java.util.HashMap openProperties

DEFAULT

public static final java.lang.String DEFAULT
The default property file

See Also:
Constant Field Values
Constructor Detail

PropertyManager

private PropertyManager()
Instantiation is not possible.

Method Detail

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