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

    Modifier and Type
    Method
    Description
    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 Details

    • 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 a class loader itself, a class or a class name.
      bundleName - the name of the resource bundle
      key - the key of the message
      locale - 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 is null or the class loader providing object is null