Class LibLoaderResourceBundleFactory
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.util.LibLoaderResourceBundleFactory
-
- All Implemented Interfaces:
Serializable
,Cloneable
,ExtendedResourceBundleFactory
,ResourceBundleFactory
public class LibLoaderResourceBundleFactory extends Object implements ExtendedResourceBundleFactory
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.pentaho.reporting.engine.classic.core.ResourceBundleFactory
DEFAULT_RESOURCE_BUNDLE_CONFIG_KEY
-
-
Constructor Summary
Constructors Constructor Description LibLoaderResourceBundleFactory()
LibLoaderResourceBundleFactory(org.pentaho.reporting.libraries.resourceloader.ResourceManager manager, org.pentaho.reporting.libraries.resourceloader.ResourceKey baseKey, Locale locale, TimeZone timeZone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
Locale
getLocale()
Returns the locale that will be used to create the resource bundle.ResourceBundle
getResourceBundle(String key)
Creates a resource bundle for the given key.TimeZone
getTimeZone()
void
setLocale(Locale locale)
void
setResourceLoader(org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, org.pentaho.reporting.libraries.resourceloader.ResourceKey contextKey)
void
setTimeZone(TimeZone timeZone)
-
-
-
Method Detail
-
getResourceBundle
public ResourceBundle getResourceBundle(String key)
Creates a resource bundle for the given key. How that key is interpreted depends on the used concrete implementation of this interface.- Specified by:
getResourceBundle
in interfaceResourceBundleFactory
- Parameters:
key
- the key that identifies the resource bundle- Returns:
- the created resource bundle
- Throws:
MissingResourceException
- if no resource bundle for the specified base name can be found
-
getLocale
public Locale getLocale()
Returns the locale that will be used to create the resource bundle. This locale is also used to initialize the java.text.Format instances used by the report.- Specified by:
getLocale
in interfaceResourceBundleFactory
- Returns:
- the locale.
-
getTimeZone
public TimeZone getTimeZone()
- Specified by:
getTimeZone
in interfaceResourceBundleFactory
-
setLocale
public void setLocale(Locale locale)
- Specified by:
setLocale
in interfaceExtendedResourceBundleFactory
-
setTimeZone
public void setTimeZone(TimeZone timeZone)
- Specified by:
setTimeZone
in interfaceExtendedResourceBundleFactory
-
setResourceLoader
public void setResourceLoader(org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, org.pentaho.reporting.libraries.resourceloader.ResourceKey contextKey)
- Specified by:
setResourceLoader
in interfaceExtendedResourceBundleFactory
-
clone
public Object clone() throws CloneNotSupportedException
- Specified by:
clone
in interfaceExtendedResourceBundleFactory
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
-