Package net.sourceforge.javautil.classloader.resolver

Examples of net.sourceforge.javautil.classloader.resolver.IClassPackageRepositoryLocal


   
    return false;
  }

  protected boolean resolveInternally (ClassPackageResolverContext ctx) {
    IClassPackageRepositoryLocal found = this.repository;
    IClassPackageDescriptor descriptor = found.getDescriptor(this, ctx.getCurrentDependency());
    if (descriptor == null) {
      for (IClassPackageRepositoryLocal local : this.locals) {
        found = local;
        descriptor = local.getDescriptor(this, ctx.getCurrentDependency());
        if (descriptor != null) break;
      }
    }
    if (descriptor == null) return false;
   
    if (descriptor.getRelocation() != null) {
      ClassPackageReferenceImpl ref = ClassPackageReferenceImpl.getRelocation(ctx.getCurrentDependency(), descriptor.getRelocation());
      ClassPackageDependencyReferenceImpl dep = new ClassPackageDependencyReferenceImpl(ref);

      this.resolve(ctx.popNode().pushNode(dep, null));
      return ctx.getResolved(ref).getType() != Type.Unavailable;
    }
   
    ClassSource src = found.getMainClassSource(this, ctx.getCurrentDependency());
    if (src == null) {
      // This probably means the descriptor was downloaded, but the source was not
      if (descriptor.isDescriptorOnly()) {
        ctx.setAvailable(this, found, null, descriptor);
        return true;
View Full Code Here

TOP

Related Classes of net.sourceforge.javautil.classloader.resolver.IClassPackageRepositoryLocal

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.