org.pentaho.reporting.engine.classic.core.util
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
Todo: Document Me
- Author:
- Thomas Morgner
- See Also:
- Serialized Form
LibLoaderResourceBundleFactory
public LibLoaderResourceBundleFactory()
LibLoaderResourceBundleFactory
public LibLoaderResourceBundleFactory(Locale locale,
TimeZone timeZone)
LibLoaderResourceBundleFactory
public LibLoaderResourceBundleFactory(org.pentaho.reporting.libraries.resourceloader.ResourceManager manager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseKey,
Locale locale,
TimeZone timeZone)
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 interface ResourceBundleFactory
- 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 interface ResourceBundleFactory
- Returns:
- the locale.
getTimeZone
public TimeZone getTimeZone()
- Specified by:
getTimeZone
in interface ResourceBundleFactory
setLocale
public void setLocale(Locale locale)
- Specified by:
setLocale
in interface ExtendedResourceBundleFactory
setTimeZone
public void setTimeZone(TimeZone timeZone)
- Specified by:
setTimeZone
in interface ExtendedResourceBundleFactory
setResourceLoader
public void setResourceLoader(org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey contextKey)
- Specified by:
setResourceLoader
in interface ExtendedResourceBundleFactory
clone
public Object clone()
throws CloneNotSupportedException
- Specified by:
clone
in interface ExtendedResourceBundleFactory
- Overrides:
clone
in class Object
- Throws:
CloneNotSupportedException