public class DefaultMutableResourceBundleRegistry extends Object implements MutableResourceBundleRegistry
Constructor and Description |
---|
DefaultMutableResourceBundleRegistry() |
Modifier and Type | Method and Description |
---|---|
ResourceBundle |
getBundle(String basename)
Returns the resource bundle based on the specific basename for the default locale.
|
ResourceBundle |
getBundle(String basename,
Locale locale)
Returns the resource bundle based on the specific basename and locale.
|
protected ResourceBundle |
getBundle(String basename,
Locale locale,
boolean preview) |
ResourceBundle |
getBundleForPreview(String basename)
Returns the resource bundle based on the specific basename for the default locale.
|
ResourceBundle |
getBundleForPreview(String basename,
Locale locale)
Returns the resource bundle based on the specific basename and locale.
|
ResourceBundleFamilyFactory |
getResourceBundleFamilyFactory() |
boolean |
isFallbackToJavaResourceBundle() |
void |
registerBundleFamily(String basename,
ResourceBundleFamily bundleFamily)
Registers the internal resource bundle family specified by the basename.
|
void |
setFallbackToJavaResourceBundle(boolean fallbackToJavaResourceBundle) |
void |
setResourceBundleFamilyFactory(ResourceBundleFamilyFactory resourceBundleFamilyFactory) |
void |
unregisterAllBundleFamilies()
Unregisters all the internal resource bundle families in the registry.
|
void |
unregisterBundleFamily(String basename)
Unregisters the internal resource bundle family specified by the basename if found.
|
public DefaultMutableResourceBundleRegistry()
public ResourceBundleFamilyFactory getResourceBundleFamilyFactory()
public void setResourceBundleFamilyFactory(ResourceBundleFamilyFactory resourceBundleFamilyFactory)
public boolean isFallbackToJavaResourceBundle()
public void setFallbackToJavaResourceBundle(boolean fallbackToJavaResourceBundle)
public ResourceBundle getBundle(String basename)
ResourceBundleRegistry
getBundle
in interface ResourceBundleRegistry
public ResourceBundle getBundleForPreview(String basename)
ResourceBundleRegistry
getBundleForPreview
in interface ResourceBundleRegistry
public ResourceBundle getBundle(String basename, Locale locale)
ResourceBundleRegistry
getBundle
in interface ResourceBundleRegistry
public ResourceBundle getBundleForPreview(String basename, Locale locale)
ResourceBundleRegistry
getBundleForPreview
in interface ResourceBundleRegistry
public void registerBundleFamily(String basename, ResourceBundleFamily bundleFamily)
MutableResourceBundleRegistry
registerBundleFamily
in interface MutableResourceBundleRegistry
public void unregisterBundleFamily(String basename)
MutableResourceBundleRegistry
unregisterBundleFamily
in interface MutableResourceBundleRegistry
public void unregisterAllBundleFamilies()
MutableResourceBundleRegistry
unregisterAllBundleFamilies
in interface MutableResourceBundleRegistry
protected ResourceBundle getBundle(String basename, Locale locale, boolean preview)
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.