Class ResourceBundleWrapper


  • public class ResourceBundleWrapper
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String bundleName  
      protected java.util.Locale locale  
      protected java.util.ResourceBundle resourceBundle  
    • Constructor Summary

      Constructors 
      Constructor Description
      ResourceBundleWrapper​(java.util.ResourceBundle resourceBundle, java.lang.String bundleName, java.util.Locale locale)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getString​(java.lang.String messageKey)
      Get a string with appropruate handling of exceptions
      java.lang.String getString​(java.lang.String messageKey, java.lang.Object[] args)
      Same thing with arguments
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • resourceBundle

        protected java.util.ResourceBundle resourceBundle
      • bundleName

        protected java.lang.String bundleName
      • locale

        protected java.util.Locale locale
    • Constructor Detail

      • ResourceBundleWrapper

        public ResourceBundleWrapper​(java.util.ResourceBundle resourceBundle,
                                     java.lang.String bundleName,
                                     java.util.Locale locale)
        Constructor
    • Method Detail

      • getString

        public java.lang.String getString​(java.lang.String messageKey)
        Get a string with appropruate handling of exceptions
      • getString

        public java.lang.String getString​(java.lang.String messageKey,
                                          java.lang.Object[] args)
        Same thing with arguments