| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.koala.koalautil.ConfigurationManager
Handles system configuration through property files.
| Method Summary | |
 double | 
getDouble(java.lang.String key,
          double defaultValue)
get the value for a double property  | 
 java.util.GregorianCalendar | 
getGregorianCalendar(java.lang.String key,
                     java.util.GregorianCalendar defaultValue)
get the value for a GregorianCalendar property  | 
static org.koala.koalautil.ConfigurationManager | 
getInstance()
returns the instance for the default path  | 
static org.koala.koalautil.ConfigurationManager | 
getInstance(java.lang.String path)
provides access to a given instance of the class  | 
 int | 
getInt(java.lang.String key,
       int defaultValue)
get the value for an int property  | 
 long | 
getLong(java.lang.String key,
        long defaultValue)
get the value for a long property  | 
 java.lang.String | 
getString(java.lang.String key,
          java.lang.String defaultValue)
get the value for a String property  | 
 void | 
setInt(java.lang.String key,
       int value)
sets the value of an int property  | 
 void | 
setString(java.lang.String key,
          java.lang.String value)
sets the value of a String property  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
public void setString(java.lang.String key,
                      java.lang.String value)
               throws ChainedException
key - property keyvalue - the value associated with the given key
ChainedException - unspecified
public void setInt(java.lang.String key,
                   int value)
            throws ChainedException
key - property keyvalue - the value associated with the given key
ChainedException - unspecified
public java.lang.String getString(java.lang.String key,
                                  java.lang.String defaultValue)
                           throws ChainedException
key - property keydefaultValue - the value to return if the key does not
 exist on the property file
ChainedException - unspecified
public int getInt(java.lang.String key,
                  int defaultValue)
           throws ChainedException
key - property keydefaultValue - default value to return if the property
 does not exist on the file
ChainedException - unspecified
public long getLong(java.lang.String key,
                    long defaultValue)
             throws ChainedException
key - property keydefaultValue - default value to return in case the key
 does not exist in the property file
ChainedException - unspecified
public double getDouble(java.lang.String key,
                        double defaultValue)
                 throws ChainedException
key - property keydefaultValue - default value to return if the key does
 not exist in the file
ChainedException - unspecified
public java.util.GregorianCalendar getGregorianCalendar(java.lang.String key,
                                                        java.util.GregorianCalendar defaultValue)
                                                 throws ChainedException
key - property keydefaultValue - default value to return in case the key does
 not exist on the file
ChainedException - unspecified
public static org.koala.koalautil.ConfigurationManager getInstance(java.lang.String path)
                                                            throws ChainedException
path - the property file path for the instance we
 want to access
ChainedException - unspecified
public static org.koala.koalautil.ConfigurationManager getInstance()
                                                            throws ChainedException
ChainedException - unspecified
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||