Package org.impalaframework.classloader

Examples of org.impalaframework.classloader.NonDelegatingResourceClassLoader


public class ModuleResourceUtils {

    public static URL loadModuleResource(ModuleLocationResolver moduleLocationResolver, String moduleName, String resourceName) {
        List<Resource> locations = moduleLocationResolver.getApplicationModuleClassLocations(moduleName);
        CustomClassLoader cl = new ModuleClassLoader(ClassUtils.getDefaultClassLoader(), ResourceUtils.getFiles(locations) );
        NonDelegatingResourceClassLoader ndl = new NonDelegatingResourceClassLoader(cl);
       
        URL resource = ndl.getResource(resourceName);
        return resource;
    }
View Full Code Here


  public ModuleAwareWrapperServletContext(ServletContext realContext, String moduleName, ClassLoader moduleClassLoader) {
    super(realContext);
    if (moduleClassLoader instanceof BaseURLClassLoader) {
      //use NonDelegatingResourceClassLoader in order that it only looks in locations of the moduleClassLoader, but not it's parents
      this.moduleClassLoader = new NonDelegatingResourceClassLoader((BaseURLClassLoader) moduleClassLoader);
    } else {
      this.moduleClassLoader = moduleClassLoader;
    }
    this.moduleName = moduleName;
  }
View Full Code Here

public class ModuleResourceUtils {

  public static URL loadModuleResource(ModuleLocationResolver moduleLocationResolver, String moduleName, String resourceName) {
    List<Resource> locations = moduleLocationResolver.getApplicationModuleClassLocations(moduleName);
    CustomClassLoader cl = new ModuleClassLoader(ClassUtils.getDefaultClassLoader(), ResourceUtils.getFiles(locations) );
    NonDelegatingResourceClassLoader ndl = new NonDelegatingResourceClassLoader(cl);
   
    URL resource = ndl.getResource(resourceName);
    return resource;
  }
View Full Code Here

public class ModuleResourceUtils {

    public static URL loadModuleResource(ModuleLocationResolver moduleLocationResolver, String moduleName, String resourceName) {
        List<Resource> locations = moduleLocationResolver.getApplicationModuleClassLocations(moduleName);
        CustomClassLoader cl = new ModuleClassLoader(ClassUtils.getDefaultClassLoader(), ResourceUtils.getFiles(locations) );
        NonDelegatingResourceClassLoader ndl = new NonDelegatingResourceClassLoader(cl);
       
        URL resource = ndl.getResource(resourceName);
        return resource;
    }
View Full Code Here

    public BaseWrapperServletContext(ServletContext realContext, String applicationId, String moduleName, WebAttributeQualifier webAttributeQualifier, ClassLoader moduleClassLoader) {
        super(realContext);
        if (moduleClassLoader instanceof BaseURLClassLoader) {
            //use NonDelegatingResourceClassLoader in order that it only looks in locations of the moduleClassLoader, but not it's parents
            this.moduleClassLoader = new NonDelegatingResourceClassLoader((BaseURLClassLoader) moduleClassLoader);
        } else {
            this.moduleClassLoader = moduleClassLoader;
        }
        this.webAttributeQualifier = webAttributeQualifier;
        this.moduleName = moduleName;
View Full Code Here

    public ModuleAwareWrapperServletContext(ServletContext realContext, String moduleName, ClassLoader moduleClassLoader) {
        super(realContext);
        if (moduleClassLoader instanceof BaseURLClassLoader) {
            //use NonDelegatingResourceClassLoader in order that it only looks in locations of the moduleClassLoader, but not it's parents
            this.moduleClassLoader = new NonDelegatingResourceClassLoader((BaseURLClassLoader) moduleClassLoader);
        } else {
            this.moduleClassLoader = moduleClassLoader;
        }
        this.moduleName = moduleName;
    }
View Full Code Here

    public BaseWrapperServletContext(ServletContext realContext, String applicationId, String moduleName, WebAttributeQualifier webAttributeQualifier, ClassLoader moduleClassLoader) {
        super(realContext);
        if (moduleClassLoader instanceof BaseURLClassLoader) {
            //use NonDelegatingResourceClassLoader in order that it only looks in locations of the moduleClassLoader, but not it's parents
            this.moduleClassLoader = new NonDelegatingResourceClassLoader((BaseURLClassLoader) moduleClassLoader);
        } else {
            this.moduleClassLoader = moduleClassLoader;
        }
        this.webAttributeQualifier = webAttributeQualifier;
        this.moduleName = moduleName;
View Full Code Here

  public ModuleAwareWrapperServletContext(ServletContext realContext, String moduleName, ClassLoader moduleClassLoader) {
    super(realContext);
    if (moduleClassLoader instanceof BaseURLClassLoader) {
      //use NonDelegatingResourceClassLoader in order that it only looks in locations of the moduleClassLoader, but not it's parents
      this.moduleClassLoader = new NonDelegatingResourceClassLoader((BaseURLClassLoader) moduleClassLoader);
    } else {
      this.moduleClassLoader = moduleClassLoader;
    }
    this.moduleName = moduleName;
  }
View Full Code Here

public class ModuleResourceUtils {

  public static URL loadModuleResource(ModuleLocationResolver moduleLocationResolver, String moduleName, String resourceName) {
    List<Resource> locations = moduleLocationResolver.getApplicationModuleClassLocations(moduleName);
    CustomClassLoader cl = new ModuleClassLoader(ClassUtils.getDefaultClassLoader(), ResourceUtils.getFiles(locations) );
    NonDelegatingResourceClassLoader ndl = new NonDelegatingResourceClassLoader(cl);
   
    URL resource = ndl.getResource(resourceName);
    return resource;
  }
View Full Code Here

TOP

Related Classes of org.impalaframework.classloader.NonDelegatingResourceClassLoader

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.