Package org.exoplatform.commons.utils

Examples of org.exoplatform.commons.utils.MapResourceBundle


      try
      {
         ResourceBundle res = cache_.get(id);
         if (res != null)
            return res;
         MapResourceBundle outputBundled = new MapResourceBundle(locale);
         for (int i = 0; i < name.length; i++)
         {
            ResourceBundle temp = getResourceBundle(name[i], locale, cl);
            if (temp != null)
            {
               outputBundled.merge(temp);
               continue;
            }
            log_.warn("Cannot load and merge the bundle: " + name[i]);
         }
         outputBundled.resolveDependencies();
         cache_.put(id, outputBundled);
         return outputBundled;
      }
      catch (Exception ex)
      {
View Full Code Here


        /**
         * {@inheritDoc}
         */
        @Override
        ResourceBundle get(String id) {
            MapResourceBundle outputBundled = null;
            try {
                outputBundled = new MapResourceBundle(locale);
                for (int i = 0; i < name.length; i++) {
                    ResourceBundle temp = getResourceBundle(name[i], locale, cl);
                    if (temp != null) {
                        outputBundled.merge(temp);
                        continue;
                    }
                    log_.warn("Cannot load and merge the bundle: " + name[i]);
                }
                outputBundled.resolveDependencies();
            } catch (Exception ex) {
                log_.error("Cannot load and merge the bundle: " + id, ex);
            }
            return outputBundled;
        }
View Full Code Here

    protected ResourceBundle getResourceBundleFromDb(String id, ResourceBundle parent, Locale locale) throws Exception {
        ResourceBundleData data = getResourceBundleData(id);
        if (data == null) {
            return null;
        }
        return new MapResourceBundle(new ExoResourceBundle(data, parent), locale);
    }
View Full Code Here

        /**
         * {@inheritDoc}
         */
        @Override
        ResourceBundle get(String id) {
            MapResourceBundle outputBundled = null;
            try {
                outputBundled = new MapResourceBundle(locale);
                for (int i = 0; i < name.length; i++) {
                    ResourceBundle temp = getResourceBundle(name[i], locale, cl);
                    if (temp != null) {
                        outputBundled.merge(temp);
                        continue;
                    }
                    log_.warn("Cannot load and merge the bundle: " + name[i]);
                }
                outputBundled.resolveDependencies();
            } catch (Exception ex) {
                log_.error("Cannot load and merge the bundle: " + id, ex);
            }
            return outputBundled;
        }
View Full Code Here

      try
      {
         ResourceBundle res = cache_.get(id);
         if (res != null)
            return res;
         MapResourceBundle outputBundled = new MapResourceBundle(locale);
         for (int i = 0; i < name.length; i++)
         {
            ResourceBundle temp = getResourceBundle(name[i], locale, cl);
            if (temp != null)
            {
               outputBundled.merge(temp);
               continue;
            }
            log_.warn("Cannot load and merge the bundle: " + name[i]);
         }
         outputBundled.resolveDependencies();
         cache_.put(id, outputBundled);
         return outputBundled;
      }
      catch (Exception ex)
      {
View Full Code Here

      ResourceBundleData data = getResourceBundleData(id);
      if (data == null)
      {
         return null;
      }
      return new MapResourceBundle(new ExoResourceBundle(data.getData(), parent), locale);
   }
View Full Code Here

       * {@inheritDoc}
       */
      @Override
      ResourceBundle get(String id)
      {
         MapResourceBundle outputBundled = null;
         try
         {
            outputBundled = new MapResourceBundle(locale);
            for (int i = 0; i < name.length; i++)
            {
               ResourceBundle temp = getResourceBundle(name[i], locale, cl);
               if (temp != null)
               {
                  outputBundled.merge(temp);
                  continue;
               }
               log_.warn("Cannot load and merge the bundle: " + name[i]);
            }
            outputBundled.resolveDependencies();
         }
         catch (Exception ex)
         {
            log_.error("Cannot load and merge the bundle: " + id, ex);
         }
View Full Code Here

      ResourceBundleData data = getResourceBundleData(id);
      if (data == null)
      {
         return null;
      }
      return new MapResourceBundle(new ExoResourceBundle(data, parent), locale);
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.commons.utils.MapResourceBundle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.