Package it.eng.spagobi.utilities

Examples of it.eng.spagobi.utilities.ResourceClassLoader


        File resourceDir = JasperReportEngine.getConfig().getEngineResourceDir();
       
        logger.debug("Root dir of ResourceClassLoader has been set to [" + resourceDir.getAbsolutePath() + "]");

        ClassLoader previous = Thread.currentThread().getContextClassLoader();
        ResourceClassLoader dcl = new ResourceClassLoader(resourceDir.getAbsolutePath(), previous);
        try
          resourceBoundle = PropertyResourceBundle.getBundle("messages", locale, dcl);
          getEnv().put("REPORT_RESOURCE_BUNDLE", resourceBoundle);
        } catch (Exception e) {
          logger.warn("could not find properties message",e);
View Full Code Here


          String path = (String) sb.getCharacters();
          String resPath= SpagoBIUtilities.readJndiResource(path);     
          resPath+="/jasper_messages/";

          ClassLoader previous = Thread.currentThread().getContextClassLoader();
          ResourceClassLoader dcl = new ResourceClassLoader(resPath,previous);
          //Thread.currentThread().setContextClassLoader(dcl);
          try
            //rs=PropertyResourceBundle.getBundle("messages",locale, Thread.currentThread().getContextClassLoader());
            rs=PropertyResourceBundle.getBundle("messages",locale, dcl);
          }
View Full Code Here

TOP

Related Classes of it.eng.spagobi.utilities.ResourceClassLoader

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.