Package de.xima.fc.interfaces.resource
Interface IResourceBundle
-
- All Known Implementing Classes:
ResourceBundleBean
public interface IResourceBundle
Interface for reading resource bundles.- Since:
- 8.4.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getMessage(Object classLoaderProviding, String bundleName, String key, Locale locale)
Gets the message for the given key from the resource bundle of the resource bundle and locale.
-
-
-
Method Detail
-
getMessage
String getMessage(Object classLoaderProviding, String bundleName, String key, Locale locale)
Gets the message for the given key from the resource bundle of the resource bundle and locale. The resource bundle is defined by the class loader providing object and the bundle name.- Parameters:
classLoaderProviding
- the object providing the class loader. May be aclass loader
itself, aclass
or aclass name
.bundleName
- the name of the resource bundlekey
- the key of the messagelocale
- the locale- Returns:
- the message or
null
if the resource bundle could not be read or the key does not exist. - Throws:
IllegalArgumentException
- if the class loader providing object is not a class loader, class or class name or if the bundle name is blank.NullPointerException
- if the locale isnull
or the class loader providing object isnull
-
-