Package de.xima.fc.interfaces.resource
Interface IResourceBundle
-
- All Known Implementing Classes:
ResourceBundleBean
public interface IResourceBundleInterface 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 StringgetMessage(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 loaderitself, aclassor aclass name.bundleName- the name of the resource bundlekey- the key of the messagelocale- the locale- Returns:
- the message or
nullif 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 isnullor the class loader providing object isnull
-
-