Class LocalizationHelper


  • @Deprecated(since="2021-04-30")
    public class LocalizationHelper
    extends java.lang.Object
    Deprecated.
    The Apache Felix Webconsole is not supported in Cloud environments.
    The localization helper is supposed to be used from the bundle info providers. It will allow them to provide locale-specific names and descriptions of the bundle information entries.
    • Constructor Summary

      Constructors 
      Constructor Description
      LocalizationHelper​(Bundle bundle)
      Deprecated.
      Creates a new helper instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.util.ResourceBundle getResourceBundle​(java.util.Locale locale)
      Deprecated.
      Used to retrieve the resource bundle for the specified locale.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LocalizationHelper

        public LocalizationHelper​(Bundle bundle)
        Deprecated.
        Creates a new helper instance.
        Parameters:
        bundle - the bundle that provides the localization resources. See the standard OSGi-type localization support.
    • Method Detail

      • getResourceBundle

        public java.util.ResourceBundle getResourceBundle​(java.util.Locale locale)
        Deprecated.
        Used to retrieve the resource bundle for the specified locale.
        Parameters:
        locale - the requested locale.
        Returns:
        the resource bundle (could be empty, but never null)