Interface ResourceBundleFactory
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
ExtendedResourceBundleFactory
- All Known Implementing Classes:
DefaultResourceBundleFactory
,LibLoaderResourceBundleFactory
public interface ResourceBundleFactory extends Serializable
A resource bundle factory defines the locale for a report and is used to create resourcebundles.- Author:
- Thomas Morgner
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_RESOURCE_BUNDLE_CONFIG_KEY
A constant containing the configuration key to specify a resource-bundle name for the report.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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()
-
-
-
Field Detail
-
DEFAULT_RESOURCE_BUNDLE_CONFIG_KEY
static final String DEFAULT_RESOURCE_BUNDLE_CONFIG_KEY
A constant containing the configuration key to specify a resource-bundle name for the report. This property has the value "org.pentaho.reporting.engine.classic.core.ResourceBundle".- See Also:
- Constant Field Values
-
-
Method Detail
-
getResourceBundle
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.- 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
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.- Returns:
- the locale.
-
getTimeZone
TimeZone getTimeZone()
-
-