Package it.eng.spagobi.utilities

Examples of it.eng.spagobi.utilities.DynamicClassLoader


              ZipEntry entry = (ZipEntry)totalZipEntries.nextElement();
              if (entry.getName().endsWith(".jar")) {
                // set classloader with jar
                jarFile = new File(destDir+entry.getName());
                ClassLoader previous = Thread.currentThread().getContextClassLoader();
                DynamicClassLoader dcl = new DynamicClassLoader(jarFile, previous);
                //ClassLoader current = URLClassLoader.newInstance(new URL[]{jarFile.toURL()}, previous);
                Thread.currentThread().setContextClassLoader(dcl);            
              }
              if (entry.getName().endsWith(".jrxml")) {
                // set InputStream with jrxml            
View Full Code Here


          ZipEntry entry = (ZipEntry) totalZipEntries.nextElement();
          if (entry.getName().endsWith(".jar")) {
            jarFile = new File(tempDir, entry.getName());
            // set classloader with jar
            ClassLoader previous = Thread.currentThread().getContextClassLoader();
            DynamicClassLoader dcl = new DynamicClassLoader(jarFile, previous);
            Thread.currentThread().setContextClassLoader(dcl);
          }
          else if (entry.getName().endsWith(".jrxml")) {
            // set InputStream with jrxml
            File jrxmlFile = new File(tempDir, entry.getName());
View Full Code Here

      String ext = name.substring(name.lastIndexOf('.')+1, name.length());
      if(ext.equalsIgnoreCase("jar")){
        //updateCurrentClassLoader(file);
        logger.debug("loading file "+file.getName());     
        ClassLoader previous = Thread.currentThread().getContextClassLoader();
        DynamicClassLoader dcl = new DynamicClassLoader(file, previous);
        Thread.currentThread().setContextClassLoader(dcl);

      }
    }
View Full Code Here

        ZipEntry entry = (ZipEntry) totalZipEntries.nextElement();
        if (entry.getName().endsWith(".jar")) {
          jarFile = new File(getJRTempDirName(servletContext,executionId)+ entry.getName());
          // set classloader with jar
          ClassLoader previous = Thread.currentThread().getContextClassLoader();
          DynamicClassLoader dcl = new DynamicClassLoader(jarFile, previous);
          Thread.currentThread().setContextClassLoader(dcl);
        }
        else if (entry.getName().endsWith(".rptdesign")) {
          // set InputStream with report
          File birtFile = new File(getJRTempDirName(servletContext, executionId)+ entry.getName());
View Full Code Here

          ZipEntry entry = (ZipEntry) totalZipEntries.nextElement();
          if (entry.getName().endsWith(".jar")) {
            jarFile = new File(getJRTempDirName(servletContext, prefixDirTemplate)+ entry.getName());
            // set classloader with jar
            ClassLoader previous = Thread.currentThread().getContextClassLoader();
            DynamicClassLoader dcl = new DynamicClassLoader(jarFile, previous);
            Thread.currentThread().setContextClassLoader(dcl);
          }
          else if (entry.getName().endsWith(".jrxml")) {
            // set InputStream with jrxml
            File jrxmlFile = new File(getJRTempDirName(servletContext, prefixDirTemplate)+ entry.getName());
View Full Code Here

              ZipEntry entry = (ZipEntry)totalZipEntries.nextElement();
              if (entry.getName().endsWith(".jar")) {
                // set classloader with jar
                jarFile = new File(destDir+entry.getName());
                ClassLoader previous = Thread.currentThread().getContextClassLoader();
                DynamicClassLoader dcl = new DynamicClassLoader(jarFile, previous);
                //ClassLoader current = URLClassLoader.newInstance(new URL[]{jarFile.toURL()}, previous);
                Thread.currentThread().setContextClassLoader(dcl);            
              }
              if (entry.getName().endsWith(".jrxml")) {
                // set InputStream with jrxml            
View Full Code Here

TOP

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

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.