Package net.sourceforge.javautil.classloader.impl

Examples of net.sourceforge.javautil.classloader.impl.StandardClassLoaderHeiarchy


 
  /**
   * @return The class context for this unit, including any specified transformers
   */
  protected ClassContext createClassContext () {
    return new ClassContext(new StandardClassLoaderHeiarchy(), this.createClassSource())
      .setTransformer(new PersistenceClassTransformer(this.transformers.toArray(new ClassTransformer[this.transformers.size()])));
  }
View Full Code Here


 
  /**
   * @return A special internal classloader for loading the MXJ classes
   */
  protected static ClassLoader createMysqlMXJClassLoader (IVirtualFile mxjJar, IVirtualFile mxjDbFileJar) {
    return new ClassContext(new StandardClassLoaderHeiarchy(),
      new ZipClassSource(mxjJar.getURL()),
      new ZipClassSource(mxjDbFileJar.getURL())
    );
  }
View Full Code Here

    ClassSource additional = this.getAdditionalClassSources();
    if (additional != null) mainSource.add(additional);
   
    if (boot != null) {
      mainSource.add( VirtualDirectoryClassSource.createInMemoryJar("boot", "main", boot.openStream()) );
      context = new ClassContext(new StandardClassLoaderHeiarchy(Thread.currentThread().getContextClassLoader()), mainSource);
    } else {
     
      String main = this.getSetting(MAIN_JAR_PROPERTY);
      if (main == null)
        printHelp("No internal uber jar and no main jar specified -D" + MAIN_JAR_PROPERTY + "=''");
     
      File mainFile = new File(main);
      if (!mainFile.exists())
        printHelp("Specified main jar does not exist: " + mainFile);
     
      mainSource.add( new ZipClassSource(mainFile) );
      context = new ClassContext(new StandardClassLoaderHeiarchy(Thread.currentThread().getContextClassLoader()), mainSource);
    }
   
    Thread.currentThread().setContextClassLoader(context);
    this.setupDefaultURLStreamHandlerFactory(context);
   
View Full Code Here

    }
   
    ((ClassPackageResolverImpl)this.resolver).addLocalRepository(new MavenRepositoryClassLoader());
   
    context = cs != null ?
      new ClassContext(new StandardClassLoaderHeiarchy(), cs) :
      new ClassContext(new StandardClassLoaderHeiarchy());
   
    Thread.currentThread().setContextClassLoader(context);
   
    // Check for a specified or default pom.xml file
    IVirtualFile pomFile = this.locatePOMDescriptor();
View Full Code Here

TOP

Related Classes of net.sourceforge.javautil.classloader.impl.StandardClassLoaderHeiarchy

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.