Class ResourceComposite
java.lang.Object
java.util.ResourceBundle
org.nuxeo.ecm.platform.rendering.fm.i18n.ResourceComposite
A resource bundle for Nuxeo Rendering that holds a map of locals, allows developers to change it from its api
(setLocale) and that will delegate its method to the correct resource bundle according to the local chosen.
- Author:
- Sun Seng David TAN
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.ResourceBundle
ResourceBundle.Control
-
Field Summary
Fields inherited from class java.util.ResourceBundle
parent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetKeys()
Delegates getString using the resource bundle corresponding to the local (create one if it doesn't exist).protected Object
handleGetObject
(String key) void
Set the locale to be used.Methods inherited from class java.util.ResourceBundle
clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent
-
Constructor Details
-
ResourceComposite
public ResourceComposite() -
ResourceComposite
-
-
Method Details
-
setLocale
Set the locale to be used. -
getKeys
- Specified by:
getKeys
in classResourceBundle
-
handleGetObject
- Specified by:
handleGetObject
in classResourceBundle
-
getString
Delegates getString using the resource bundle corresponding to the local (create one if it doesn't exist).
-