Package net.sourceforge.javautil.classloader.impl

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


      LibDirectoryClassSource lib = new LibDirectoryClassSource(new SystemDirectory(args[0]), true);
      List<ClassSource> sources = lib.getAllNonCompositeSources();
     
      for (ClassSource source : sources) {
        try {
          ClassInfo info = source.getClassInfo(new ClassSearchInfo(args[1]));
          System.out.println("Found in " + info.getSource());
        } catch (ClassNotFoundException e) {}
      }
     
    }
   
View Full Code Here


  }
 
  @Override public IVirtualArtifact getVirtualArtifact() { return new SystemFile(file); }

  @Override public ClassInfo getClassInfo(ClassSearchInfo info) throws ClassNotFoundException {
    if (this.hasClass(info)) return new ClassInfo(info, this);
    throw new ClassNotFoundException(info.getFullClassName());
  }
View Full Code Here

  @Override public ClassInfo getIfHasClass(ClassSearchInfo info) throws ClassNotFoundException {
    List<ClassSource> srcs = this.getPackageSources(info);
    int size = srcs.size();
    for (int i=0; i<size; i++) {
      ClassSource src = srcs.get(i);
      ClassInfo cinfo = src.getIfHasClass(info);
      if (cinfo != null) return cinfo;
    }
    return null;
  }
View Full Code Here

   * @throws ClassNotFoundException
   *
   * @see {@link #getAdapter()}
   */
  public byte[] load (ClassSearchInfo info) throws ClassNotFoundException {
    return adapter == null ? this.loadInternal(info) : adapter.load(this, new ClassInfo(info, this));
  }
View Full Code Here

    return stamp;
  }

  @Override public ClassInfo getClassInfo(ClassSearchInfo info) throws ClassNotFoundException {
    try {
      return new ClassInfo(info, this);
    } catch (VirtualArtifactNotFoundException e) {
      throw new ClassNotFoundException(info.getFullClassName());
    }
  }
View Full Code Here

TOP

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

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.