uka.util
Class ConfigBundle

java.lang.Object
  extended byjava.util.ResourceBundle
      extended byuka.util.ConfigBundle

public class ConfigBundle
extends java.util.ResourceBundle

Author:
Bernhard Haumacher

Nested Class Summary
 
Nested classes inherited from class java.util.ResourceBundle
 
Field Summary
(package private)  java.lang.String prefix
           
(package private)  java.util.ResourceBundle superBundle
           
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
ConfigBundle(java.util.ResourceBundle superBundle, java.lang.String prefix)
           
 
Method Summary
private  java.lang.Object complain(java.lang.String msg, java.lang.String key)
           
private  int complainI(java.lang.String msg, java.lang.String key)
           
 int getConfigInt(java.lang.String key)
           
 int getConfigInt(java.lang.String key, int defaultValue)
           
 java.lang.String getConfigString(java.lang.String key)
           
 java.lang.String getConfigString(java.lang.String key, java.lang.String defaultValue)
          getString() in superclass is final, so we have to rename the methods to get the consistent behaviour in case of missing configuration entries.
protected  java.lang.String getFullKey(java.lang.String key)
           
 java.util.Enumeration getKeys()
           
protected  java.lang.Object handleGetObject(java.lang.String key)
           
 
Methods inherited from class java.util.ResourceBundle
getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

superBundle

java.util.ResourceBundle superBundle

prefix

java.lang.String prefix
Constructor Detail

ConfigBundle

public ConfigBundle(java.util.ResourceBundle superBundle,
                    java.lang.String prefix)
Method Detail

complainI

private int complainI(java.lang.String msg,
                      java.lang.String key)

complain

private java.lang.Object complain(java.lang.String msg,
                                  java.lang.String key)

getFullKey

protected java.lang.String getFullKey(java.lang.String key)

getKeys

public java.util.Enumeration getKeys()

getConfigString

public java.lang.String getConfigString(java.lang.String key,
                                        java.lang.String defaultValue)
getString() in superclass is final, so we have to rename the methods to get the consistent behaviour in case of missing configuration entries. Note: the key for lookup of configuration entries is only a suffix of the key in the configuration file.


getConfigString

public java.lang.String getConfigString(java.lang.String key)

getConfigInt

public int getConfigInt(java.lang.String key,
                        int defaultValue)

getConfigInt

public int getConfigInt(java.lang.String key)

handleGetObject

protected java.lang.Object handleGetObject(java.lang.String key)