org.norther.tammi.core.locale
Class ConfigurationResourceBundle

java.lang.Object
  extended by java.util.ResourceBundle
      extended by org.norther.tammi.core.locale.LookupResourceBundle
          extended by org.norther.tammi.core.locale.PluggableResourceBundle
              extended by org.norther.tammi.core.locale.ConfigurationResourceBundle

public class ConfigurationResourceBundle
extends PluggableResourceBundle

A concrete subclass of java.util.ResourceBundle that manages resources for a locale using a set of static strings from a property file.

Author:
Ilkka Priha

Field Summary
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
ConfigurationResourceBundle()
          Constructs a new bundle.
 
Method Summary
 Enumeration getKeys()
          Implementation of the ResourceBundle.getKeys method.
 Locale getLocale()
           
protected  Object handleGetObject(String key)
          Implementation of the ResourceBundle.handleGetObject method.
 String lookupKey(Object resource)
          Looks up for a resource key.
protected  void setParent(ResourceBundle prnt)
           
 
Methods inherited from class org.norther.tammi.core.locale.PluggableResourceBundle
getMBeanServer, getPlugInKey, getResourceCheckInterval, getResourceFinderMBean, plugIn, release
 
Methods inherited from class org.norther.tammi.core.locale.LookupResourceBundle
getBaseName, getKeys, getParent, lookup, lookupObject, lookupString, lookupStringArray, setBaseName
 
Methods inherited from class java.util.ResourceBundle
getBundle, getBundle, getBundle, getObject, getString, getStringArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationResourceBundle

public ConfigurationResourceBundle()
Constructs a new bundle.

Method Detail

getKeys

public Enumeration getKeys()
Description copied from class: LookupResourceBundle
Implementation of the ResourceBundle.getKeys method.

Overrides:
getKeys in class LookupResourceBundle
Returns:
an enumeration of keys.

getLocale

public Locale getLocale()
Overrides:
getLocale in class ResourceBundle

lookupKey

public String lookupKey(Object resource)
Description copied from class: LookupResourceBundle
Looks up for a resource key.

Overrides:
lookupKey in class LookupResourceBundle
Parameters:
resource - the resource.
Returns:
the found key or null.

handleGetObject

protected Object handleGetObject(String key)
Description copied from class: LookupResourceBundle
Implementation of the ResourceBundle.handleGetObject method.

Overrides:
handleGetObject in class LookupResourceBundle
Parameters:
key - the key of the object to get.
Returns:
the object value.

setParent

protected void setParent(ResourceBundle prnt)
Overrides:
setParent in class ResourceBundle


Copyright © 2004 The Norther Organization. All rights reserved.