Package railo.commons.io.res.util

Examples of railo.commons.io.res.util.ResourceClassLoader


   * @param jars jars names to Load
   * @return Classloader with loaded jars for temporary use, after restart the engine this jars are loaded by the servlet engine
   * @throws IOException
   */
  public static ClassLoader loadJars(Config config, String[] jars,ClassLoader parent) throws IOException {
    return new ResourceClassLoader(download(config, jars),parent);
  }
View Full Code Here


    if(reload && customCLs!=null) customCLs.remove(key);
   
   
    PhysicalClassLoader pcl=customCLs==null?null:customCLs.get(key);
    if(pcl!=null) return pcl;
    pcl=new PhysicalClassLoader(this.getDirectory(),new ResourceClassLoader(resources,getParent()));
    if(customCLs==null)customCLs=new ReferenceMap();
    customCLs.put(key, pcl);
    return pcl;
  }
View Full Code Here

      }
    }

    // get resources from server config and merge
    if (configServer != null) {
      ResourceClassLoader rcl = configServer.getResourceClassLoader();
      libs = ResourceUtil.merge(libs, rcl.getResources());
    }

    // get parent classloader
    // ClassLoader parent;
    // if(configServer==null) parent=new
    // ClassLoaderHelper().getClass().getClassLoader();// this classloader
    // holds all loader and core classes
    // else parent = configServer.getResourceClassLoader(); // Resource
    // classloader from server config

    // set classloader
    ClassLoader parent = new ClassLoaderHelper().getClass().getClassLoader();// this
                                          // classloader
                                          // holds
                                          // all
                                          // loader
                                          // and
                                          // core
                                          // classes
    config.setResourceClassLoader(new ResourceClassLoader(libs, parent));

  }
View Full Code Here

TOP

Related Classes of railo.commons.io.res.util.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.