QJCC homepage

biz.chitec.quarterback.util
Class SelfLoadingClassBasedResourceBundle

java.lang.Object
  extended byjava.util.ResourceBundle
      extended bybiz.chitec.quarterback.util.HierarchicalResourceBundle
          extended bybiz.chitec.quarterback.util.SelfLoadingClassBasedResourceBundle

public class SelfLoadingClassBasedResourceBundle
extends HierarchicalResourceBundle

Resource bundle implementation which knows itself about its source and can reload its contents for a changed locale.

Version:
$Id: c53691216ee454a692197c7455f316a1f96b954c $
Author:
cantamen/Dirk Hillbrecht 2007

Nested Class Summary
 
Nested classes inherited from class java.util.ResourceBundle
 
Field Summary
private  java.util.Locale fallbacklocale
           
private  java.lang.String leafclassname
           
private  java.util.Locale locale
           
 
Fields inherited from class biz.chitec.quarterback.util.HierarchicalResourceBundle
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
SelfLoadingClassBasedResourceBundle(java.lang.String aclassnamex)
           
SelfLoadingClassBasedResourceBundle(java.lang.String leafclassnamex, java.util.Locale localex, java.util.Locale fallbacklocalex)
           
 
Method Summary
private  void loadContents()
           
 void setFallbackLocale(java.util.Locale newfallbacklocale)
           
 void setLocale(java.util.Locale newlocale)
           
 
Methods inherited from class biz.chitec.quarterback.util.HierarchicalResourceBundle
addBundle, dropBundles, getKeys, handleGetObject, isEmpty, prependBundle, toString
 
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, wait, wait, wait
 

Field Detail

leafclassname

private java.lang.String leafclassname

locale

private java.util.Locale locale

fallbacklocale

private java.util.Locale fallbacklocale
Constructor Detail

SelfLoadingClassBasedResourceBundle

public SelfLoadingClassBasedResourceBundle(java.lang.String leafclassnamex,
                                           java.util.Locale localex,
                                           java.util.Locale fallbacklocalex)

SelfLoadingClassBasedResourceBundle

public SelfLoadingClassBasedResourceBundle(java.lang.String aclassnamex)
Method Detail

setLocale

public void setLocale(java.util.Locale newlocale)

setFallbackLocale

public void setFallbackLocale(java.util.Locale newfallbacklocale)

loadContents

private void loadContents()

QJCC homepage