org.apache.jetspeed.util
Class ReloadablePropertyResourceBundle

java.lang.Object
  extended by java.util.ResourceBundle
      extended by org.apache.jetspeed.util.ReloadablePropertyResourceBundle

public class ReloadablePropertyResourceBundle
extends java.util.ResourceBundle

ReloadablePropertyResourceBundle

Version:
$Id: ReloadablePropertyResourceBundle.java 918448 2010-03-03 12:42:02Z woonsan $

Field Summary
protected  java.lang.String baseName
           
protected  java.util.PropertyResourceBundle internalBundle
           
protected  java.util.Properties overridingProps
           
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
ReloadablePropertyResourceBundle(java.util.PropertyResourceBundle internalBundle, java.lang.String baseName)
           
 
Method Summary
 java.util.Enumeration<java.lang.String> getKeys()
           
 java.util.Locale getLocale()
           
protected  java.lang.Object handleGetObject(java.lang.String key)
           
 void reload(java.lang.ClassLoader loader)
          Reloads resource bundle from the properties file which can be decided by the baseName.
 void reset()
          Resets overriding properties.
 
Methods inherited from class java.util.ResourceBundle
getBundle, getBundle, getBundle, getObject, getString, getStringArray, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

internalBundle

protected java.util.PropertyResourceBundle internalBundle

baseName

protected java.lang.String baseName

overridingProps

protected java.util.Properties overridingProps
Constructor Detail

ReloadablePropertyResourceBundle

public ReloadablePropertyResourceBundle(java.util.PropertyResourceBundle internalBundle,
                                        java.lang.String baseName)
Method Detail

reload

public void reload(java.lang.ClassLoader loader)
            throws java.io.IOException
Reloads resource bundle from the properties file which can be decided by the baseName.

Parameters:
loader -
Throws:
java.io.IOException

reset

public void reset()
Resets overriding properties.


getLocale

public java.util.Locale getLocale()
Overrides:
getLocale in class java.util.ResourceBundle

getKeys

public java.util.Enumeration<java.lang.String> getKeys()
Specified by:
getKeys in class java.util.ResourceBundle

handleGetObject

protected java.lang.Object handleGetObject(java.lang.String key)
Specified by:
handleGetObject in class java.util.ResourceBundle


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.