org.pentaho.reporting.engine.classic.core.util
Class LibLoaderResourceBundleFactory

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface org.pentaho.reporting.engine.classic.core.ResourceBundleFactory
DEFAULT_RESOURCE_BUNDLE_CONFIG_KEY
 
Constructor Summary
LibLoaderResourceBundleFactory()
           
LibLoaderResourceBundleFactory(Locale locale, TimeZone timeZone)
           
LibLoaderResourceBundleFactory(org.pentaho.reporting.libraries.resourceloader.ResourceManager manager, org.pentaho.reporting.libraries.resourceloader.ResourceKey baseKey, Locale locale, TimeZone timeZone)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
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 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